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_RENDERER_RENDER_THREAD_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "content/child/child_thread_impl.h" | 33 #include "content/child/child_thread_impl.h" |
34 #include "content/child/memory/child_memory_coordinator_impl.h" | 34 #include "content/child/memory/child_memory_coordinator_impl.h" |
35 #include "content/common/associated_interface_registry_impl.h" | 35 #include "content/common/associated_interface_registry_impl.h" |
36 #include "content/common/content_export.h" | 36 #include "content/common/content_export.h" |
37 #include "content/common/frame.mojom.h" | 37 #include "content/common/frame.mojom.h" |
38 #include "content/common/frame_replication_state.h" | 38 #include "content/common/frame_replication_state.h" |
39 #include "content/common/frame_sink_provider.mojom.h" | 39 #include "content/common/frame_sink_provider.mojom.h" |
40 #include "content/common/render_frame_message_filter.mojom.h" | 40 #include "content/common/render_frame_message_filter.mojom.h" |
41 #include "content/common/render_message_filter.mojom.h" | 41 #include "content/common/render_message_filter.mojom.h" |
42 #include "content/common/renderer.mojom.h" | 42 #include "content/common/renderer.mojom.h" |
| 43 #include "content/common/renderer_host.mojom.h" |
43 #include "content/common/storage_partition_service.mojom.h" | 44 #include "content/common/storage_partition_service.mojom.h" |
| 45 #include "content/common/url_loader_factory.mojom.h" |
44 #include "content/public/renderer/render_thread.h" | 46 #include "content/public/renderer/render_thread.h" |
45 #include "content/renderer/gpu/compositor_dependencies.h" | 47 #include "content/renderer/gpu/compositor_dependencies.h" |
46 #include "content/renderer/layout_test_dependencies.h" | 48 #include "content/renderer/layout_test_dependencies.h" |
47 #include "content/renderer/media/audio_ipc_factory.h" | 49 #include "content/renderer/media/audio_ipc_factory.h" |
48 #include "gpu/ipc/client/gpu_channel_host.h" | 50 #include "gpu/ipc/client/gpu_channel_host.h" |
49 #include "media/media_features.h" | 51 #include "media/media_features.h" |
50 #include "mojo/public/cpp/bindings/associated_binding.h" | 52 #include "mojo/public/cpp/bindings/associated_binding.h" |
51 #include "mojo/public/cpp/bindings/binding.h" | 53 #include "mojo/public/cpp/bindings/binding.h" |
52 #include "mojo/public/cpp/bindings/thread_safe_interface_ptr.h" | 54 #include "mojo/public/cpp/bindings/thread_safe_interface_ptr.h" |
53 #include "net/base/network_change_notifier.h" | 55 #include "net/base/network_change_notifier.h" |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 void AddEmbeddedWorkerRoute(int32_t routing_id, IPC::Listener* listener); | 484 void AddEmbeddedWorkerRoute(int32_t routing_id, IPC::Listener* listener); |
483 void RemoveEmbeddedWorkerRoute(int32_t routing_id); | 485 void RemoveEmbeddedWorkerRoute(int32_t routing_id); |
484 | 486 |
485 void RegisterPendingFrameCreate( | 487 void RegisterPendingFrameCreate( |
486 const service_manager::BindSourceInfo& source_info, | 488 const service_manager::BindSourceInfo& source_info, |
487 int routing_id, | 489 int routing_id, |
488 mojom::FrameRequest frame, | 490 mojom::FrameRequest frame, |
489 mojom::FrameHostInterfaceBrokerPtr host); | 491 mojom::FrameHostInterfaceBrokerPtr host); |
490 | 492 |
491 mojom::StoragePartitionService* GetStoragePartitionService(); | 493 mojom::StoragePartitionService* GetStoragePartitionService(); |
| 494 mojom::RendererHost* GetRendererHost(); |
| 495 mojom::URLLoaderFactory* GetBlobURLLoaderFactory(); |
492 | 496 |
493 // ChildMemoryCoordinatorDelegate implementation. | 497 // ChildMemoryCoordinatorDelegate implementation. |
494 void OnTrimMemoryImmediately() override; | 498 void OnTrimMemoryImmediately() override; |
495 | 499 |
496 struct RendererMemoryMetrics { | 500 struct RendererMemoryMetrics { |
497 size_t partition_alloc_kb; | 501 size_t partition_alloc_kb; |
498 size_t blink_gc_kb; | 502 size_t blink_gc_kb; |
499 size_t malloc_mb; | 503 size_t malloc_mb; |
500 size_t discardable_kb; | 504 size_t discardable_kb; |
501 size_t v8_main_thread_isolate_mb; | 505 size_t v8_main_thread_isolate_mb; |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
776 int routing_id_; | 780 int routing_id_; |
777 mojom::FrameRequest frame_request_; | 781 mojom::FrameRequest frame_request_; |
778 mojom::FrameHostInterfaceBrokerPtr frame_host_interface_broker_; | 782 mojom::FrameHostInterfaceBrokerPtr frame_host_interface_broker_; |
779 }; | 783 }; |
780 | 784 |
781 using PendingFrameCreateMap = | 785 using PendingFrameCreateMap = |
782 std::map<int, scoped_refptr<PendingFrameCreate>>; | 786 std::map<int, scoped_refptr<PendingFrameCreate>>; |
783 PendingFrameCreateMap pending_frame_creates_; | 787 PendingFrameCreateMap pending_frame_creates_; |
784 | 788 |
785 mojom::StoragePartitionServicePtr storage_partition_service_; | 789 mojom::StoragePartitionServicePtr storage_partition_service_; |
| 790 mojom::RendererHostPtr renderer_host_; |
| 791 mojom::URLLoaderFactoryPtr blob_url_loader_factory_; |
786 | 792 |
787 AssociatedInterfaceRegistryImpl associated_interfaces_; | 793 AssociatedInterfaceRegistryImpl associated_interfaces_; |
788 | 794 |
789 mojo::AssociatedBinding<mojom::Renderer> renderer_binding_; | 795 mojo::AssociatedBinding<mojom::Renderer> renderer_binding_; |
790 | 796 |
791 mojom::RenderFrameMessageFilterAssociatedPtr render_frame_message_filter_; | 797 mojom::RenderFrameMessageFilterAssociatedPtr render_frame_message_filter_; |
792 mojom::RenderMessageFilterAssociatedPtr render_message_filter_; | 798 mojom::RenderMessageFilterAssociatedPtr render_message_filter_; |
793 | 799 |
794 RendererMemoryMetrics purge_and_suspend_memory_metrics_; | 800 RendererMemoryMetrics purge_and_suspend_memory_metrics_; |
795 bool needs_to_record_first_active_paint_; | 801 bool needs_to_record_first_active_paint_; |
796 int process_foregrounded_count_; | 802 int process_foregrounded_count_; |
797 | 803 |
798 int32_t client_id_; | 804 int32_t client_id_; |
799 | 805 |
800 variations::ChildProcessFieldTrialSyncer field_trial_syncer_; | 806 variations::ChildProcessFieldTrialSyncer field_trial_syncer_; |
801 | 807 |
802 mojom::FrameSinkProviderPtr frame_sink_provider_; | 808 mojom::FrameSinkProviderPtr frame_sink_provider_; |
803 | 809 |
804 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 810 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
805 }; | 811 }; |
806 | 812 |
807 #if defined(COMPILER_MSVC) | 813 #if defined(COMPILER_MSVC) |
808 #pragma warning(pop) | 814 #pragma warning(pop) |
809 #endif | 815 #endif |
810 | 816 |
811 } // namespace content | 817 } // namespace content |
812 | 818 |
813 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 819 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |