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

Unified Diff: content/public/browser/devtools_client_host.h

Issue 467653002: Revert of [DevTools] Make DevTools clients talk directly to DevToolsAgentHost instead of using DevToolsManage… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months 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
« no previous file with comments | « content/public/browser/devtools_agent_host_client.h ('k') | content/public/browser/devtools_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/devtools_client_host.h
diff --git a/content/public/browser/devtools_client_host.h b/content/public/browser/devtools_client_host.h
new file mode 100644
index 0000000000000000000000000000000000000000..67b7003ab501cb513e6e748a4d6616911bd48cb2
--- /dev/null
+++ b/content/public/browser/devtools_client_host.h
@@ -0,0 +1,45 @@
+// Copyright (c) 2012 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_CLIENT_HOST_H_
+#define CONTENT_PUBLIC_BROWSER_DEVTOOLS_CLIENT_HOST_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "content/common/content_export.h"
+
+namespace IPC {
+class Message;
+}
+
+namespace content {
+
+class RenderViewHost;
+class WebContents;
+
+class DevToolsFrontendHostDelegate;
+
+// Describes interface for managing devtools clients from browser process. There
+// are currently two types of clients: devtools windows and TCP socket
+// debuggers.
+class CONTENT_EXPORT DevToolsClientHost {
+ public:
+ virtual ~DevToolsClientHost() {}
+
+ // Dispatches given message on the front-end.
+ virtual void DispatchOnInspectorFrontend(const std::string& message) = 0;
+
+ // This method is called when the contents inspected by this devtools client
+ // is closing.
+ virtual void InspectedContentsClosing() = 0;
+
+ // Called to notify client that it has been kicked out by some other client
+ // with greater priority.
+ virtual void ReplacedWithAnotherClient() = 0;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_CLIENT_HOST_H_
« no previous file with comments | « content/public/browser/devtools_agent_host_client.h ('k') | content/public/browser/devtools_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698