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

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

Issue 10919122: Move creation of PeerConnection from the RenderView to the RenderThreadImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed UMA_HISTOGRAM_ENUMERATION and cleaned up. Created 8 years, 3 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 | Annotate | Revision Log
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 14 matching lines...) Expand all
25 25
26 class AppCacheDispatcher; 26 class AppCacheDispatcher;
27 class AudioInputMessageFilter; 27 class AudioInputMessageFilter;
28 class AudioMessageFilter; 28 class AudioMessageFilter;
29 class CompositorThread; 29 class CompositorThread;
30 class DBMessageFilter; 30 class DBMessageFilter;
31 class DevToolsAgentFilter; 31 class DevToolsAgentFilter;
32 class DomStorageDispatcher; 32 class DomStorageDispatcher;
33 class GpuChannelHost; 33 class GpuChannelHost;
34 class IndexedDBDispatcher; 34 class IndexedDBDispatcher;
35 class MediaStreamDependencyFactory;
35 class RendererWebKitPlatformSupportImpl; 36 class RendererWebKitPlatformSupportImpl;
36 class SkBitmap; 37 class SkBitmap;
37 class VideoCaptureImplManager; 38 class VideoCaptureImplManager;
38 struct ViewMsg_New_Params; 39 struct ViewMsg_New_Params;
39 class WebDatabaseObserverImpl; 40 class WebDatabaseObserverImpl;
40 class WebGraphicsContext3DCommandBufferImpl; 41 class WebGraphicsContext3DCommandBufferImpl;
41 42
42 namespace WebKit { 43 namespace WebKit {
43 class WebMediaStreamCenter; 44 class WebMediaStreamCenter;
44 class WebMediaStreamCenterClient; 45 class WebMediaStreamCenterClient;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 199
199 AudioMessageFilter* audio_message_filter() { 200 AudioMessageFilter* audio_message_filter() {
200 return audio_message_filter_.get(); 201 return audio_message_filter_.get();
201 } 202 }
202 203
203 // Creates the embedder implementation of WebMediaStreamCenter. 204 // Creates the embedder implementation of WebMediaStreamCenter.
204 // The resulting object is owned by WebKit and deleted by WebKit at tear-down. 205 // The resulting object is owned by WebKit and deleted by WebKit at tear-down.
205 WebKit::WebMediaStreamCenter* CreateMediaStreamCenter( 206 WebKit::WebMediaStreamCenter* CreateMediaStreamCenter(
206 WebKit::WebMediaStreamCenterClient* client); 207 WebKit::WebMediaStreamCenterClient* client);
207 208
209 // Returns a factory used for creating RTC PeerConnection objects.
210 MediaStreamDependencyFactory* GetMediaStreamDependencyFactory();
211
208 VideoCaptureImplManager* video_capture_impl_manager() const { 212 VideoCaptureImplManager* video_capture_impl_manager() const {
209 return vc_manager_.get(); 213 return vc_manager_.get();
210 } 214 }
211 215
212 // Get the GPU channel. Returns NULL if the channel is not established or 216 // Get the GPU channel. Returns NULL if the channel is not established or
213 // has been lost. 217 // has been lost.
214 GpuChannelHost* GetGpuChannel(); 218 GpuChannelHost* GetGpuChannel();
215 219
216 // Returns a MessageLoopProxy instance corresponding to the message loop 220 // Returns a MessageLoopProxy instance corresponding to the message loop
217 // of the thread on which file operations should be run. Must be called 221 // of the thread on which file operations should be run. Must be called
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 314
311 // Used on the render thread and deleted by WebKit at shutdown. 315 // Used on the render thread and deleted by WebKit at shutdown.
312 content::MediaStreamCenter* media_stream_center_; 316 content::MediaStreamCenter* media_stream_center_;
313 317
314 // Used on the renderer and IPC threads. 318 // Used on the renderer and IPC threads.
315 scoped_refptr<DBMessageFilter> db_message_filter_; 319 scoped_refptr<DBMessageFilter> db_message_filter_;
316 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_; 320 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_;
317 scoped_refptr<AudioMessageFilter> audio_message_filter_; 321 scoped_refptr<AudioMessageFilter> audio_message_filter_;
318 scoped_refptr<DevToolsAgentFilter> devtools_agent_message_filter_; 322 scoped_refptr<DevToolsAgentFilter> devtools_agent_message_filter_;
319 323
324 scoped_ptr<MediaStreamDependencyFactory> media_stream_factory_;
325
320 // Used on multiple threads. 326 // Used on multiple threads.
321 scoped_refptr<VideoCaptureImplManager> vc_manager_; 327 scoped_refptr<VideoCaptureImplManager> vc_manager_;
322 328
323 // Used on multiple script execution context threads. 329 // Used on multiple script execution context threads.
324 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; 330 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_;
325 331
326 // Initialize COM when using plugins outside the sandbox (Windows only). 332 // Initialize COM when using plugins outside the sandbox (Windows only).
327 scoped_ptr<base::win::ScopedCOMInitializer> initialize_com_; 333 scoped_ptr<base::win::ScopedCOMInitializer> initialize_com_;
328 334
329 // The count of RenderWidgets running through this thread. 335 // The count of RenderWidgets running through this thread.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_; 369 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_;
364 370
365 scoped_ptr<content::AudioRendererMixerManager> audio_renderer_mixer_manager_; 371 scoped_ptr<content::AudioRendererMixerManager> audio_renderer_mixer_manager_;
366 372
367 HistogramCustomizer histogram_customizer_; 373 HistogramCustomizer histogram_customizer_;
368 374
369 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 375 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
370 }; 376 };
371 377
372 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 378 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698