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 |
| 24 // Returns true iff an instance of DevToolsAgentHost for the |rvh| |
| 25 // does exist. |
| 26 static bool HasDevToolsAgentHost(RenderViewHost* rvh); |
| 27 |
| 28 // Returns DevToolsAgentHost that can be used for inspecting shared worker |
| 29 // with given worker process host id and routing id. |
| 30 static DevToolsAgentHost* GetDevToolsAgentHostForWorker( |
| 31 int worker_process_id, |
| 32 int worker_route_id); |
| 33 |
| 34 static bool IsDebuggerAttached(TabContents* tab_contents); |
| 35 }; |
| 36 |
| 37 } // namespace content |
| 38 |
| 39 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_REGISTRY_H_ |
OLD | NEW |