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> |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 void CreateMessageFilters(); | 288 void CreateMessageFilters(); |
289 | 289 |
290 // Control message handlers. | 290 // Control message handlers. |
291 void OnShutdownRequest(); | 291 void OnShutdownRequest(); |
292 void OnDumpHandlesDone(); | 292 void OnDumpHandlesDone(); |
293 void SuddenTerminationChanged(bool enabled); | 293 void SuddenTerminationChanged(bool enabled); |
294 void OnUserMetricsRecordAction(const std::string& action); | 294 void OnUserMetricsRecordAction(const std::string& action); |
295 void OnSavedPageAsMHTML(int job_id, int64 mhtml_file_size); | 295 void OnSavedPageAsMHTML(int job_id, int64 mhtml_file_size); |
296 void OnCloseACK(int old_route_id); | 296 void OnCloseACK(int old_route_id); |
297 | 297 |
298 #if defined(OS_MACOSX) | |
299 // CompositorSurfaceBuffersSwapped handler when there's no RWH. | 298 // CompositorSurfaceBuffersSwapped handler when there's no RWH. |
300 void OnCompositorSurfaceBuffersSwappedNoHost( | 299 void OnCompositorSurfaceBuffersSwappedNoHost( |
301 const ViewHostMsg_CompositorSurfaceBuffersSwapped_Params& params); | 300 const ViewHostMsg_CompositorSurfaceBuffersSwapped_Params& params); |
302 #endif | |
303 | 301 |
304 // Generates a command line to be used to spawn a renderer and appends the | 302 // Generates a command line to be used to spawn a renderer and appends the |
305 // results to |*command_line|. | 303 // results to |*command_line|. |
306 void AppendRendererCommandLine(base::CommandLine* command_line) const; | 304 void AppendRendererCommandLine(base::CommandLine* command_line) const; |
307 | 305 |
308 // Copies applicable command line switches from the given |browser_cmd| line | 306 // Copies applicable command line switches from the given |browser_cmd| line |
309 // flags to the output |renderer_cmd| line flags. Not all switches will be | 307 // flags to the output |renderer_cmd| line flags. Not all switches will be |
310 // copied over. | 308 // copied over. |
311 void PropagateBrowserCommandLineToRenderer( | 309 void PropagateBrowserCommandLineToRenderer( |
312 const base::CommandLine& browser_cmd, | 310 const base::CommandLine& browser_cmd, |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 #if defined(OS_MACOSX) | 461 #if defined(OS_MACOSX) |
464 base::ScopedCFTypeRef<IOSurfaceRef> last_io_surface_; | 462 base::ScopedCFTypeRef<IOSurfaceRef> last_io_surface_; |
465 #endif | 463 #endif |
466 | 464 |
467 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 465 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
468 }; | 466 }; |
469 | 467 |
470 } // namespace content | 468 } // namespace content |
471 | 469 |
472 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 470 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |