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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/devtools/devtools_agent_host_registry.h
diff --git a/content/public/browser/devtools/devtools_agent_host_registry.h b/content/public/browser/devtools/devtools_agent_host_registry.h
new file mode 100644
index 0000000000000000000000000000000000000000..128b5b687cbfc9b33185254eb6f27272a1de791a
--- /dev/null
+++ b/content/public/browser/devtools/devtools_agent_host_registry.h
@@ -0,0 +1,40 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_REGISTRY_H_
+#define CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_REGISTRY_H_
+#pragma once
+
+#include "content/common/content_export.h"
+
+class RenderViewHost;
+class TabContents;
+
+namespace content {
+
+class DevToolsAgentHost;
+
+class CONTENT_EXPORT DevToolsAgentHostRegistry {
+ public:
+
jam 2011/11/21 21:16:04 nit: unnecessary blank line
yurys 2011/11/30 15:49:43 Done.
+ // Returns DevToolsAgentHost that can be used for inspecting |rvh|.
+ // New DevToolsAgentHost will be created if it does not exist.
+ static DevToolsAgentHost* GetDevToolsAgentHost(RenderViewHost* rvh);
+
+ // Returns true iff an instance of DevToolsAgentHost for the |rvh|
+ // does exist.
+ static bool HasDevToolsAgentHost(RenderViewHost* rvh);
+
+ // Returns DevToolsAgentHost that can be used for inspecting shared worker
+ // with given worker process host id and routing id.
+ static DevToolsAgentHost* GetDevToolsAgentHostForWorker(
+ int worker_process_id,
+ int worker_route_id);
+
+ 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.
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_REGISTRY_H_

Powered by Google App Engine
This is Rietveld 408576698