| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 virtual void RenderViewHostDestroyed(RenderViewHost* rvh) OVERRIDE; | 35 virtual void RenderViewHostDestroyed(RenderViewHost* rvh) OVERRIDE; |
| 36 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 36 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 37 | 37 |
| 38 void OnForwardToClient(const IPC::Message& message); | 38 void OnForwardToClient(const IPC::Message& message); |
| 39 void OnSaveAgentRuntimeState(const std::string& state); | 39 void OnSaveAgentRuntimeState(const std::string& state); |
| 40 void OnClearBrowserCache(); | 40 void OnClearBrowserCache(); |
| 41 void OnClearBrowserCookies(); | 41 void OnClearBrowserCookies(); |
| 42 | 42 |
| 43 RenderViewHost* render_view_host_; | 43 RenderViewHost* render_view_host_; |
| 44 | 44 |
| 45 typedef std::map<RenderViewHost*, RenderViewDevToolsAgentHost*> Instances; | |
| 46 static Instances instances_; | |
| 47 | |
| 48 DISALLOW_COPY_AND_ASSIGN(RenderViewDevToolsAgentHost); | 45 DISALLOW_COPY_AND_ASSIGN(RenderViewDevToolsAgentHost); |
| 49 }; | 46 }; |
| 50 | 47 |
| 51 #endif // CONTENT_BROWSER_DEBUGGER_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ | 48 #endif // CONTENT_BROWSER_DEBUGGER_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ |
| OLD | NEW |