Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1604)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 1970693002: Use mojo for Chrome Loading, Part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 RenderFrameMessageFilter; 64 class RenderFrameMessageFilter;
65 class RenderWidgetHelper; 65 class RenderWidgetHelper;
66 class RenderWidgetHost; 66 class RenderWidgetHost;
67 class RenderWidgetHostImpl; 67 class RenderWidgetHostImpl;
68 class RenderWidgetHostViewFrameSubscriber; 68 class RenderWidgetHostViewFrameSubscriber;
69 class ResourceMessageFilter;
69 class StoragePartition; 70 class StoragePartition;
70 class StoragePartitionImpl; 71 class StoragePartitionImpl;
72 class URLLoaderFactoryHolder;
71 73
72 namespace mojom { 74 namespace mojom {
73 class StoragePartitionService; 75 class StoragePartitionService;
76 class URLLoaderFactory;
74 } 77 }
75 78
76 typedef base::Thread* (*RendererMainThreadFactoryFunction)( 79 typedef base::Thread* (*RendererMainThreadFactoryFunction)(
77 const InProcessChildThreadParams& params); 80 const InProcessChildThreadParams& params);
78 81
79 // Implements a concrete RenderProcessHost for the browser process for talking 82 // Implements a concrete RenderProcessHost for the browser process for talking
80 // to actual renderer processes (as opposed to mocks). 83 // to actual renderer processes (as opposed to mocks).
81 // 84 //
82 // Represents the browser side of the browser <--> renderer communication 85 // Represents the browser side of the browser <--> renderer communication
83 // channel. There will be one RenderProcessHost per renderer process. 86 // channel. There will be one RenderProcessHost per renderer process.
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 305
303 // Creates and adds the IO thread message filters. 306 // Creates and adds the IO thread message filters.
304 void CreateMessageFilters(); 307 void CreateMessageFilters();
305 308
306 // Registers Mojo interfaces to be exposed to the renderer. 309 // Registers Mojo interfaces to be exposed to the renderer.
307 void RegisterMojoInterfaces(); 310 void RegisterMojoInterfaces();
308 311
309 void CreateStoragePartitionService( 312 void CreateStoragePartitionService(
310 mojo::InterfaceRequest<mojom::StoragePartitionService> request); 313 mojo::InterfaceRequest<mojom::StoragePartitionService> request);
311 314
315 void CreateURLLoaderFactory(
316 mojo::InterfaceRequest<mojom::URLLoaderFactory> request);
317
312 // Control message handlers. 318 // Control message handlers.
313 void OnShutdownRequest(); 319 void OnShutdownRequest();
314 void SuddenTerminationChanged(bool enabled); 320 void SuddenTerminationChanged(bool enabled);
315 void OnUserMetricsRecordAction(const std::string& action); 321 void OnUserMetricsRecordAction(const std::string& action);
316 void OnCloseACK(int old_route_id); 322 void OnCloseACK(int old_route_id);
317 323
318 // Generates a command line to be used to spawn a renderer and appends the 324 // Generates a command line to be used to spawn a renderer and appends the
319 // results to |*command_line|. 325 // results to |*command_line|.
320 void AppendRendererCommandLine(base::CommandLine* command_line) const; 326 void AppendRendererCommandLine(base::CommandLine* command_line) const;
321 327
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 // UI thread is the source of sync IPCs and all shutdown signals. 516 // UI thread is the source of sync IPCs and all shutdown signals.
511 // Therefore a proper shutdown event to unblock the UI thread is not 517 // Therefore a proper shutdown event to unblock the UI thread is not
512 // possible without massive refactoring shutdown code. 518 // possible without massive refactoring shutdown code.
513 // Luckily Android never performs a clean shutdown. So explicitly 519 // Luckily Android never performs a clean shutdown. So explicitly
514 // ignore this problem. 520 // ignore this problem.
515 base::WaitableEvent never_signaled_; 521 base::WaitableEvent never_signaled_;
516 #endif 522 #endif
517 523
518 std::string mojo_channel_token_; 524 std::string mojo_channel_token_;
519 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; 525 mojo::ScopedMessagePipeHandle in_process_renderer_handle_;
526 scoped_refptr<ResourceMessageFilter> resource_message_filter_;
527 std::unique_ptr<URLLoaderFactoryHolder> url_loader_factory_holder_;
520 528
521 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 529 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
522 530
523 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 531 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
524 }; 532 };
525 533
526 } // namespace content 534 } // namespace content
527 535
528 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 536 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698