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 11 matching lines...) Expand all Loading... |
22 #include "base/threading/thread_checker.h" | 22 #include "base/threading/thread_checker.h" |
23 #include "base/timer/timer.h" | 23 #include "base/timer/timer.h" |
24 #include "build/build_config.h" | 24 #include "build/build_config.h" |
25 #include "content/child/child_thread_impl.h" | 25 #include "content/child/child_thread_impl.h" |
26 #include "content/common/content_export.h" | 26 #include "content/common/content_export.h" |
27 #include "content/common/frame_replication_state.h" | 27 #include "content/common/frame_replication_state.h" |
28 #include "content/common/gpu/client/gpu_channel_host.h" | 28 #include "content/common/gpu/client/gpu_channel_host.h" |
29 #include "content/common/storage_partition_service.mojom.h" | 29 #include "content/common/storage_partition_service.mojom.h" |
30 #include "content/public/renderer/render_thread.h" | 30 #include "content/public/renderer/render_thread.h" |
31 #include "content/renderer/gpu/compositor_dependencies.h" | 31 #include "content/renderer/gpu/compositor_dependencies.h" |
| 32 #include "content/renderer/render_thread_blame_context.h" |
| 33 #include "content/renderer/web_blame_context_impl.h" |
32 #include "net/base/network_change_notifier.h" | 34 #include "net/base/network_change_notifier.h" |
33 #include "third_party/WebKit/public/platform/WebConnectionType.h" | 35 #include "third_party/WebKit/public/platform/WebConnectionType.h" |
34 #include "ui/gfx/native_widget_types.h" | 36 #include "ui/gfx/native_widget_types.h" |
35 | 37 |
36 #if defined(OS_MACOSX) | 38 #if defined(OS_MACOSX) |
37 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" | 39 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" |
38 #endif | 40 #endif |
39 | 41 |
40 class GrContext; | 42 class GrContext; |
41 class SkBitmap; | 43 class SkBitmap; |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 void AddEmbeddedWorkerRoute(int32_t routing_id, IPC::Listener* listener); | 453 void AddEmbeddedWorkerRoute(int32_t routing_id, IPC::Listener* listener); |
452 void RemoveEmbeddedWorkerRoute(int32_t routing_id); | 454 void RemoveEmbeddedWorkerRoute(int32_t routing_id); |
453 | 455 |
454 void RegisterPendingRenderFrameConnect( | 456 void RegisterPendingRenderFrameConnect( |
455 int routing_id, | 457 int routing_id, |
456 mojo::shell::mojom::InterfaceProviderRequest services, | 458 mojo::shell::mojom::InterfaceProviderRequest services, |
457 mojo::shell::mojom::InterfaceProviderPtr exposed_services); | 459 mojo::shell::mojom::InterfaceProviderPtr exposed_services); |
458 | 460 |
459 StoragePartitionService* GetStoragePartitionService(); | 461 StoragePartitionService* GetStoragePartitionService(); |
460 | 462 |
| 463 RenderThreadBlameContext* blame_context() { return &blame_context_; } |
| 464 |
461 protected: | 465 protected: |
462 RenderThreadImpl(const InProcessChildThreadParams& params, | 466 RenderThreadImpl(const InProcessChildThreadParams& params, |
463 scoped_ptr<scheduler::RendererScheduler> scheduler); | 467 scoped_ptr<scheduler::RendererScheduler> scheduler); |
464 RenderThreadImpl(scoped_ptr<base::MessageLoop> main_message_loop, | 468 RenderThreadImpl(scoped_ptr<base::MessageLoop> main_message_loop, |
465 scoped_ptr<scheduler::RendererScheduler> scheduler); | 469 scoped_ptr<scheduler::RendererScheduler> scheduler); |
466 virtual void SetResourceDispatchTaskQueue( | 470 virtual void SetResourceDispatchTaskQueue( |
467 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); | 471 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); |
468 | 472 |
469 private: | 473 private: |
470 // ChildThread | 474 // ChildThread |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 mojo::shell::mojom::InterfaceProviderRequest services_; | 705 mojo::shell::mojom::InterfaceProviderRequest services_; |
702 mojo::shell::mojom::InterfaceProviderPtr exposed_services_; | 706 mojo::shell::mojom::InterfaceProviderPtr exposed_services_; |
703 }; | 707 }; |
704 | 708 |
705 typedef std::map<int, scoped_refptr<PendingRenderFrameConnect>> | 709 typedef std::map<int, scoped_refptr<PendingRenderFrameConnect>> |
706 PendingRenderFrameConnectMap; | 710 PendingRenderFrameConnectMap; |
707 PendingRenderFrameConnectMap pending_render_frame_connects_; | 711 PendingRenderFrameConnectMap pending_render_frame_connects_; |
708 | 712 |
709 StoragePartitionServicePtr storage_partition_service_; | 713 StoragePartitionServicePtr storage_partition_service_; |
710 | 714 |
| 715 RenderThreadBlameContext blame_context_; |
| 716 |
711 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 717 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
712 }; | 718 }; |
713 | 719 |
714 #if defined(COMPILER_MSVC) | 720 #if defined(COMPILER_MSVC) |
715 #pragma warning(pop) | 721 #pragma warning(pop) |
716 #endif | 722 #endif |
717 | 723 |
718 } // namespace content | 724 } // namespace content |
719 | 725 |
720 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 726 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |