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

Side by Side Diff: content/public/browser/devtools_agent_host_registry.h

Issue 8549022: Define DevTools content API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: jam's comments addressed Created 9 years 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
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/devtools_client_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/devtools_client_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698