| 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_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ | 5 #ifndef CONTENT_BROWSER_DEBUGGER_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ |
| 6 #define CONTENT_BROWSER_DEBUGGER_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ | 6 #define CONTENT_BROWSER_DEBUGGER_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 10 matching lines...) Expand all Loading... |
| 21 : public DevToolsAgentHost, | 21 : public DevToolsAgentHost, |
| 22 private content::RenderViewHostObserver { | 22 private content::RenderViewHostObserver { |
| 23 public: | 23 public: |
| 24 RenderViewDevToolsAgentHost(RenderViewHost*); | 24 RenderViewDevToolsAgentHost(RenderViewHost*); |
| 25 | 25 |
| 26 private: | 26 private: |
| 27 virtual ~RenderViewDevToolsAgentHost(); | 27 virtual ~RenderViewDevToolsAgentHost(); |
| 28 | 28 |
| 29 // DevToolsAgentHost implementation. | 29 // DevToolsAgentHost implementation. |
| 30 virtual void SendMessageToAgent(IPC::Message* msg) OVERRIDE; | 30 virtual void SendMessageToAgent(IPC::Message* msg) OVERRIDE; |
| 31 virtual void NotifyClientClosing() OVERRIDE; | 31 virtual void NotifyClientAttaching() OVERRIDE; |
| 32 virtual void NotifyClientDetaching() OVERRIDE; |
| 32 virtual int GetRenderProcessId() OVERRIDE; | 33 virtual int GetRenderProcessId() OVERRIDE; |
| 33 | 34 |
| 34 // content::RenderViewHostObserver overrides. | 35 // content::RenderViewHostObserver overrides. |
| 35 virtual void RenderViewHostDestroyed(RenderViewHost* rvh) OVERRIDE; | 36 virtual void RenderViewHostDestroyed(RenderViewHost* rvh) OVERRIDE; |
| 36 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 37 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 37 | 38 |
| 38 void OnDispatchOnInspectorFrontend(const std::string& message); | 39 void OnDispatchOnInspectorFrontend(const std::string& message); |
| 39 void OnSaveAgentRuntimeState(const std::string& state); | 40 void OnSaveAgentRuntimeState(const std::string& state); |
| 40 void OnClearBrowserCache(); | 41 void OnClearBrowserCache(); |
| 41 void OnClearBrowserCookies(); | 42 void OnClearBrowserCookies(); |
| 42 | 43 |
| 43 RenderViewHost* render_view_host_; | 44 RenderViewHost* render_view_host_; |
| 44 | 45 |
| 45 DISALLOW_COPY_AND_ASSIGN(RenderViewDevToolsAgentHost); | 46 DISALLOW_COPY_AND_ASSIGN(RenderViewDevToolsAgentHost); |
| 46 }; | 47 }; |
| 47 | 48 |
| 48 } // namespace content | 49 } // namespace content |
| 49 | 50 |
| 50 #endif // CONTENT_BROWSER_DEBUGGER_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ | 51 #endif // CONTENT_BROWSER_DEBUGGER_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ |
| OLD | NEW |