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

Side by Side Diff: content/browser/renderer_host/browser_render_process_host.h

Issue 7888024: Move handle dumpage to the renderer process (so that it works correctly) and factor out redundant... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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) 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_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 virtual void CancelResourceRequests(int render_widget_id); 55 virtual void CancelResourceRequests(int render_widget_id);
56 virtual void CrossSiteSwapOutACK(const ViewMsg_SwapOut_Params& params); 56 virtual void CrossSiteSwapOutACK(const ViewMsg_SwapOut_Params& params);
57 virtual bool WaitForUpdateMsg(int render_widget_id, 57 virtual bool WaitForUpdateMsg(int render_widget_id,
58 const base::TimeDelta& max_delay, 58 const base::TimeDelta& max_delay,
59 IPC::Message* msg); 59 IPC::Message* msg);
60 virtual void ReceivedBadMessage(); 60 virtual void ReceivedBadMessage();
61 virtual void WidgetRestored(); 61 virtual void WidgetRestored();
62 virtual void WidgetHidden(); 62 virtual void WidgetHidden();
63 virtual int VisibleWidgetCount() const; 63 virtual int VisibleWidgetCount() const;
64 virtual bool FastShutdownIfPossible(); 64 virtual bool FastShutdownIfPossible();
65 virtual void DumpHandles();
65 virtual base::ProcessHandle GetHandle(); 66 virtual base::ProcessHandle GetHandle();
66 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id); 67 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id);
67 virtual void SetCompositingSurface( 68 virtual void SetCompositingSurface(
68 int render_widget_id, 69 int render_widget_id,
69 gfx::PluginWindowHandle compositing_surface); 70 gfx::PluginWindowHandle compositing_surface);
70 71
71 // IPC::Channel::Sender via RenderProcessHost. 72 // IPC::Channel::Sender via RenderProcessHost.
72 virtual bool Send(IPC::Message* msg); 73 virtual bool Send(IPC::Message* msg);
73 74
74 // IPC::Channel::Listener via RenderProcessHost. 75 // IPC::Channel::Listener via RenderProcessHost.
75 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 76 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
76 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; 77 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
77 virtual void OnChannelError() OVERRIDE; 78 virtual void OnChannelError() OVERRIDE;
78 79
79 // ChildProcessLauncher::Client implementation. 80 // ChildProcessLauncher::Client implementation.
80 virtual void OnProcessLaunched(); 81 virtual void OnProcessLaunched();
81 82
82 // base::WaitableEventWatcher::Delegate implementation. 83 // base::WaitableEventWatcher::Delegate implementation.
83 virtual void OnWaitableEventSignaled( 84 virtual void OnWaitableEventSignaled(
84 base::WaitableEvent* waitable_event) OVERRIDE; 85 base::WaitableEvent* waitable_event) OVERRIDE;
85 86
86 private: 87 private:
87 friend class VisitRelayingRenderProcessHost; 88 friend class VisitRelayingRenderProcessHost;
88 89
89 // Creates and adds the IO thread message filters. 90 // Creates and adds the IO thread message filters.
90 void CreateMessageFilters(); 91 void CreateMessageFilters();
91 92
92 // Control message handlers. 93 // Control message handlers.
93 void OnShutdownRequest(); 94 void OnShutdownRequest();
95 void OnDumpHandlesDone();
94 void SuddenTerminationChanged(bool enabled); 96 void SuddenTerminationChanged(bool enabled);
95 void OnUserMetricsRecordAction(const std::string& action); 97 void OnUserMetricsRecordAction(const std::string& action);
96 void OnRevealFolderInOS(const FilePath& path); 98 void OnRevealFolderInOS(const FilePath& path);
97 void OnSavedPageAsMHTML(int job_id, bool success); 99 void OnSavedPageAsMHTML(int job_id, bool success);
98 100
99 // Generates a command line to be used to spawn a renderer and appends the 101 // Generates a command line to be used to spawn a renderer and appends the
100 // results to |*command_line|. 102 // results to |*command_line|.
101 void AppendRendererCommandLine(CommandLine* command_line) const; 103 void AppendRendererCommandLine(CommandLine* command_line) const;
102 104
103 // Copies applicable command line switches from the given |browser_cmd| line 105 // Copies applicable command line switches from the given |browser_cmd| line
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 164
163 #if defined(OS_WIN) 165 #if defined(OS_WIN)
164 // Used to wait until the renderer dies to get an accurrate exit code. 166 // Used to wait until the renderer dies to get an accurrate exit code.
165 base::WaitableEventWatcher child_process_watcher_; 167 base::WaitableEventWatcher child_process_watcher_;
166 #endif 168 #endif
167 169
168 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); 170 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost);
169 }; 171 };
170 172
171 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ 173 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/handle_enumerator_win.cc ('k') | content/browser/renderer_host/browser_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698