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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 class RenderWidgetHelper; | 70 class RenderWidgetHelper; |
71 class RenderWidgetHost; | 71 class RenderWidgetHost; |
72 class RenderWidgetHostImpl; | 72 class RenderWidgetHostImpl; |
73 class RenderWidgetHostViewFrameSubscriber; | 73 class RenderWidgetHostViewFrameSubscriber; |
74 class ResourceMessageFilter; | 74 class ResourceMessageFilter; |
75 class StoragePartition; | 75 class StoragePartition; |
76 class StoragePartitionImpl; | 76 class StoragePartitionImpl; |
77 | 77 |
78 namespace mojom { | 78 namespace mojom { |
79 class StoragePartitionService; | 79 class StoragePartitionService; |
80 } | 80 class URLLoaderFactory; |
| 81 } // namespace mojom |
81 | 82 |
82 typedef base::Thread* (*RendererMainThreadFactoryFunction)( | 83 typedef base::Thread* (*RendererMainThreadFactoryFunction)( |
83 const InProcessChildThreadParams& params); | 84 const InProcessChildThreadParams& params); |
84 | 85 |
85 // Implements a concrete RenderProcessHost for the browser process for talking | 86 // Implements a concrete RenderProcessHost for the browser process for talking |
86 // to actual renderer processes (as opposed to mocks). | 87 // to actual renderer processes (as opposed to mocks). |
87 // | 88 // |
88 // Represents the browser side of the browser <--> renderer communication | 89 // Represents the browser side of the browser <--> renderer communication |
89 // channel. There will be one RenderProcessHost per renderer process. | 90 // channel. There will be one RenderProcessHost per renderer process. |
90 // | 91 // |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 void CreateSharedRendererHistogramAllocator(); | 358 void CreateSharedRendererHistogramAllocator(); |
358 | 359 |
359 // Handle termination of our process. | 360 // Handle termination of our process. |
360 void ProcessDied(bool already_dead, RendererClosedDetails* known_details); | 361 void ProcessDied(bool already_dead, RendererClosedDetails* known_details); |
361 | 362 |
362 void OnRouteProviderRequest(mojom::RouteProviderAssociatedRequest request); | 363 void OnRouteProviderRequest(mojom::RouteProviderAssociatedRequest request); |
363 | 364 |
364 // GpuSwitchingObserver implementation. | 365 // GpuSwitchingObserver implementation. |
365 void OnGpuSwitched() override; | 366 void OnGpuSwitched() override; |
366 | 367 |
| 368 // Creates a mojom::URLLoaderFactory interface by passing |
| 369 // URLLoaderFactoryRequest. |
| 370 void CreateURLLoaderFactory( |
| 371 mojo::InterfaceRequest<mojom::URLLoaderFactory> request); |
| 372 |
367 #if defined(ENABLE_WEBRTC) | 373 #if defined(ENABLE_WEBRTC) |
368 void OnRegisterAecDumpConsumer(int id); | 374 void OnRegisterAecDumpConsumer(int id); |
369 void OnUnregisterAecDumpConsumer(int id); | 375 void OnUnregisterAecDumpConsumer(int id); |
370 void RegisterAecDumpConsumerOnUIThread(int id); | 376 void RegisterAecDumpConsumerOnUIThread(int id); |
371 void UnregisterAecDumpConsumerOnUIThread(int id); | 377 void UnregisterAecDumpConsumerOnUIThread(int id); |
372 void EnableAecDumpForId(const base::FilePath& file, int id); | 378 void EnableAecDumpForId(const base::FilePath& file, int id); |
373 // Sends |file_for_transit| to the render process. | 379 // Sends |file_for_transit| to the render process. |
374 void SendAecDumpFileToRenderer(int id, | 380 void SendAecDumpFileToRenderer(int id, |
375 IPC::PlatformFileForTransit file_for_transit); | 381 IPC::PlatformFileForTransit file_for_transit); |
376 void SendDisableAecDumpToRenderer(); | 382 void SendDisableAecDumpToRenderer(); |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 instance_weak_factory_; | 592 instance_weak_factory_; |
587 | 593 |
588 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 594 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
589 | 595 |
590 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 596 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
591 }; | 597 }; |
592 | 598 |
593 } // namespace content | 599 } // namespace content |
594 | 600 |
595 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 601 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |