| 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_RENDER_PROCESS_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 // Creates and adds the IO thread message filters. | 292 // Creates and adds the IO thread message filters. |
| 293 void CreateMessageFilters(); | 293 void CreateMessageFilters(); |
| 294 | 294 |
| 295 // Registers Mojo services to be exposed to the renderer. | 295 // Registers Mojo services to be exposed to the renderer. |
| 296 void RegisterMojoServices(); | 296 void RegisterMojoServices(); |
| 297 | 297 |
| 298 // Control message handlers. | 298 // Control message handlers. |
| 299 void OnShutdownRequest(); | 299 void OnShutdownRequest(); |
| 300 void SuddenTerminationChanged(bool enabled); | 300 void SuddenTerminationChanged(bool enabled); |
| 301 void OnUserMetricsRecordAction(const std::string& action); | 301 void OnUserMetricsRecordAction(const std::string& action); |
| 302 void OnSavedPageAsMHTML(int job_id, int64 mhtml_file_size); | |
| 303 void OnCloseACK(int old_route_id); | 302 void OnCloseACK(int old_route_id); |
| 304 | 303 |
| 305 // Generates a command line to be used to spawn a renderer and appends the | 304 // Generates a command line to be used to spawn a renderer and appends the |
| 306 // results to |*command_line|. | 305 // results to |*command_line|. |
| 307 void AppendRendererCommandLine(base::CommandLine* command_line) const; | 306 void AppendRendererCommandLine(base::CommandLine* command_line) const; |
| 308 | 307 |
| 309 // Copies applicable command line switches from the given |browser_cmd| line | 308 // Copies applicable command line switches from the given |browser_cmd| line |
| 310 // flags to the output |renderer_cmd| line flags. Not all switches will be | 309 // flags to the output |renderer_cmd| line flags. Not all switches will be |
| 311 // copied over. | 310 // copied over. |
| 312 void PropagateBrowserCommandLineToRenderer( | 311 void PropagateBrowserCommandLineToRenderer( |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 #endif | 503 #endif |
| 505 | 504 |
| 506 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 505 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 507 | 506 |
| 508 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 507 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 509 }; | 508 }; |
| 510 | 509 |
| 511 } // namespace content | 510 } // namespace content |
| 512 | 511 |
| 513 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 512 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |