Chromium Code Reviews| OLD | NEW |
|---|---|
| 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; | |
| 19 | |
| 20 namespace content { | 18 namespace content { |
| 21 | 19 |
| 20 class RenderViewHost; | |
| 22 class WebContents; | 21 class WebContents; |
| 23 | 22 |
| 24 class DevToolsFrontendHostDelegate; | 23 class DevToolsFrontendHostDelegate; |
| 25 | 24 |
| 26 // Describes interface for managing devtools clients from browser process. There | 25 // Describes interface for managing devtools clients from browser process. There |
| 27 // are currently two types of clients: devtools windows and TCP socket | 26 // are currently two types of clients: devtools windows and TCP socket |
| 28 // debuggers. | 27 // debuggers. |
| 29 class CONTENT_EXPORT DevToolsClientHost { | 28 class CONTENT_EXPORT DevToolsClientHost { |
| 30 public: | 29 public: |
| 31 virtual ~DevToolsClientHost() {} | 30 virtual ~DevToolsClientHost() {} |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 45 // TabStripModel::ReplaceTabContentsAt. | 44 // TabStripModel::ReplaceTabContentsAt. |
| 46 virtual void TabReplaced(WebContents* new_tab) = 0; | 45 virtual void TabReplaced(WebContents* new_tab) = 0; |
| 47 | 46 |
| 48 // Creates DevToolsClientHost for TabContents containing default DevTools | 47 // Creates DevToolsClientHost for TabContents containing default DevTools |
| 49 // frontend implementation. | 48 // frontend implementation. |
| 50 static DevToolsClientHost* CreateDevToolsFrontendHost( | 49 static DevToolsClientHost* CreateDevToolsFrontendHost( |
| 51 WebContents* client_web_contents, | 50 WebContents* client_web_contents, |
| 52 DevToolsFrontendHostDelegate* delegate); | 51 DevToolsFrontendHostDelegate* delegate); |
| 53 | 52 |
| 54 // Sets up DevToolsClient on the corresponding RenderView. | 53 // Sets up DevToolsClient on the corresponding RenderView. |
| 55 static void SetupDevToolsFrontendClient(RenderViewHost* frontend_rvh); | 54 static void SetupDevToolsFrontendClient( |
| 55 content::RenderViewHost* frontend_rvh); | |
|
jam
2012/03/05 23:59:28
ditto
Jói
2012/03/06 16:38:55
Done.
| |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace content | 58 } // namespace content |
| 59 | 59 |
| 60 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_CLIENT_HOST_H_ | 60 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_CLIENT_HOST_H_ |
| OLD | NEW |