Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: content/public/browser/devtools_manager.h

Issue 13305002: Remove redundant DevToolsManager methods and clean up its clients. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/browser/devtools_manager.h
diff --git a/content/public/browser/devtools_manager.h b/content/public/browser/devtools_manager.h
index ae5df5a91dcffe0ee5c3902b73d36fd14502d2aa..3f080235744488fc72d24e7f85223ea6d10b368a 100644
--- a/content/public/browser/devtools_manager.h
+++ b/content/public/browser/devtools_manager.h
@@ -34,26 +34,22 @@ class CONTENT_EXPORT DevToolsManager {
virtual bool DispatchOnInspectorBackend(DevToolsClientHost* from,
const std::string& message) = 0;
- // Closes all open developer tools windows.
+ // Disconnects all client hostst.
virtual void CloseAllClientHosts() = 0;
- // Returns client attached to the |agent_host| if there is one.
- virtual DevToolsClientHost* GetDevToolsClientHostFor(
- DevToolsAgentHost* agent_host) = 0;
+ // Returns true if there is a client attached to the |agent_host|.
+ virtual bool IsAttached(DevToolsAgentHost* agent_host) = 0;
pfeldman 2013/03/29 14:59:23 Sounds like an instance method on DevToolsAgentHos
Vladislav Kaznacheev 2013/03/29 15:15:35 The real knowledge resides in DevToolsManager(Impl
pfeldman 2013/03/30 08:54:57 Here is how I see it: you are adding this method i
Vladislav Kaznacheev 2013/04/01 09:26:17 Agree. Done. On 2013/03/30 08:54:57, pfeldman wro
// Returns agent that has |client_host| attachd to it if there is one.
virtual DevToolsAgentHost* GetDevToolsAgentHostFor(
DevToolsClientHost* client_host) = 0;
- // Registers new DevToolsClientHost for inspected |agent_host|. There must be
- // no other DevToolsClientHosts registered for the |agent_host| at the moment.
+ // Registers new DevToolsClientHost for inspected |agent_host|. If there is
+ // another DevToolsClientHost registered for the |agent_host| at the moment
+ // it is disconnected.
virtual void RegisterDevToolsClientHostFor(
DevToolsAgentHost* agent_host,
DevToolsClientHost* client_host) = 0;
- // Unregisters given |agent_host|. DevToolsManager will notify corresponding
- // client if one is attached.
- virtual void UnregisterDevToolsClientHostFor(
- DevToolsAgentHost* agent_host) = 0;
// This method will remove all references from the manager to the
// DevToolsClientHost and unregister all listeners related to the

Powered by Google App Engine
This is Rietveld 408576698