OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 25 matching lines...) Expand all Loading... |
36 // is closing. | 36 // is closing. |
37 virtual void InspectedContentsClosing() = 0; | 37 virtual void InspectedContentsClosing() = 0; |
38 | 38 |
39 // This method is called when the contents inspected by this devtools client | 39 // This method is called when the contents inspected by this devtools client |
40 // is 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 the contents are replaced by another contents. | 43 // Invoked when the contents are replaced by another contents. |
44 virtual void ContentsReplaced(WebContents* new_contents) = 0; | 44 virtual void ContentsReplaced(WebContents* new_contents) = 0; |
45 | 45 |
46 // Creates DevToolsClientHost for TabContents containing default DevTools | 46 // Creates a DevToolsClientHost for a WebContents containing the default |
47 // frontend implementation. | 47 // DevTools frontend implementation. |
48 static DevToolsClientHost* CreateDevToolsFrontendHost( | 48 static DevToolsClientHost* CreateDevToolsFrontendHost( |
49 WebContents* client_web_contents, | 49 WebContents* client_web_contents, |
50 DevToolsFrontendHostDelegate* delegate); | 50 DevToolsFrontendHostDelegate* delegate); |
51 | 51 |
52 // Sets up DevToolsClient on the corresponding RenderView. | 52 // Sets up DevToolsClient on the corresponding RenderView. |
53 static void SetupDevToolsFrontendClient(RenderViewHost* frontend_rvh); | 53 static void SetupDevToolsFrontendClient(RenderViewHost* frontend_rvh); |
54 }; | 54 }; |
55 | 55 |
56 } // namespace content | 56 } // namespace content |
57 | 57 |
58 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_CLIENT_HOST_H_ | 58 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_CLIENT_HOST_H_ |
OLD | NEW |