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_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ |
6 #define CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 virtual RenderViewHost* GetRenderViewHost() OVERRIDE; | 41 virtual RenderViewHost* GetRenderViewHost() OVERRIDE; |
42 | 42 |
43 // IPCDevToolsAgentHost overrides. | 43 // IPCDevToolsAgentHost overrides. |
44 virtual void DispatchOnInspectorBackend(const std::string& message) OVERRIDE; | 44 virtual void DispatchOnInspectorBackend(const std::string& message) OVERRIDE; |
45 virtual void SendMessageToAgent(IPC::Message* msg) OVERRIDE; | 45 virtual void SendMessageToAgent(IPC::Message* msg) OVERRIDE; |
46 virtual void OnClientAttached() OVERRIDE; | 46 virtual void OnClientAttached() OVERRIDE; |
47 virtual void OnClientDetached() OVERRIDE; | 47 virtual void OnClientDetached() OVERRIDE; |
48 | 48 |
49 // WebContentsObserver overrides. | 49 // WebContentsObserver overrides. |
50 virtual void AboutToNavigateRenderView(RenderViewHost* dest_rvh) OVERRIDE; | 50 virtual void AboutToNavigateRenderView(RenderViewHost* dest_rvh) OVERRIDE; |
51 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; | 51 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; |
52 virtual void DidAttachInterstitialPage() OVERRIDE; | 52 virtual void DidAttachInterstitialPage() OVERRIDE; |
53 | 53 |
54 void ConnectRenderViewHost(RenderViewHost* rvh, bool reattach); | 54 void ConnectRenderViewHost(RenderViewHost* rvh, bool reattach); |
55 void DisconnectRenderViewHost(); | 55 void DisconnectRenderViewHost(); |
56 | 56 |
57 void RenderViewHostDestroyed(RenderViewHost* rvh); | 57 void RenderViewHostDestroyed(RenderViewHost* rvh); |
58 void RenderViewCrashed(); | 58 void RenderViewCrashed(); |
59 bool OnRvhMessageReceived(const IPC::Message& message); | 59 bool OnRvhMessageReceived(const IPC::Message& message); |
60 | 60 |
61 void OnDispatchOnInspectorFrontend(const std::string& message); | 61 void OnDispatchOnInspectorFrontend(const std::string& message); |
62 void OnSaveAgentRuntimeState(const std::string& state); | 62 void OnSaveAgentRuntimeState(const std::string& state); |
63 void OnClearBrowserCache(); | 63 void OnClearBrowserCache(); |
64 void OnClearBrowserCookies(); | 64 void OnClearBrowserCookies(); |
65 | 65 |
66 RenderViewHost* render_view_host_; | 66 RenderViewHost* render_view_host_; |
67 scoped_ptr<DevToolsAgentHostRvhObserver> rvh_observer_; | 67 scoped_ptr<DevToolsAgentHostRvhObserver> rvh_observer_; |
68 scoped_ptr<RendererOverridesHandler> overrides_handler_; | 68 scoped_ptr<RendererOverridesHandler> overrides_handler_; |
69 std::string state_; | 69 std::string state_; |
70 | 70 |
71 DISALLOW_COPY_AND_ASSIGN(RenderViewDevToolsAgentHost); | 71 DISALLOW_COPY_AND_ASSIGN(RenderViewDevToolsAgentHost); |
72 }; | 72 }; |
73 | 73 |
74 } // namespace content | 74 } // namespace content |
75 | 75 |
76 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ | 76 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ |
OLD | NEW |