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 20 matching lines...) Expand all Loading... |
31 // Dispatches given message on the front-end. | 31 // Dispatches given message on the front-end. |
32 virtual void DispatchOnInspectorFrontend(const std::string& message) = 0; | 32 virtual void DispatchOnInspectorFrontend(const std::string& message) = 0; |
33 | 33 |
34 // This method is called when the contents inspected by this devtools client | 34 // This method is called when the contents inspected by this devtools client |
35 // is closing. | 35 // is closing. |
36 virtual void InspectedContentsClosing() = 0; | 36 virtual void InspectedContentsClosing() = 0; |
37 | 37 |
38 // Called to notify client that it has been kicked out by some other client | 38 // Called to notify client that it has been kicked out by some other client |
39 // with greater priority. | 39 // with greater priority. |
40 virtual void ReplacedWithAnotherClient() = 0; | 40 virtual void ReplacedWithAnotherClient() = 0; |
41 | |
42 // Creates a DevToolsClientHost for a WebContents containing the default | |
43 // DevTools frontend implementation. | |
44 static DevToolsClientHost* CreateDevToolsFrontendHost( | |
45 WebContents* client_web_contents, | |
46 DevToolsFrontendHostDelegate* delegate); | |
47 | |
48 // Sets up DevToolsClient on the corresponding RenderView. | |
49 static void SetupDevToolsFrontendClient(RenderViewHost* frontend_rvh); | |
50 }; | 41 }; |
51 | 42 |
52 } // namespace content | 43 } // namespace content |
53 | 44 |
54 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_CLIENT_HOST_H_ | 45 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_CLIENT_HOST_H_ |
OLD | NEW |