OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_BROWSER_DEBUGGER_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ | |
6 #define CONTENT_BROWSER_DEBUGGER_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ | |
7 | |
8 #include <map> | |
9 | |
10 #include "base/basictypes.h" | |
11 #include "base/compiler_specific.h" | |
12 #include "content/browser/debugger/devtools_agent_host.h" | |
13 #include "content/common/content_export.h" | |
14 #include "content/public/browser/render_view_host_observer.h" | |
15 | |
16 namespace content { | |
17 | |
18 class RenderViewHost; | |
19 | |
20 class CONTENT_EXPORT RenderViewDevToolsAgentHost | |
21 : public DevToolsAgentHost, | |
22 private RenderViewHostObserver { | |
23 public: | |
24 RenderViewDevToolsAgentHost(RenderViewHost*); | |
25 | |
26 private: | |
27 virtual ~RenderViewDevToolsAgentHost(); | |
28 | |
29 // DevToolsAgentHost implementation. | |
30 virtual void SendMessageToAgent(IPC::Message* msg) OVERRIDE; | |
31 virtual void NotifyClientAttaching() OVERRIDE; | |
32 virtual void NotifyClientDetaching() OVERRIDE; | |
33 virtual int GetRenderProcessId() OVERRIDE; | |
34 | |
35 // RenderViewHostObserver overrides. | |
36 virtual void RenderViewHostDestroyed(RenderViewHost* rvh) OVERRIDE; | |
37 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | |
38 | |
39 void OnDispatchOnInspectorFrontend(const std::string& message); | |
40 void OnSaveAgentRuntimeState(const std::string& state); | |
41 void OnClearBrowserCache(); | |
42 void OnClearBrowserCookies(); | |
43 | |
44 RenderViewHost* render_view_host_; | |
45 | |
46 DISALLOW_COPY_AND_ASSIGN(RenderViewDevToolsAgentHost); | |
47 }; | |
48 | |
49 } // namespace content | |
50 | |
51 #endif // CONTENT_BROWSER_DEBUGGER_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ | |
OLD | NEW |