| 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_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 explicit RenderProcessHostImpl(content::BrowserContext* browser_context); | 56 explicit RenderProcessHostImpl(content::BrowserContext* browser_context); |
| 57 virtual ~RenderProcessHostImpl(); | 57 virtual ~RenderProcessHostImpl(); |
| 58 | 58 |
| 59 // RenderProcessHost implementation (public portion). | 59 // RenderProcessHost implementation (public portion). |
| 60 virtual void EnableSendQueue() OVERRIDE; | 60 virtual void EnableSendQueue() OVERRIDE; |
| 61 virtual bool Init() OVERRIDE; | 61 virtual bool Init() OVERRIDE; |
| 62 virtual int GetNextRoutingID() OVERRIDE; | 62 virtual int GetNextRoutingID() OVERRIDE; |
| 63 virtual void CancelResourceRequests(int render_widget_id) OVERRIDE; | 63 virtual void CancelResourceRequests(int render_widget_id) OVERRIDE; |
| 64 virtual void SimulateSwapOutACK( | 64 virtual void SimulateSwapOutACK( |
| 65 const ViewMsg_SwapOut_Params& params) OVERRIDE; | 65 const ViewMsg_SwapOut_Params& params) OVERRIDE; |
| 66 virtual bool WaitForUpdateMsg(int render_widget_id, | 66 virtual bool WaitForBackingStoreMsg(int render_widget_id, |
| 67 const base::TimeDelta& max_delay, | 67 const base::TimeDelta& max_delay, |
| 68 IPC::Message* msg) OVERRIDE; | 68 IPC::Message* msg) OVERRIDE; |
| 69 virtual void ReceivedBadMessage() OVERRIDE; | 69 virtual void ReceivedBadMessage() OVERRIDE; |
| 70 virtual void WidgetRestored() OVERRIDE; | 70 virtual void WidgetRestored() OVERRIDE; |
| 71 virtual void WidgetHidden() OVERRIDE; | 71 virtual void WidgetHidden() OVERRIDE; |
| 72 virtual int VisibleWidgetCount() const OVERRIDE; | 72 virtual int VisibleWidgetCount() const OVERRIDE; |
| 73 virtual bool FastShutdownIfPossible() OVERRIDE; | 73 virtual bool FastShutdownIfPossible() OVERRIDE; |
| 74 virtual void DumpHandles() OVERRIDE; | 74 virtual void DumpHandles() OVERRIDE; |
| 75 virtual base::ProcessHandle GetHandle() OVERRIDE; | 75 virtual base::ProcessHandle GetHandle() OVERRIDE; |
| 76 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id) OVERRIDE; | 76 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id) OVERRIDE; |
| 77 virtual content::BrowserContext* GetBrowserContext() const OVERRIDE; | 77 virtual content::BrowserContext* GetBrowserContext() const OVERRIDE; |
| 78 virtual int GetID() const OVERRIDE; | 78 virtual int GetID() const OVERRIDE; |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 void CreateMessageFilters(); | 155 void CreateMessageFilters(); |
| 156 | 156 |
| 157 // Control message handlers. | 157 // Control message handlers. |
| 158 void OnShutdownRequest(); | 158 void OnShutdownRequest(); |
| 159 void OnDumpHandlesDone(); | 159 void OnDumpHandlesDone(); |
| 160 void SuddenTerminationChanged(bool enabled); | 160 void SuddenTerminationChanged(bool enabled); |
| 161 void OnUserMetricsRecordAction(const std::string& action); | 161 void OnUserMetricsRecordAction(const std::string& action); |
| 162 void OnRevealFolderInOS(const FilePath& path); | 162 void OnRevealFolderInOS(const FilePath& path); |
| 163 void OnSavedPageAsMHTML(int job_id, int64 mhtml_file_size); | 163 void OnSavedPageAsMHTML(int job_id, int64 mhtml_file_size); |
| 164 | 164 |
| 165 // CompositorSurfaceBuffersSwapped handler when there's no RWH. |
| 166 void OnCompositorSurfaceBuffersSwappedNoHost(int32 surface_id, |
| 167 uint64 surface_handle, |
| 168 int32 route_id, |
| 169 int32 gpu_process_host_id); |
| 170 |
| 165 // Generates a command line to be used to spawn a renderer and appends the | 171 // Generates a command line to be used to spawn a renderer and appends the |
| 166 // results to |*command_line|. | 172 // results to |*command_line|. |
| 167 void AppendRendererCommandLine(CommandLine* command_line) const; | 173 void AppendRendererCommandLine(CommandLine* command_line) const; |
| 168 | 174 |
| 169 // Copies applicable command line switches from the given |browser_cmd| line | 175 // Copies applicable command line switches from the given |browser_cmd| line |
| 170 // flags to the output |renderer_cmd| line flags. Not all switches will be | 176 // flags to the output |renderer_cmd| line flags. Not all switches will be |
| 171 // copied over. | 177 // copied over. |
| 172 void PropagateBrowserCommandLineToRenderer(const CommandLine& browser_cmd, | 178 void PropagateBrowserCommandLineToRenderer(const CommandLine& browser_cmd, |
| 173 CommandLine* renderer_cmd) const; | 179 CommandLine* renderer_cmd) const; |
| 174 | 180 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 // filtering for this at the render widget level. | 261 // filtering for this at the render widget level. |
| 256 bool ignore_input_events_; | 262 bool ignore_input_events_; |
| 257 | 263 |
| 258 // Records the last time we regarded the child process active. | 264 // Records the last time we regarded the child process active. |
| 259 base::TimeTicks child_process_activity_time_; | 265 base::TimeTicks child_process_activity_time_; |
| 260 | 266 |
| 261 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 267 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 262 }; | 268 }; |
| 263 | 269 |
| 264 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 270 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |