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

Side by Side Diff: content/public/browser/devtools_client_host.h

Issue 9030032: Get rid of a bunch of tab_contents.h includes from chrome. These are all trivial changes to use W... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_CLIENT_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_CLIENT_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_CLIENT_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_CLIENT_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 13
14 namespace IPC { 14 namespace IPC {
15 class Message; 15 class Message;
16 } 16 }
17 17
18 class RenderViewHost; 18 class RenderViewHost;
19 class TabContents;
20 19
21 namespace content { 20 namespace content {
22 21
22 class WebContents;
23
23 class DevToolsFrontendHostDelegate; 24 class DevToolsFrontendHostDelegate;
24 25
25 // Describes interface for managing devtools clients from browser process. There 26 // Describes interface for managing devtools clients from browser process. There
26 // are currently two types of clients: devtools windows and TCP socket 27 // are currently two types of clients: devtools windows and TCP socket
27 // debuggers. 28 // debuggers.
28 class CONTENT_EXPORT DevToolsClientHost { 29 class CONTENT_EXPORT DevToolsClientHost {
29 public: 30 public:
30 virtual ~DevToolsClientHost() {} 31 virtual ~DevToolsClientHost() {}
31 32
32 // Dispatches given message on the front-end. 33 // Dispatches given message on the front-end.
33 virtual void DispatchOnInspectorFrontend(const std::string& message) = 0; 34 virtual void DispatchOnInspectorFrontend(const std::string& message) = 0;
34 35
35 // This method is called when tab inspected by this devtools client is 36 // This method is called when tab inspected by this devtools client is
36 // closing. 37 // closing.
37 virtual void InspectedTabClosing() = 0; 38 virtual void InspectedTabClosing() = 0;
38 39
39 // This method is called when tab inspected by this devtools client is 40 // This method is called when tab inspected by this devtools client is
40 // navigating to |url|. 41 // navigating to |url|.
41 virtual void FrameNavigating(const std::string& url) = 0; 42 virtual void FrameNavigating(const std::string& url) = 0;
42 43
43 // Invoked when a tab is replaced by another tab. This is triggered by 44 // Invoked when a tab is replaced by another tab. This is triggered by
44 // TabStripModel::ReplaceTabContentsAt. 45 // TabStripModel::ReplaceTabContentsAt.
45 virtual void TabReplaced(TabContents* new_tab) = 0; 46 virtual void TabReplaced(WebContents* new_tab) = 0;
46 47
47 // Creates DevToolsClientHost for TabContents containing default DevTools 48 // Creates DevToolsClientHost for TabContents containing default DevTools
48 // frontend implementation. 49 // frontend implementation.
49 static DevToolsClientHost* CreateDevToolsFrontendHost( 50 static DevToolsClientHost* CreateDevToolsFrontendHost(
50 TabContents* client_tab_contents, 51 WebContents* client_web_contents,
51 DevToolsFrontendHostDelegate* delegate); 52 DevToolsFrontendHostDelegate* delegate);
52 53
53 // Sets up DevToolsClient on the corresponding RenderView. 54 // Sets up DevToolsClient on the corresponding RenderView.
54 static void SetupDevToolsFrontendClient(RenderViewHost* frontend_rvh); 55 static void SetupDevToolsFrontendClient(RenderViewHost* frontend_rvh);
55 }; 56 };
56 57
57 } // namespace content 58 } // namespace content
58 59
59 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_CLIENT_HOST_H_ 60 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_CLIENT_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents.cc ('k') | content/public/browser/devtools_frontend_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698