| 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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/process.h" | 13 #include "base/process.h" |
| 14 #include "base/synchronization/waitable_event.h" | 14 #include "base/synchronization/waitable_event.h" |
| 15 #include "base/timer.h" | 15 #include "base/timer.h" |
| 16 #include "content/browser/child_process_launcher.h" | 16 #include "content/browser/child_process_launcher.h" |
| 17 #include "content/common/content_export.h" | 17 #include "content/common/content_export.h" |
| 18 #include "content/public/browser/render_process_host.h" | 18 #include "content/public/browser/render_process_host.h" |
| 19 #include "ipc/ipc_channel_proxy.h" | 19 #include "ipc/ipc_channel_proxy.h" |
| 20 #include "ui/surface/transport_dib.h" | 20 #include "ui/surface/transport_dib.h" |
| 21 | 21 |
| 22 class CommandLine; | 22 class CommandLine; |
| 23 struct ViewHostMsg_CompositorSurfaceBuffersSwapped_Params; |
| 23 | 24 |
| 24 namespace base { | 25 namespace base { |
| 25 class MessageLoop; | 26 class MessageLoop; |
| 26 } | 27 } |
| 27 | 28 |
| 28 namespace gfx { | 29 namespace gfx { |
| 29 class Size; | 30 class Size; |
| 30 } | 31 } |
| 31 | 32 |
| 32 namespace content { | 33 namespace content { |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 void CreateMessageFilters(); | 209 void CreateMessageFilters(); |
| 209 | 210 |
| 210 // Control message handlers. | 211 // Control message handlers. |
| 211 void OnShutdownRequest(); | 212 void OnShutdownRequest(); |
| 212 void OnDumpHandlesDone(); | 213 void OnDumpHandlesDone(); |
| 213 void SuddenTerminationChanged(bool enabled); | 214 void SuddenTerminationChanged(bool enabled); |
| 214 void OnUserMetricsRecordAction(const std::string& action); | 215 void OnUserMetricsRecordAction(const std::string& action); |
| 215 void OnSavedPageAsMHTML(int job_id, int64 mhtml_file_size); | 216 void OnSavedPageAsMHTML(int job_id, int64 mhtml_file_size); |
| 216 | 217 |
| 217 // CompositorSurfaceBuffersSwapped handler when there's no RWH. | 218 // CompositorSurfaceBuffersSwapped handler when there's no RWH. |
| 218 void OnCompositorSurfaceBuffersSwappedNoHost(int32 surface_id, | 219 void OnCompositorSurfaceBuffersSwappedNoHost( |
| 219 uint64 surface_handle, | 220 const ViewHostMsg_CompositorSurfaceBuffersSwapped_Params& params); |
| 220 int32 route_id, | |
| 221 const gfx::Size& size, | |
| 222 int32 gpu_process_host_id); | |
| 223 | 221 |
| 224 // Generates a command line to be used to spawn a renderer and appends the | 222 // Generates a command line to be used to spawn a renderer and appends the |
| 225 // results to |*command_line|. | 223 // results to |*command_line|. |
| 226 void AppendRendererCommandLine(CommandLine* command_line) const; | 224 void AppendRendererCommandLine(CommandLine* command_line) const; |
| 227 | 225 |
| 228 // Copies applicable command line switches from the given |browser_cmd| line | 226 // Copies applicable command line switches from the given |browser_cmd| line |
| 229 // flags to the output |renderer_cmd| line flags. Not all switches will be | 227 // flags to the output |renderer_cmd| line flags. Not all switches will be |
| 230 // copied over. | 228 // copied over. |
| 231 void PropagateBrowserCommandLineToRenderer(const CommandLine& browser_cmd, | 229 void PropagateBrowserCommandLineToRenderer(const CommandLine& browser_cmd, |
| 232 CommandLine* renderer_cmd) const; | 230 CommandLine* renderer_cmd) const; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 // Forwards messages between WebRTCInternals in the browser process | 326 // Forwards messages between WebRTCInternals in the browser process |
| 329 // and PeerConnectionTracker in the renderer process. | 327 // and PeerConnectionTracker in the renderer process. |
| 330 scoped_refptr<PeerConnectionTrackerHost> peer_connection_tracker_host_; | 328 scoped_refptr<PeerConnectionTrackerHost> peer_connection_tracker_host_; |
| 331 | 329 |
| 332 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 330 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 333 }; | 331 }; |
| 334 | 332 |
| 335 } // namespace content | 333 } // namespace content |
| 336 | 334 |
| 337 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 335 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |