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

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

Issue 15741003: Moving WebRTC logging related files from content to chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 class InputHandlerManager; 80 class InputHandlerManager;
81 class MediaStreamCenter; 81 class MediaStreamCenter;
82 class MediaStreamDependencyFactory; 82 class MediaStreamDependencyFactory;
83 class P2PSocketDispatcher; 83 class P2PSocketDispatcher;
84 class PeerConnectionTracker; 84 class PeerConnectionTracker;
85 class RendererWebKitPlatformSupportImpl; 85 class RendererWebKitPlatformSupportImpl;
86 class RenderProcessObserver; 86 class RenderProcessObserver;
87 class VideoCaptureImplManager; 87 class VideoCaptureImplManager;
88 class WebDatabaseObserverImpl; 88 class WebDatabaseObserverImpl;
89 class WebGraphicsContext3DCommandBufferImpl; 89 class WebGraphicsContext3DCommandBufferImpl;
90 class WebRtcLoggingMessageFilter;
91 90
92 // The RenderThreadImpl class represents a background thread where RenderView 91 // The RenderThreadImpl class represents a background thread where RenderView
93 // instances live. The RenderThread supports an API that is used by its 92 // instances live. The RenderThread supports an API that is used by its
94 // consumer to talk indirectly to the RenderViews and supporting objects. 93 // consumer to talk indirectly to the RenderViews and supporting objects.
95 // Likewise, it provides an API for the RenderViews to talk back to the main 94 // Likewise, it provides an API for the RenderViews to talk back to the main
96 // process (i.e., their corresponding WebContentsImpl). 95 // process (i.e., their corresponding WebContentsImpl).
97 // 96 //
98 // Most of the communication occurs in the form of IPC messages. They are 97 // Most of the communication occurs in the form of IPC messages. They are
99 // routed to the RenderThread according to the routing IDs of the messages. 98 // routed to the RenderThread according to the routing IDs of the messages.
100 // The routing IDs correspond to RenderView instances. 99 // The routing IDs correspond to RenderView instances.
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 256
258 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. 257 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled.
259 P2PSocketDispatcher* p2p_socket_dispatcher() { 258 P2PSocketDispatcher* p2p_socket_dispatcher() {
260 return p2p_socket_dispatcher_.get(); 259 return p2p_socket_dispatcher_.get();
261 } 260 }
262 261
263 VideoCaptureImplManager* video_capture_impl_manager() const { 262 VideoCaptureImplManager* video_capture_impl_manager() const {
264 return vc_manager_.get(); 263 return vc_manager_.get();
265 } 264 }
266 265
267 const scoped_refptr<WebRtcLoggingMessageFilter>&
268 webrtc_logging_message_filter() const {
269 return webrtc_logging_message_filter_;
270 }
271
272 // Get the GPU channel. Returns NULL if the channel is not established or 266 // Get the GPU channel. Returns NULL if the channel is not established or
273 // has been lost. 267 // has been lost.
274 GpuChannelHost* GetGpuChannel(); 268 GpuChannelHost* GetGpuChannel();
275 269
276 // Returns a MessageLoopProxy instance corresponding to the message loop 270 // Returns a MessageLoopProxy instance corresponding to the message loop
277 // of the thread on which file operations should be run. Must be called 271 // of the thread on which file operations should be run. Must be called
278 // on the renderer's main thread. 272 // on the renderer's main thread.
279 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy(); 273 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy();
280 274
281 // Causes the idle handler to skip sending idle notifications 275 // Causes the idle handler to skip sending idle notifications
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 // This is used to communicate to the browser process the status 395 // This is used to communicate to the browser process the status
402 // of all the peer connections created in the renderer. 396 // of all the peer connections created in the renderer.
403 scoped_ptr<PeerConnectionTracker> peer_connection_tracker_; 397 scoped_ptr<PeerConnectionTracker> peer_connection_tracker_;
404 398
405 // Dispatches all P2P sockets. 399 // Dispatches all P2P sockets.
406 scoped_refptr<P2PSocketDispatcher> p2p_socket_dispatcher_; 400 scoped_refptr<P2PSocketDispatcher> p2p_socket_dispatcher_;
407 401
408 // Used on multiple threads. 402 // Used on multiple threads.
409 scoped_refptr<VideoCaptureImplManager> vc_manager_; 403 scoped_refptr<VideoCaptureImplManager> vc_manager_;
410 404
411 scoped_refptr<WebRtcLoggingMessageFilter> webrtc_logging_message_filter_;
412
413 // Used on multiple script execution context threads. 405 // Used on multiple script execution context threads.
414 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; 406 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_;
415 407
416 #if defined(OS_WIN) 408 #if defined(OS_WIN)
417 // Initialize COM when using plugins outside the sandbox. 409 // Initialize COM when using plugins outside the sandbox.
418 scoped_ptr<base::win::ScopedCOMInitializer> initialize_com_; 410 scoped_ptr<base::win::ScopedCOMInitializer> initialize_com_;
419 #endif 411 #endif
420 412
421 // The count of RenderWidgets running through this thread. 413 // The count of RenderWidgets running through this thread.
422 int widget_count_; 414 int widget_count_;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; 465 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_;
474 466
475 HistogramCustomizer histogram_customizer_; 467 HistogramCustomizer histogram_customizer_;
476 468
477 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 469 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
478 }; 470 };
479 471
480 } // namespace content 472 } // namespace content
481 473
482 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 474 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698