Index: content/browser/debugger/devtools_client_host.h |
diff --git a/content/browser/debugger/devtools_client_host.h b/content/browser/debugger/devtools_client_host.h |
deleted file mode 100644 |
index 16e4d89113ba314fd38483b7b08f1a9cd607fad7..0000000000000000000000000000000000000000 |
--- a/content/browser/debugger/devtools_client_host.h |
+++ /dev/null |
@@ -1,77 +0,0 @@ |
-// 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_BROWSER_DEBUGGER_DEVTOOLS_CLIENT_HOST_H_ |
-#define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_CLIENT_HOST_H_ |
-#pragma once |
- |
-#include <string> |
-#include <vector> |
- |
-#include "base/basictypes.h" |
-#include "content/common/content_export.h" |
- |
-namespace IPC { |
-class Message; |
-} |
- |
-class RenderViewHost; |
-class TabContents; |
- |
-// 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: |
- class CONTENT_EXPORT CloseListener { |
- public: |
- CloseListener() {} |
- virtual ~CloseListener() {} |
- virtual void ClientHostClosing(DevToolsClientHost* host) = 0; |
- private: |
- DISALLOW_COPY_AND_ASSIGN(CloseListener); |
- }; |
- |
- static DevToolsClientHost* FindOwnerClientHost(RenderViewHost* client_rvh); |
- |
- virtual ~DevToolsClientHost(); |
- |
- // This method is called when tab inspected by this devtools client is |
- // closing. |
- virtual void InspectedTabClosing() = 0; |
- |
- // This method is called when tab inspected by this devtools client is |
- // navigating to |url|. |
- virtual void FrameNavigating(const std::string& url) = 0; |
- |
- // Sends the message to the devtools client hosted by this object. |
- virtual void SendMessageToClient(const IPC::Message& msg) = 0; |
- |
- void set_close_listener(CloseListener* listener) { |
- close_listener_ = listener; |
- } |
- |
- // Invoked when a tab is replaced by another tab. This is triggered by |
- // TabStripModel::ReplaceTabContentsAt. |
- virtual void TabReplaced(TabContents* new_tab) = 0; |
- |
- // Returns client (front-end) RenderViewHost implementation of this |
- // client host if applicable. NULL otherwise. |
- virtual RenderViewHost* GetClientRenderViewHost(); |
- |
- protected: |
- DevToolsClientHost(); |
- |
- void ForwardToDevToolsAgent(const IPC::Message& message); |
- |
- // Should be called when the devtools client is going to die and this |
- // DevToolsClientHost should not be used anymore. |
- void NotifyCloseListener(); |
- |
- private: |
- CloseListener* close_listener_; |
- DISALLOW_COPY_AND_ASSIGN(DevToolsClientHost); |
-}; |
- |
-#endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_CLIENT_HOST_H_ |