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

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: Rebase Created 5 years, 10 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 class MemoryObserver; 97 class MemoryObserver;
98 class PeerConnectionDependencyFactory; 98 class PeerConnectionDependencyFactory;
99 class MidiMessageFilter; 99 class MidiMessageFilter;
100 class NetInfoDispatcher; 100 class NetInfoDispatcher;
101 class P2PSocketDispatcher; 101 class P2PSocketDispatcher;
102 class PeerConnectionTracker; 102 class PeerConnectionTracker;
103 class RenderProcessObserver; 103 class RenderProcessObserver;
104 class RendererBlinkPlatformImpl; 104 class RendererBlinkPlatformImpl;
105 class RendererDemuxerAndroid; 105 class RendererDemuxerAndroid;
106 class RendererScheduler; 106 class RendererScheduler;
107 class ResourceDispatchThrottler;
107 class ResourceSchedulingFilter; 108 class ResourceSchedulingFilter;
108 class V8SamplingProfiler; 109 class V8SamplingProfiler;
109 class VideoCaptureImplManager; 110 class VideoCaptureImplManager;
110 class WebGraphicsContext3DCommandBufferImpl; 111 class WebGraphicsContext3DCommandBufferImpl;
111 class WebRTCIdentityService; 112 class WebRTCIdentityService;
112 113
113 // The RenderThreadImpl class represents a background thread where RenderView 114 // The RenderThreadImpl class represents a background thread where RenderView
114 // instances live. The RenderThread supports an API that is used by its 115 // instances live. The RenderThread supports an API that is used by its
115 // consumer to talk indirectly to the RenderViews and supporting objects. 116 // consumer to talk indirectly to the RenderViews and supporting objects.
116 // Likewise, it provides an API for the RenderViews to talk back to the main 117 // Likewise, it provides an API for the RenderViews to talk back to the main
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 const WorkerProcessMsg_CreateWorker_Params& params); 470 const WorkerProcessMsg_CreateWorker_Params& params);
470 471
471 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateOffscreenContext3d(); 472 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateOffscreenContext3d();
472 473
473 // These objects live solely on the render thread. 474 // These objects live solely on the render thread.
474 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; 475 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_;
475 scoped_ptr<DomStorageDispatcher> dom_storage_dispatcher_; 476 scoped_ptr<DomStorageDispatcher> dom_storage_dispatcher_;
476 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; 477 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_;
477 scoped_ptr<RendererScheduler> renderer_scheduler_; 478 scoped_ptr<RendererScheduler> renderer_scheduler_;
478 scoped_ptr<RendererBlinkPlatformImpl> blink_platform_impl_; 479 scoped_ptr<RendererBlinkPlatformImpl> blink_platform_impl_;
480 scoped_ptr<ResourceDispatchThrottler> resource_dispatch_throttler_;
479 scoped_ptr<EmbeddedWorkerDispatcher> embedded_worker_dispatcher_; 481 scoped_ptr<EmbeddedWorkerDispatcher> embedded_worker_dispatcher_;
480 482
481 // Used on the render thread and deleted by WebKit at shutdown. 483 // Used on the render thread and deleted by WebKit at shutdown.
482 blink::WebMediaStreamCenter* media_stream_center_; 484 blink::WebMediaStreamCenter* media_stream_center_;
483 485
484 // Used on the renderer and IPC threads. 486 // Used on the renderer and IPC threads.
485 scoped_refptr<DBMessageFilter> db_message_filter_; 487 scoped_refptr<DBMessageFilter> db_message_filter_;
486 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_; 488 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_;
487 scoped_refptr<AudioMessageFilter> audio_message_filter_; 489 scoped_refptr<AudioMessageFilter> audio_message_filter_;
488 scoped_refptr<MidiMessageFilter> midi_message_filter_; 490 scoped_refptr<MidiMessageFilter> midi_message_filter_;
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 typedef std::map<int, scoped_refptr<PendingRenderFrameConnect>> 623 typedef std::map<int, scoped_refptr<PendingRenderFrameConnect>>
622 PendingRenderFrameConnectMap; 624 PendingRenderFrameConnectMap;
623 PendingRenderFrameConnectMap pending_render_frame_connects_; 625 PendingRenderFrameConnectMap pending_render_frame_connects_;
624 626
625 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 627 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
626 }; 628 };
627 629
628 } // namespace content 630 } // namespace content
629 631
630 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 632 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698