Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_REGISTRY_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_REGISTRY_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_REGISTRY_H_ | 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_REGISTRY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 | 10 |
| 11 class RenderViewHost; | |
| 12 | |
| 13 namespace content { | 11 namespace content { |
| 14 | 12 |
| 15 class DevToolsAgentHost; | 13 class DevToolsAgentHost; |
| 14 class RenderViewHost; | |
| 16 class WebContents; | 15 class WebContents; |
| 17 | 16 |
| 18 class CONTENT_EXPORT DevToolsAgentHostRegistry { | 17 class CONTENT_EXPORT DevToolsAgentHostRegistry { |
| 19 public: | 18 public: |
| 20 // Returns DevToolsAgentHost that can be used for inspecting |rvh|. | 19 // Returns DevToolsAgentHost that can be used for inspecting |rvh|. |
| 21 // New DevToolsAgentHost will be created if it does not exist. | 20 // New DevToolsAgentHost will be created if it does not exist. |
| 22 static DevToolsAgentHost* GetDevToolsAgentHost(RenderViewHost* rvh); | 21 static DevToolsAgentHost* GetDevToolsAgentHost(content::RenderViewHost* rvh); |
|
jam
2012/03/05 23:59:28
no need for content:: here and below
Jói
2012/03/06 16:38:55
Done.
| |
| 23 | 22 |
| 24 // Returns render view host instance for given |agent_host|. | 23 // Returns render view host instance for given |agent_host|. |
| 25 static RenderViewHost* GetRenderViewHost(DevToolsAgentHost* agent_host); | 24 static content::RenderViewHost* GetRenderViewHost( |
| 25 DevToolsAgentHost* agent_host); | |
| 26 | 26 |
| 27 // Returns true iff an instance of DevToolsAgentHost for the |rvh| | 27 // Returns true iff an instance of DevToolsAgentHost for the |rvh| |
| 28 // does exist. | 28 // does exist. |
| 29 static bool HasDevToolsAgentHost(RenderViewHost* rvh); | 29 static bool HasDevToolsAgentHost(content::RenderViewHost* rvh); |
| 30 | 30 |
| 31 // Returns DevToolsAgentHost that can be used for inspecting shared worker | 31 // Returns DevToolsAgentHost that can be used for inspecting shared worker |
| 32 // with given worker process host id and routing id. | 32 // with given worker process host id and routing id. |
| 33 static DevToolsAgentHost* GetDevToolsAgentHostForWorker( | 33 static DevToolsAgentHost* GetDevToolsAgentHostForWorker( |
| 34 int worker_process_id, | 34 int worker_process_id, |
| 35 int worker_route_id); | 35 int worker_route_id); |
| 36 | 36 |
| 37 static bool IsDebuggerAttached(WebContents* web_contents); | 37 static bool IsDebuggerAttached(WebContents* web_contents); |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 } // namespace content | 40 } // namespace content |
| 41 | 41 |
| 42 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_REGISTRY_H_ | 42 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_REGISTRY_H_ |
| OLD | NEW |