| 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 // is closing. | 35 // is closing. |
| 36 virtual void InspectedContentsClosing() = 0; | 36 virtual void InspectedContentsClosing() = 0; |
| 37 | 37 |
| 38 // This method is called when the contents inspected by this devtools client | 38 // This method is called when the contents inspected by this devtools client |
| 39 // is navigating to |url|. | 39 // is navigating to |url|. |
| 40 virtual void FrameNavigating(const std::string& url) = 0; | 40 virtual void FrameNavigating(const std::string& url) = 0; |
| 41 | 41 |
| 42 // Invoked when the contents are replaced by another contents. | 42 // Invoked when the contents are replaced by another contents. |
| 43 virtual void ContentsReplaced(WebContents* new_contents) = 0; | 43 virtual void ContentsReplaced(WebContents* new_contents) = 0; |
| 44 | 44 |
| 45 // Called to notify client that it has been kicked out by some other client |
| 46 // with greater priority. |
| 47 virtual void ReplacedWithAnotherClient() = 0; |
| 48 |
| 45 // Creates a DevToolsClientHost for a WebContents containing the default | 49 // Creates a DevToolsClientHost for a WebContents containing the default |
| 46 // DevTools frontend implementation. | 50 // DevTools frontend implementation. |
| 47 static DevToolsClientHost* CreateDevToolsFrontendHost( | 51 static DevToolsClientHost* CreateDevToolsFrontendHost( |
| 48 WebContents* client_web_contents, | 52 WebContents* client_web_contents, |
| 49 DevToolsFrontendHostDelegate* delegate); | 53 DevToolsFrontendHostDelegate* delegate); |
| 50 | 54 |
| 51 // Sets up DevToolsClient on the corresponding RenderView. | 55 // Sets up DevToolsClient on the corresponding RenderView. |
| 52 static void SetupDevToolsFrontendClient(RenderViewHost* frontend_rvh); | 56 static void SetupDevToolsFrontendClient(RenderViewHost* frontend_rvh); |
| 53 }; | 57 }; |
| 54 | 58 |
| 55 } // namespace content | 59 } // namespace content |
| 56 | 60 |
| 57 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_CLIENT_HOST_H_ | 61 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_CLIENT_HOST_H_ |
| OLD | NEW |