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