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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 class P2PSocketDispatcherHost; | 63 class P2PSocketDispatcherHost; |
64 #endif | 64 #endif |
65 class PermissionServiceContext; | 65 class PermissionServiceContext; |
66 class PeerConnectionTrackerHost; | 66 class PeerConnectionTrackerHost; |
67 class RendererMainThread; | 67 class RendererMainThread; |
68 class RenderFrameMessageFilter; | 68 class RenderFrameMessageFilter; |
69 class RenderWidgetHelper; | 69 class RenderWidgetHelper; |
70 class RenderWidgetHost; | 70 class RenderWidgetHost; |
71 class RenderWidgetHostImpl; | 71 class RenderWidgetHostImpl; |
72 class RenderWidgetHostViewFrameSubscriber; | 72 class RenderWidgetHostViewFrameSubscriber; |
| 73 class ResourceMessageFilter; |
73 class StoragePartition; | 74 class StoragePartition; |
74 class StoragePartitionImpl; | 75 class StoragePartitionImpl; |
| 76 class URLLoaderFactoryHolder; |
75 | 77 |
76 namespace mojom { | 78 namespace mojom { |
77 class StoragePartitionService; | 79 class StoragePartitionService; |
| 80 class URLLoaderFactory; |
78 } | 81 } |
79 | 82 |
80 typedef base::Thread* (*RendererMainThreadFactoryFunction)( | 83 typedef base::Thread* (*RendererMainThreadFactoryFunction)( |
81 const InProcessChildThreadParams& params); | 84 const InProcessChildThreadParams& params); |
82 | 85 |
83 // Implements a concrete RenderProcessHost for the browser process for talking | 86 // Implements a concrete RenderProcessHost for the browser process for talking |
84 // to actual renderer processes (as opposed to mocks). | 87 // to actual renderer processes (as opposed to mocks). |
85 // | 88 // |
86 // Represents the browser side of the browser <--> renderer communication | 89 // Represents the browser side of the browser <--> renderer communication |
87 // channel. There will be one RenderProcessHost per renderer process. | 90 // channel. There will be one RenderProcessHost per renderer process. |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 | 309 |
307 // Creates and adds the IO thread message filters. | 310 // Creates and adds the IO thread message filters. |
308 void CreateMessageFilters(); | 311 void CreateMessageFilters(); |
309 | 312 |
310 // Registers Mojo interfaces to be exposed to the renderer. | 313 // Registers Mojo interfaces to be exposed to the renderer. |
311 void RegisterMojoInterfaces(); | 314 void RegisterMojoInterfaces(); |
312 | 315 |
313 void CreateStoragePartitionService( | 316 void CreateStoragePartitionService( |
314 mojo::InterfaceRequest<mojom::StoragePartitionService> request); | 317 mojo::InterfaceRequest<mojom::StoragePartitionService> request); |
315 | 318 |
| 319 void CreateURLLoaderFactory( |
| 320 mojo::InterfaceRequest<mojom::URLLoaderFactory> request); |
| 321 |
316 // Control message handlers. | 322 // Control message handlers. |
317 void OnShutdownRequest(); | 323 void OnShutdownRequest(); |
318 void SuddenTerminationChanged(bool enabled); | 324 void SuddenTerminationChanged(bool enabled); |
319 void OnUserMetricsRecordAction(const std::string& action); | 325 void OnUserMetricsRecordAction(const std::string& action); |
320 void OnCloseACK(int old_route_id); | 326 void OnCloseACK(int old_route_id); |
321 | 327 |
322 // Generates a command line to be used to spawn a renderer and appends the | 328 // Generates a command line to be used to spawn a renderer and appends the |
323 // results to |*command_line|. | 329 // results to |*command_line|. |
324 void AppendRendererCommandLine(base::CommandLine* command_line) const; | 330 void AppendRendererCommandLine(base::CommandLine* command_line) const; |
325 | 331 |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 // UI thread is the source of sync IPCs and all shutdown signals. | 524 // UI thread is the source of sync IPCs and all shutdown signals. |
519 // Therefore a proper shutdown event to unblock the UI thread is not | 525 // Therefore a proper shutdown event to unblock the UI thread is not |
520 // possible without massive refactoring shutdown code. | 526 // possible without massive refactoring shutdown code. |
521 // Luckily Android never performs a clean shutdown. So explicitly | 527 // Luckily Android never performs a clean shutdown. So explicitly |
522 // ignore this problem. | 528 // ignore this problem. |
523 base::WaitableEvent never_signaled_; | 529 base::WaitableEvent never_signaled_; |
524 #endif | 530 #endif |
525 | 531 |
526 std::string mojo_channel_token_; | 532 std::string mojo_channel_token_; |
527 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; | 533 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; |
| 534 scoped_refptr<ResourceMessageFilter> resource_message_filter_; |
| 535 std::unique_ptr<URLLoaderFactoryHolder> url_loader_factory_holder_; |
528 | 536 |
529 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 537 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
530 | 538 |
531 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 539 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
532 }; | 540 }; |
533 | 541 |
534 } // namespace content | 542 } // namespace content |
535 | 543 |
536 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 544 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |