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

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: Created 4 years, 7 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 URLLoaderFactoryImpl;
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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 302
300 // Creates and adds the IO thread message filters. 303 // Creates and adds the IO thread message filters.
301 void CreateMessageFilters(); 304 void CreateMessageFilters();
302 305
303 // Registers Mojo services to be exposed to the renderer. 306 // Registers Mojo services to be exposed to the renderer.
304 void RegisterMojoServices(); 307 void RegisterMojoServices();
305 308
306 void CreateStoragePartitionService( 309 void CreateStoragePartitionService(
307 mojo::InterfaceRequest<mojom::StoragePartitionService> request); 310 mojo::InterfaceRequest<mojom::StoragePartitionService> request);
308 311
312 void CreateURLLoaderFactory(
313 mojo::InterfaceRequest<mojom::URLLoaderFactory> request);
314
309 // Control message handlers. 315 // Control message handlers.
310 void OnShutdownRequest(); 316 void OnShutdownRequest();
311 void SuddenTerminationChanged(bool enabled); 317 void SuddenTerminationChanged(bool enabled);
312 void OnUserMetricsRecordAction(const std::string& action); 318 void OnUserMetricsRecordAction(const std::string& action);
313 void OnCloseACK(int old_route_id); 319 void OnCloseACK(int old_route_id);
314 320
315 // Generates a command line to be used to spawn a renderer and appends the 321 // Generates a command line to be used to spawn a renderer and appends the
316 // results to |*command_line|. 322 // results to |*command_line|.
317 void AppendRendererCommandLine(base::CommandLine* command_line) const; 323 void AppendRendererCommandLine(base::CommandLine* command_line) const;
318 324
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 // UI thread is the source of sync IPCs and all shutdown signals. 511 // UI thread is the source of sync IPCs and all shutdown signals.
506 // Therefore a proper shutdown event to unblock the UI thread is not 512 // Therefore a proper shutdown event to unblock the UI thread is not
507 // possible without massive refactoring shutdown code. 513 // possible without massive refactoring shutdown code.
508 // Luckily Android never performs a clean shutdown. So explicitly 514 // Luckily Android never performs a clean shutdown. So explicitly
509 // ignore this problem. 515 // ignore this problem.
510 base::WaitableEvent never_signaled_; 516 base::WaitableEvent never_signaled_;
511 #endif 517 #endif
512 518
513 std::string mojo_channel_token_; 519 std::string mojo_channel_token_;
514 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; 520 mojo::ScopedMessagePipeHandle in_process_renderer_handle_;
521 scoped_refptr<ResourceMessageFilter> resource_message_filter_;
522 std::unique_ptr<URLLoaderFactoryImpl> url_loader_factory_;
515 523
516 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 524 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
517 525
518 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 526 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
519 }; 527 };
520 528
521 } // namespace content 529 } // namespace content
522 530
523 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 531 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698