| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 public RenderViewHostObserver { | 26 public RenderViewHostObserver { |
| 27 public: | 27 public: |
| 28 DevToolsFrontendHost(WebContentsImpl* web_contents, | 28 DevToolsFrontendHost(WebContentsImpl* web_contents, |
| 29 DevToolsFrontendHostDelegate* delegate); | 29 DevToolsFrontendHostDelegate* delegate); |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 virtual ~DevToolsFrontendHost(); | 32 virtual ~DevToolsFrontendHost(); |
| 33 | 33 |
| 34 // DevToolsFrontendHost implementation. | 34 // DevToolsFrontendHost implementation. |
| 35 virtual void DispatchOnInspectorFrontend(const std::string& message) OVERRIDE; | 35 virtual void DispatchOnInspectorFrontend(const std::string& message) OVERRIDE; |
| 36 virtual void InspectedTabClosing() OVERRIDE; | 36 virtual void InspectedContentsClosing() OVERRIDE; |
| 37 virtual void FrameNavigating(const std::string& url) OVERRIDE; | 37 virtual void FrameNavigating(const std::string& url) OVERRIDE; |
| 38 virtual void TabReplaced(WebContents* new_tab) OVERRIDE; | 38 virtual void ContentsReplaced(WebContents* new_contents) OVERRIDE; |
| 39 | 39 |
| 40 // content::RenderViewHostObserver overrides. | 40 // content::RenderViewHostObserver overrides. |
| 41 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 41 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 42 | 42 |
| 43 void OnDispatchOnInspectorBackend(const std::string& message); | 43 void OnDispatchOnInspectorBackend(const std::string& message); |
| 44 void OnActivateWindow(); | 44 void OnActivateWindow(); |
| 45 void OnCloseWindow(); | 45 void OnCloseWindow(); |
| 46 void OnMoveWindow(int x, int y); | 46 void OnMoveWindow(int x, int y); |
| 47 void OnRequestDockWindow(); | 47 void OnRequestDockWindow(); |
| 48 void OnRequestUndockWindow(); | 48 void OnRequestUndockWindow(); |
| 49 void OnRequestSetDockSide(const std::string& side); | 49 void OnRequestSetDockSide(const std::string& side); |
| 50 void OnOpenInNewTab(const std::string& url); | 50 void OnOpenInNewTab(const std::string& url); |
| 51 void OnSave(const std::string& url, | 51 void OnSave(const std::string& url, |
| 52 const std::string& content, | 52 const std::string& content, |
| 53 bool save_as); | 53 bool save_as); |
| 54 | 54 |
| 55 WebContentsImpl* tab_contents_; | 55 WebContentsImpl* web_contents_; |
| 56 DevToolsFrontendHostDelegate* delegate_; | 56 DevToolsFrontendHostDelegate* delegate_; |
| 57 DISALLOW_COPY_AND_ASSIGN(DevToolsFrontendHost); | 57 DISALLOW_COPY_AND_ASSIGN(DevToolsFrontendHost); |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace content | 60 } // namespace content |
| 61 | 61 |
| 62 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_FRONTEND_HOST_H_ | 62 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_FRONTEND_HOST_H_ |
| OLD | NEW |