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

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

Issue 847883002: Reland "Throttle resource message requests during user interaction" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 5 years, 11 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 class MemoryObserver; 95 class MemoryObserver;
96 class PeerConnectionDependencyFactory; 96 class PeerConnectionDependencyFactory;
97 class MidiMessageFilter; 97 class MidiMessageFilter;
98 class NetInfoDispatcher; 98 class NetInfoDispatcher;
99 class P2PSocketDispatcher; 99 class P2PSocketDispatcher;
100 class PeerConnectionTracker; 100 class PeerConnectionTracker;
101 class RenderProcessObserver; 101 class RenderProcessObserver;
102 class RendererBlinkPlatformImpl; 102 class RendererBlinkPlatformImpl;
103 class RendererDemuxerAndroid; 103 class RendererDemuxerAndroid;
104 class RendererScheduler; 104 class RendererScheduler;
105 class ResourceDispatchThrottler;
105 class ResourceSchedulingFilter; 106 class ResourceSchedulingFilter;
106 class V8SamplingProfiler; 107 class V8SamplingProfiler;
107 class VideoCaptureImplManager; 108 class VideoCaptureImplManager;
108 class WebGraphicsContext3DCommandBufferImpl; 109 class WebGraphicsContext3DCommandBufferImpl;
109 class WebRTCIdentityService; 110 class WebRTCIdentityService;
110 111
111 // The RenderThreadImpl class represents a background thread where RenderView 112 // The RenderThreadImpl class represents a background thread where RenderView
112 // instances live. The RenderThread supports an API that is used by its 113 // instances live. The RenderThread supports an API that is used by its
113 // consumer to talk indirectly to the RenderViews and supporting objects. 114 // consumer to talk indirectly to the RenderViews and supporting objects.
114 // Likewise, it provides an API for the RenderViews to talk back to the main 115 // Likewise, it provides an API for the RenderViews to talk back to the main
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 const WorkerProcessMsg_CreateWorker_Params& params); 462 const WorkerProcessMsg_CreateWorker_Params& params);
462 463
463 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateOffscreenContext3d(); 464 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateOffscreenContext3d();
464 465
465 // These objects live solely on the render thread. 466 // These objects live solely on the render thread.
466 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; 467 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_;
467 scoped_ptr<DomStorageDispatcher> dom_storage_dispatcher_; 468 scoped_ptr<DomStorageDispatcher> dom_storage_dispatcher_;
468 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; 469 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_;
469 scoped_ptr<RendererScheduler> renderer_scheduler_; 470 scoped_ptr<RendererScheduler> renderer_scheduler_;
470 scoped_ptr<RendererBlinkPlatformImpl> blink_platform_impl_; 471 scoped_ptr<RendererBlinkPlatformImpl> blink_platform_impl_;
472 scoped_ptr<ResourceDispatchThrottler> resource_dispatch_throttler_;
471 scoped_ptr<EmbeddedWorkerDispatcher> embedded_worker_dispatcher_; 473 scoped_ptr<EmbeddedWorkerDispatcher> embedded_worker_dispatcher_;
472 474
473 // Used on the render thread and deleted by WebKit at shutdown. 475 // Used on the render thread and deleted by WebKit at shutdown.
474 blink::WebMediaStreamCenter* media_stream_center_; 476 blink::WebMediaStreamCenter* media_stream_center_;
475 477
476 // Used on the renderer and IPC threads. 478 // Used on the renderer and IPC threads.
477 scoped_refptr<DBMessageFilter> db_message_filter_; 479 scoped_refptr<DBMessageFilter> db_message_filter_;
478 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_; 480 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_;
479 scoped_refptr<AudioMessageFilter> audio_message_filter_; 481 scoped_refptr<AudioMessageFilter> audio_message_filter_;
480 scoped_refptr<MidiMessageFilter> midi_message_filter_; 482 scoped_refptr<MidiMessageFilter> midi_message_filter_;
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 unsigned use_image_texture_target_; 597 unsigned use_image_texture_target_;
596 598
597 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; 599 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_;
598 600
599 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 601 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
600 }; 602 };
601 603
602 } // namespace content 604 } // namespace content
603 605
604 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 606 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698