Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(505)

Side by Side Diff: content/browser/debugger/render_view_devtools_agent_host.h

Issue 10837296: Fix a bug where the inspector would not keep event pages alive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: notification Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 NotifyClientOpening() OVERRIDE;
31 virtual void NotifyClientClosing() OVERRIDE; 32 virtual void NotifyClientClosing() 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698