Introduce InspectorAgentState::Clear()
This lets an agent clear all its fields, by calling agent_state_.Clear(); And now all the methods are called just Clear, a bit like STL calls different erase methods (range, iterator, value, ...) just erase. What's being cleared will be distinguished by the context only, e.g. method parameters and the receiver. There's pros / cons to this but it's also kinda neat in a way. I do need to do something about ClearAll either way so that I can have a virtual method, so this choice felt both convenient and principled. Hoping to get away with it. :-) Change-Id: I439b77052e110968f196a21ae63020646a9ba23b Reviewed-on: https://chromium-review.googlesource.com/1159822Reviewed-by:Andrey Kosyakov <caseq@chromium.org> Commit-Queue: Johannes Henkel <johannes@chromium.org> Cr-Commit-Position: refs/heads/master@{#580064}
Showing
Please register or sign in to comment