| 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_BROWSER_DEBUGGER_DEVTOOLS_FRONTEND_HOST_H_ | 5 #ifndef CONTENT_BROWSER_DEBUGGER_DEVTOOLS_FRONTEND_HOST_H_ |
| 6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_FRONTEND_HOST_H_ | 6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_FRONTEND_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "content/public/browser/devtools_client_host.h" | 12 #include "content/public/browser/devtools_client_host.h" |
| 13 #include "content/public/browser/render_view_host_observer.h" | 13 #include "content/public/browser/render_view_host_observer.h" |
| 14 | 14 |
| 15 class WebContentsImpl; | |
| 16 | |
| 17 namespace content { | 15 namespace content { |
| 18 | 16 |
| 19 class DevToolsFrontendHostDelegate; | 17 class DevToolsFrontendHostDelegate; |
| 18 class WebContentsImpl; |
| 20 | 19 |
| 21 // This class handles messages from DevToolsClient and calls corresponding | 20 // This class handles messages from DevToolsClient and calls corresponding |
| 22 // methods on DevToolsFrontendHostDelegate which is implemented by the | 21 // methods on DevToolsFrontendHostDelegate which is implemented by the |
| 23 // embedder. This allows us to avoid exposing DevTools client messages through | 22 // embedder. This allows us to avoid exposing DevTools client messages through |
| 24 // the content public API. | 23 // the content public API. |
| 25 class DevToolsFrontendHost : public DevToolsClientHost, | 24 class DevToolsFrontendHost : public DevToolsClientHost, |
| 26 public RenderViewHostObserver { | 25 public RenderViewHostObserver { |
| 27 public: | 26 public: |
| 28 DevToolsFrontendHost(WebContentsImpl* web_contents, | 27 DevToolsFrontendHost(WebContentsImpl* web_contents, |
| 29 DevToolsFrontendHostDelegate* delegate); | 28 DevToolsFrontendHostDelegate* delegate); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 50 void OnAppend(const std::string& url, const std::string& content); | 49 void OnAppend(const std::string& url, const std::string& content); |
| 51 | 50 |
| 52 WebContentsImpl* web_contents_; | 51 WebContentsImpl* web_contents_; |
| 53 DevToolsFrontendHostDelegate* delegate_; | 52 DevToolsFrontendHostDelegate* delegate_; |
| 54 DISALLOW_COPY_AND_ASSIGN(DevToolsFrontendHost); | 53 DISALLOW_COPY_AND_ASSIGN(DevToolsFrontendHost); |
| 55 }; | 54 }; |
| 56 | 55 |
| 57 } // namespace content | 56 } // namespace content |
| 58 | 57 |
| 59 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_FRONTEND_HOST_H_ | 58 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_FRONTEND_HOST_H_ |
| OLD | NEW |