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

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

Issue 10065017: TabContents -> WebContentsImpl, part 8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
(...skipping 14 matching lines...) Expand all
25 // Describes interface for managing devtools clients from browser process. There 25 // Describes interface for managing devtools clients from browser process. There
26 // are currently two types of clients: devtools windows and TCP socket 26 // are currently two types of clients: devtools windows and TCP socket
27 // debuggers. 27 // debuggers.
28 class CONTENT_EXPORT DevToolsClientHost { 28 class CONTENT_EXPORT DevToolsClientHost {
29 public: 29 public:
30 virtual ~DevToolsClientHost() {} 30 virtual ~DevToolsClientHost() {}
31 31
32 // Dispatches given message on the front-end. 32 // Dispatches given message on the front-end.
33 virtual void DispatchOnInspectorFrontend(const std::string& message) = 0; 33 virtual void DispatchOnInspectorFrontend(const std::string& message) = 0;
34 34
35 // This method is called when tab inspected by this devtools client is 35 // This method is called when the contents inspected by this devtools client
36 // closing. 36 // is closing.
37 virtual void InspectedTabClosing() = 0; 37 virtual void InspectedContentsClosing() = 0;
38 38
39 // This method is called when tab inspected by this devtools client is 39 // This method is called when the contents inspected by this devtools client
40 // navigating to |url|. 40 // is navigating to |url|.
41 virtual void FrameNavigating(const std::string& url) = 0; 41 virtual void FrameNavigating(const std::string& url) = 0;
42 42
43 // Invoked when a tab is replaced by another tab. This is triggered by 43 // Invoked when the contents are replaced by another contents.
44 // TabStripModel::ReplaceTabContentsAt. 44 virtual void ContentsReplaced(WebContents* new_contents) = 0;
45 virtual void TabReplaced(WebContents* new_tab) = 0;
46 45
47 // Creates DevToolsClientHost for TabContents containing default DevTools 46 // Creates DevToolsClientHost for TabContents containing default DevTools
48 // frontend implementation. 47 // frontend implementation.
49 static DevToolsClientHost* CreateDevToolsFrontendHost( 48 static DevToolsClientHost* CreateDevToolsFrontendHost(
50 WebContents* client_web_contents, 49 WebContents* client_web_contents,
51 DevToolsFrontendHostDelegate* delegate); 50 DevToolsFrontendHostDelegate* delegate);
52 51
53 // Sets up DevToolsClient on the corresponding RenderView. 52 // Sets up DevToolsClient on the corresponding RenderView.
54 static void SetupDevToolsFrontendClient(RenderViewHost* frontend_rvh); 53 static void SetupDevToolsFrontendClient(RenderViewHost* frontend_rvh);
55 }; 54 };
56 55
57 } // namespace content 56 } // namespace content
58 57
59 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_CLIENT_HOST_H_ 58 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_CLIENT_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/debugger/render_view_devtools_agent_host.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