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

Unified Diff: chrome/browser/debugger/devtools_client_host.h

Issue 7274031: Wholesale move of debugger sources to content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add OWNERS and DEPS. Created 9 years, 6 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
Index: chrome/browser/debugger/devtools_client_host.h
diff --git a/chrome/browser/debugger/devtools_client_host.h b/chrome/browser/debugger/devtools_client_host.h
deleted file mode 100644
index 4c81e874e4c3f0e776c7814403db15fe2115f079..0000000000000000000000000000000000000000
--- a/chrome/browser/debugger/devtools_client_host.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) 2009 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 CHROME_BROWSER_DEBUGGER_DEVTOOLS_CLIENT_HOST_H_
-#define CHROME_BROWSER_DEBUGGER_DEVTOOLS_CLIENT_HOST_H_
-#pragma once
-
-#include <string>
-
-#include "base/basictypes.h"
-
-namespace IPC {
-class Message;
-}
-
-class DevToolsWindow;
-class TabContentsWrapper;
-
-// Describes interface for managing devtools clients from browser process. There
-// are currently two types of clients: devtools windows and TCP socket
-// debuggers.
-class DevToolsClientHost {
- public:
- class CloseListener {
- public:
- CloseListener() {}
- virtual ~CloseListener() {}
- virtual void ClientHostClosing(DevToolsClientHost* host) = 0;
- private:
- DISALLOW_COPY_AND_ASSIGN(CloseListener);
- };
-
- 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;
- }
-
- virtual DevToolsWindow* AsDevToolsWindow();
-
- // Invoked when a tab is replaced by another tab. This is triggered by
- // TabStripModel::ReplaceTabContentsAt.
- virtual void TabReplaced(TabContentsWrapper* new_tab) = 0;
-
- protected:
- DevToolsClientHost() : close_listener_(NULL) {}
-
- // 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 // CHROME_BROWSER_DEBUGGER_DEVTOOLS_CLIENT_HOST_H_

Powered by Google App Engine
This is Rietveld 408576698