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

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: #if defined(ENABLE_WEBRTC) in RendererWebKitPlatformSupportImpl::createPeerConnection00Handler to b… 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
« no previous file with comments | « content/renderer/media/webrtc_uma_histograms.h ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 } 195 }
195 196
196 AudioInputMessageFilter* audio_input_message_filter() { 197 AudioInputMessageFilter* audio_input_message_filter() {
197 return audio_input_message_filter_.get(); 198 return audio_input_message_filter_.get();
198 } 199 }
199 200
200 AudioMessageFilter* audio_message_filter() { 201 AudioMessageFilter* audio_message_filter() {
201 return audio_message_filter_.get(); 202 return audio_message_filter_.get();
202 } 203 }
203 204
205
206
204 // Creates the embedder implementation of WebMediaStreamCenter. 207 // Creates the embedder implementation of WebMediaStreamCenter.
205 // The resulting object is owned by WebKit and deleted by WebKit at tear-down. 208 // The resulting object is owned by WebKit and deleted by WebKit at tear-down.
206 WebKit::WebMediaStreamCenter* CreateMediaStreamCenter( 209 WebKit::WebMediaStreamCenter* CreateMediaStreamCenter(
207 WebKit::WebMediaStreamCenterClient* client); 210 WebKit::WebMediaStreamCenterClient* client);
208 211
212 // Returns a factory used for creating RTC PeerConnection objects.
213 MediaStreamDependencyFactory* GetMediaStreamDependencyFactory();
214
209 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. 215 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled.
210 content::P2PSocketDispatcher* p2p_socket_dispatcher() { 216 content::P2PSocketDispatcher* p2p_socket_dispatcher() {
211 return p2p_socket_dispatcher_.get(); 217 return p2p_socket_dispatcher_.get();
212 } 218 }
213 219
214 VideoCaptureImplManager* video_capture_impl_manager() const { 220 VideoCaptureImplManager* video_capture_impl_manager() const {
215 return vc_manager_.get(); 221 return vc_manager_.get();
216 } 222 }
217 223
218 // Get the GPU channel. Returns NULL if the channel is not established or 224 // Get the GPU channel. Returns NULL if the channel is not established or
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 322
317 // Used on the render thread and deleted by WebKit at shutdown. 323 // Used on the render thread and deleted by WebKit at shutdown.
318 content::MediaStreamCenter* media_stream_center_; 324 content::MediaStreamCenter* media_stream_center_;
319 325
320 // Used on the renderer and IPC threads. 326 // Used on the renderer and IPC threads.
321 scoped_refptr<DBMessageFilter> db_message_filter_; 327 scoped_refptr<DBMessageFilter> db_message_filter_;
322 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_; 328 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_;
323 scoped_refptr<AudioMessageFilter> audio_message_filter_; 329 scoped_refptr<AudioMessageFilter> audio_message_filter_;
324 scoped_refptr<DevToolsAgentFilter> devtools_agent_message_filter_; 330 scoped_refptr<DevToolsAgentFilter> devtools_agent_message_filter_;
325 331
332 scoped_ptr<MediaStreamDependencyFactory> media_stream_factory_;
333
326 // Dispatches all P2P sockets. 334 // Dispatches all P2P sockets.
327 scoped_refptr<content::P2PSocketDispatcher> p2p_socket_dispatcher_; 335 scoped_refptr<content::P2PSocketDispatcher> p2p_socket_dispatcher_;
328 336
329 // Used on multiple threads. 337 // Used on multiple threads.
330 scoped_refptr<VideoCaptureImplManager> vc_manager_; 338 scoped_refptr<VideoCaptureImplManager> vc_manager_;
331 339
332 // Used on multiple script execution context threads. 340 // Used on multiple script execution context threads.
333 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; 341 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_;
334 342
335 // Initialize COM when using plugins outside the sandbox (Windows only). 343 // Initialize COM when using plugins outside the sandbox (Windows only).
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_; 380 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_;
373 381
374 scoped_ptr<content::AudioRendererMixerManager> audio_renderer_mixer_manager_; 382 scoped_ptr<content::AudioRendererMixerManager> audio_renderer_mixer_manager_;
375 383
376 HistogramCustomizer histogram_customizer_; 384 HistogramCustomizer histogram_customizer_;
377 385
378 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 386 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
379 }; 387 };
380 388
381 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 389 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/media/webrtc_uma_histograms.h ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698