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

Side by Side Diff: content/browser/debugger/devtools_manager.h

Issue 8587009: Add OVERRIDE to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_
6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_ 6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 11
12 #include "base/compiler_specific.h"
12 #include "content/browser/debugger/devtools_agent_host.h" 13 #include "content/browser/debugger/devtools_agent_host.h"
13 #include "content/browser/debugger/devtools_client_host.h" 14 #include "content/browser/debugger/devtools_client_host.h"
14 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
15 16
16 class DevToolsAgentHost; 17 class DevToolsAgentHost;
17 class GURL; 18 class GURL;
18 class RenderViewHost; 19 class RenderViewHost;
19 class TabContents; 20 class TabContents;
20 21
21 namespace IPC { 22 namespace IPC {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 void RegisterDevToolsClientHostFor(DevToolsAgentHost* agent_host, 85 void RegisterDevToolsClientHostFor(DevToolsAgentHost* agent_host,
85 DevToolsClientHost* client_host); 86 DevToolsClientHost* client_host);
86 void UnregisterDevToolsClientHostFor(DevToolsAgentHost* agent_host); 87 void UnregisterDevToolsClientHostFor(DevToolsAgentHost* agent_host);
87 int DetachClientHost(DevToolsAgentHost* from_agent); 88 int DetachClientHost(DevToolsAgentHost* from_agent);
88 89
89 private: 90 private:
90 // DevToolsClientHost::CloseListener override. 91 // DevToolsClientHost::CloseListener override.
91 // This method will remove all references from the manager to the 92 // This method will remove all references from the manager to the
92 // DevToolsClientHost and unregister all listeners related to the 93 // DevToolsClientHost and unregister all listeners related to the
93 // DevToolsClientHost. 94 // DevToolsClientHost.
94 virtual void ClientHostClosing(DevToolsClientHost* host); 95 virtual void ClientHostClosing(DevToolsClientHost* host) OVERRIDE;
95 96
96 // DevToolsAgentHost::CloseListener implementation. 97 // DevToolsAgentHost::CloseListener implementation.
97 virtual void AgentHostClosing(DevToolsAgentHost* host); 98 virtual void AgentHostClosing(DevToolsAgentHost* host) OVERRIDE;
98 99
99 // Returns DevToolsAgentHost inspected by the DevToolsClientHost. 100 // Returns DevToolsAgentHost inspected by the DevToolsClientHost.
100 DevToolsAgentHost* GetAgentHost(DevToolsClientHost* client_host); 101 DevToolsAgentHost* GetAgentHost(DevToolsClientHost* client_host);
101 102
102 void BindClientHost(DevToolsAgentHost* agent_host, 103 void BindClientHost(DevToolsAgentHost* agent_host,
103 DevToolsClientHost* client_host); 104 DevToolsClientHost* client_host);
104 void UnbindClientHost(DevToolsAgentHost* agent_host, 105 void UnbindClientHost(DevToolsAgentHost* agent_host,
105 DevToolsClientHost* client_host); 106 DevToolsClientHost* client_host);
106 107
107 // These two maps are for tracking dependencies between inspected tabs and 108 // These two maps are for tracking dependencies between inspected tabs and
(...skipping 15 matching lines...) Expand all
123 124
124 typedef std::map<int, std::pair<DevToolsClientHost*, std::string> > 125 typedef std::map<int, std::pair<DevToolsClientHost*, std::string> >
125 OrphanClientHosts; 126 OrphanClientHosts;
126 OrphanClientHosts orphan_client_hosts_; 127 OrphanClientHosts orphan_client_hosts_;
127 int last_orphan_cookie_; 128 int last_orphan_cookie_;
128 129
129 DISALLOW_COPY_AND_ASSIGN(DevToolsManager); 130 DISALLOW_COPY_AND_ASSIGN(DevToolsManager);
130 }; 131 };
131 132
132 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_ 133 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/debugger/devtools_http_protocol_handler.h ('k') | content/browser/debugger/render_view_devtools_agent_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698