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

Side by Side Diff: content/renderer/render_thread_impl.h

Issue 1447563002: Implement frame attribution (FrameBlamer) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup. Created 4 years, 9 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_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
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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 void AddEmbeddedWorkerRoute(int32_t routing_id, IPC::Listener* listener); 451 void AddEmbeddedWorkerRoute(int32_t routing_id, IPC::Listener* listener);
450 void RemoveEmbeddedWorkerRoute(int32_t routing_id); 452 void RemoveEmbeddedWorkerRoute(int32_t routing_id);
451 453
452 void RegisterPendingRenderFrameConnect( 454 void RegisterPendingRenderFrameConnect(
453 int routing_id, 455 int routing_id,
454 mojo::shell::mojom::InterfaceProviderRequest services, 456 mojo::shell::mojom::InterfaceProviderRequest services,
455 mojo::shell::mojom::InterfaceProviderPtr exposed_services); 457 mojo::shell::mojom::InterfaceProviderPtr exposed_services);
456 458
457 StoragePartitionService* GetStoragePartitionService(); 459 StoragePartitionService* GetStoragePartitionService();
458 460
461 RenderThreadBlameContext* blame_context() { return &blame_context_; }
462
459 protected: 463 protected:
460 RenderThreadImpl(const InProcessChildThreadParams& params, 464 RenderThreadImpl(const InProcessChildThreadParams& params,
461 scoped_ptr<scheduler::RendererScheduler> scheduler); 465 scoped_ptr<scheduler::RendererScheduler> scheduler);
462 RenderThreadImpl(scoped_ptr<base::MessageLoop> main_message_loop, 466 RenderThreadImpl(scoped_ptr<base::MessageLoop> main_message_loop,
463 scoped_ptr<scheduler::RendererScheduler> scheduler); 467 scoped_ptr<scheduler::RendererScheduler> scheduler);
464 virtual void SetResourceDispatchTaskQueue( 468 virtual void SetResourceDispatchTaskQueue(
465 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); 469 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue);
466 470
467 private: 471 private:
468 // ChildThread 472 // ChildThread
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698