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