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

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: Code review 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 class MemoryObserver; 96 class MemoryObserver;
97 class PeerConnectionDependencyFactory; 97 class PeerConnectionDependencyFactory;
98 class MidiMessageFilter; 98 class MidiMessageFilter;
99 class NetInfoDispatcher; 99 class NetInfoDispatcher;
100 class P2PSocketDispatcher; 100 class P2PSocketDispatcher;
101 class PeerConnectionTracker; 101 class PeerConnectionTracker;
102 class RenderProcessObserver; 102 class RenderProcessObserver;
103 class RendererBlinkPlatformImpl; 103 class RendererBlinkPlatformImpl;
104 class RendererDemuxerAndroid; 104 class RendererDemuxerAndroid;
105 class RendererScheduler; 105 class RendererScheduler;
106 class ResourceDispatchThrottler;
106 class ResourceSchedulingFilter; 107 class ResourceSchedulingFilter;
107 class V8SamplingProfiler; 108 class V8SamplingProfiler;
108 class VideoCaptureImplManager; 109 class VideoCaptureImplManager;
109 class WebGraphicsContext3DCommandBufferImpl; 110 class WebGraphicsContext3DCommandBufferImpl;
110 class WebRTCIdentityService; 111 class WebRTCIdentityService;
111 112
112 // The RenderThreadImpl class represents a background thread where RenderView 113 // The RenderThreadImpl class represents a background thread where RenderView
113 // instances live. The RenderThread supports an API that is used by its 114 // instances live. The RenderThread supports an API that is used by its
114 // consumer to talk indirectly to the RenderViews and supporting objects. 115 // consumer to talk indirectly to the RenderViews and supporting objects.
115 // Likewise, it provides an API for the RenderViews to talk back to the main 116 // Likewise, it provides an API for the RenderViews to talk back to the main
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 const WorkerProcessMsg_CreateWorker_Params& params); 465 const WorkerProcessMsg_CreateWorker_Params& params);
465 466
466 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateOffscreenContext3d(); 467 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateOffscreenContext3d();
467 468
468 // These objects live solely on the render thread. 469 // These objects live solely on the render thread.
469 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; 470 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_;
470 scoped_ptr<DomStorageDispatcher> dom_storage_dispatcher_; 471 scoped_ptr<DomStorageDispatcher> dom_storage_dispatcher_;
471 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; 472 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_;
472 scoped_ptr<RendererScheduler> renderer_scheduler_; 473 scoped_ptr<RendererScheduler> renderer_scheduler_;
473 scoped_ptr<RendererBlinkPlatformImpl> blink_platform_impl_; 474 scoped_ptr<RendererBlinkPlatformImpl> blink_platform_impl_;
475 scoped_ptr<ResourceDispatchThrottler> resource_dispatch_throttler_;
474 scoped_ptr<EmbeddedWorkerDispatcher> embedded_worker_dispatcher_; 476 scoped_ptr<EmbeddedWorkerDispatcher> embedded_worker_dispatcher_;
475 477
476 // Used on the render thread and deleted by WebKit at shutdown. 478 // Used on the render thread and deleted by WebKit at shutdown.
477 blink::WebMediaStreamCenter* media_stream_center_; 479 blink::WebMediaStreamCenter* media_stream_center_;
478 480
479 // Used on the renderer and IPC threads. 481 // Used on the renderer and IPC threads.
480 scoped_refptr<DBMessageFilter> db_message_filter_; 482 scoped_refptr<DBMessageFilter> db_message_filter_;
481 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_; 483 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_;
482 scoped_refptr<AudioMessageFilter> audio_message_filter_; 484 scoped_refptr<AudioMessageFilter> audio_message_filter_;
483 scoped_refptr<MidiMessageFilter> midi_message_filter_; 485 scoped_refptr<MidiMessageFilter> midi_message_filter_;
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 unsigned use_image_texture_target_; 600 unsigned use_image_texture_target_;
599 601
600 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; 602 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_;
601 603
602 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 604 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
603 }; 605 };
604 606
605 } // namespace content 607 } // namespace content
606 608
607 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 609 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698