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