OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_REGISTRY_H_ | |
6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_REGISTRY_H_ | |
7 #pragma once | |
8 | |
9 #include "content/common/content_export.h" | |
10 | |
11 class RenderViewHost; | |
12 class TabContents; | |
13 | |
14 namespace content { | |
15 | |
16 class DevToolsAgentHost; | |
17 | |
18 class CONTENT_EXPORT DevToolsAgentHostRegistry { | |
19 public: | |
20 // Returns DevToolsAgentHost that can be used for inspecting |rvh|. | |
21 // New DevToolsAgentHost will be created if it does not exist. | |
22 static DevToolsAgentHost* GetDevToolsAgentHost(RenderViewHost* rvh); | |
23 // Returns true iff an instance of DevToolsAgentHost for the |rvh| | |
pfeldman
2011/11/21 14:52:21
Blank line before the comments.
yurys
2011/11/21 15:07:14
Done.
| |
24 // does exist. | |
25 static bool HasDevToolsAgentHost(RenderViewHost* rvh); | |
26 | |
27 // Returns DevToolsAgentHost that can be used for inspecting shared worker | |
28 // with given worker process host id and routing id. | |
29 static DevToolsAgentHost* GetDevToolsAgentHostForWorker( | |
30 int worker_process_id, | |
31 int worker_route_id); | |
32 | |
33 static bool IsDebuggerAttached(TabContents*); | |
34 }; | |
35 | |
36 } // namespace content | |
37 | |
38 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_REGISTRY_H_ | |
OLD | NEW |