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

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

Issue 8549022: Define DevTools content API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed 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
(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
jam 2011/11/21 21:16:04 nit: unnecessary blank line
yurys 2011/11/30 15:49:43 Done.
21 // Returns DevToolsAgentHost that can be used for inspecting |rvh|.
22 // New DevToolsAgentHost will be created if it does not exist.
23 static DevToolsAgentHost* GetDevToolsAgentHost(RenderViewHost* rvh);
24
25 // Returns true iff an instance of DevToolsAgentHost for the |rvh|
26 // does exist.
27 static bool HasDevToolsAgentHost(RenderViewHost* rvh);
28
29 // Returns DevToolsAgentHost that can be used for inspecting shared worker
30 // with given worker process host id and routing id.
31 static DevToolsAgentHost* GetDevToolsAgentHostForWorker(
32 int worker_process_id,
33 int worker_route_id);
34
35 static bool IsDebuggerAttached(TabContents*);
jam 2011/11/21 21:16:04 nit: chrome style is to name parameters in the hea
yurys 2011/11/30 15:49:43 Done.
36 };
37
38 } // namespace content
39
40 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_REGISTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698