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_ |