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

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

Issue 462983002: GN: Make content_shell and webkit_unit_tests work in component build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 RendererDemuxerAndroid* renderer_demuxer() { 263 RendererDemuxerAndroid* renderer_demuxer() {
264 return renderer_demuxer_.get(); 264 return renderer_demuxer_.get();
265 } 265 }
266 #endif 266 #endif
267 267
268 // Creates the embedder implementation of WebMediaStreamCenter. 268 // Creates the embedder implementation of WebMediaStreamCenter.
269 // The resulting object is owned by WebKit and deleted by WebKit at tear-down. 269 // The resulting object is owned by WebKit and deleted by WebKit at tear-down.
270 blink::WebMediaStreamCenter* CreateMediaStreamCenter( 270 blink::WebMediaStreamCenter* CreateMediaStreamCenter(
271 blink::WebMediaStreamCenterClient* client); 271 blink::WebMediaStreamCenterClient* client);
272 272
273 #if defined(ENABLE_WEBRTC)
jamesr 2014/08/12 04:03:08 the changes in these source files make content/ wo
273 // Returns a factory used for creating RTC PeerConnection objects. 274 // Returns a factory used for creating RTC PeerConnection objects.
274 PeerConnectionDependencyFactory* GetPeerConnectionDependencyFactory(); 275 PeerConnectionDependencyFactory* GetPeerConnectionDependencyFactory();
275 276
276 PeerConnectionTracker* peer_connection_tracker() { 277 PeerConnectionTracker* peer_connection_tracker() {
277 return peer_connection_tracker_.get(); 278 return peer_connection_tracker_.get();
278 } 279 }
279 280
280 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. 281 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled.
281 P2PSocketDispatcher* p2p_socket_dispatcher() { 282 P2PSocketDispatcher* p2p_socket_dispatcher() {
282 return p2p_socket_dispatcher_.get(); 283 return p2p_socket_dispatcher_.get();
283 } 284 }
285 #endif
284 286
285 VideoCaptureImplManager* video_capture_impl_manager() const { 287 VideoCaptureImplManager* video_capture_impl_manager() const {
286 return vc_manager_.get(); 288 return vc_manager_.get();
287 } 289 }
288 290
289 // Get the GPU channel. Returns NULL if the channel is not established or 291 // Get the GPU channel. Returns NULL if the channel is not established or
290 // has been lost. 292 // has been lost.
291 GpuChannelHost* GetGpuChannel(); 293 GpuChannelHost* GetGpuChannel();
292 294
293 // Returns a MessageLoopProxy instance corresponding to the message loop 295 // Returns a MessageLoopProxy instance corresponding to the message loop
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 // Used on the renderer and IPC threads. 468 // Used on the renderer and IPC threads.
467 scoped_refptr<DBMessageFilter> db_message_filter_; 469 scoped_refptr<DBMessageFilter> db_message_filter_;
468 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_; 470 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_;
469 scoped_refptr<AudioMessageFilter> audio_message_filter_; 471 scoped_refptr<AudioMessageFilter> audio_message_filter_;
470 scoped_refptr<MidiMessageFilter> midi_message_filter_; 472 scoped_refptr<MidiMessageFilter> midi_message_filter_;
471 #if defined(OS_ANDROID) 473 #if defined(OS_ANDROID)
472 scoped_refptr<RendererDemuxerAndroid> renderer_demuxer_; 474 scoped_refptr<RendererDemuxerAndroid> renderer_demuxer_;
473 #endif 475 #endif
474 scoped_refptr<DevToolsAgentFilter> devtools_agent_message_filter_; 476 scoped_refptr<DevToolsAgentFilter> devtools_agent_message_filter_;
475 477
478 #if defined(ENABLE_WEBRTC)
476 scoped_ptr<PeerConnectionDependencyFactory> peer_connection_factory_; 479 scoped_ptr<PeerConnectionDependencyFactory> peer_connection_factory_;
477 480
478 // This is used to communicate to the browser process the status 481 // This is used to communicate to the browser process the status
479 // of all the peer connections created in the renderer. 482 // of all the peer connections created in the renderer.
480 scoped_ptr<PeerConnectionTracker> peer_connection_tracker_; 483 scoped_ptr<PeerConnectionTracker> peer_connection_tracker_;
481 484
482 // Dispatches all P2P sockets. 485 // Dispatches all P2P sockets.
483 scoped_refptr<P2PSocketDispatcher> p2p_socket_dispatcher_; 486 scoped_refptr<P2PSocketDispatcher> p2p_socket_dispatcher_;
487 #endif
484 488
485 // Used on the render thread. 489 // Used on the render thread.
486 scoped_ptr<VideoCaptureImplManager> vc_manager_; 490 scoped_ptr<VideoCaptureImplManager> vc_manager_;
487 491
488 // Used for communicating registering AEC dump consumers with the browser and 492 // Used for communicating registering AEC dump consumers with the browser and
489 // receving AEC dump file handles when AEC dump is enabled. An AEC dump is 493 // receving AEC dump file handles when AEC dump is enabled. An AEC dump is
490 // diagnostic audio data for WebRTC stored locally when enabled by the user in 494 // diagnostic audio data for WebRTC stored locally when enabled by the user in
491 // chrome://webrtc-internals. 495 // chrome://webrtc-internals.
492 scoped_refptr<AecDumpMessageFilter> aec_dump_message_filter_; 496 scoped_refptr<AecDumpMessageFilter> aec_dump_message_filter_;
493 497
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 549
546 scoped_refptr<ContextProviderCommandBuffer> gpu_va_context_provider_; 550 scoped_refptr<ContextProviderCommandBuffer> gpu_va_context_provider_;
547 551
548 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_; 552 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_;
549 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; 553 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_;
550 554
551 HistogramCustomizer histogram_customizer_; 555 HistogramCustomizer histogram_customizer_;
552 556
553 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; 557 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_;
554 558
559 #if defined(ENABLE_WEBRTC)
555 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_; 560 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_;
561 #endif
556 562
557 // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from 563 // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from
558 // multiple threads. Current allocation mechanism for IOSurface 564 // multiple threads. Current allocation mechanism for IOSurface
559 // backed GpuMemoryBuffers prevent this. crbug.com/325045 565 // backed GpuMemoryBuffers prevent this. crbug.com/325045
560 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_; 566 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_;
561 567
562 scoped_ptr<MemoryObserver> memory_observer_; 568 scoped_ptr<MemoryObserver> memory_observer_;
563 569
564 // Compositor settings 570 // Compositor settings
565 bool is_gpu_rasterization_enabled_; 571 bool is_gpu_rasterization_enabled_;
566 bool is_gpu_rasterization_forced_; 572 bool is_gpu_rasterization_forced_;
567 bool is_impl_side_painting_enabled_; 573 bool is_impl_side_painting_enabled_;
568 bool is_low_res_tiling_enabled_; 574 bool is_low_res_tiling_enabled_;
569 bool is_lcd_text_enabled_; 575 bool is_lcd_text_enabled_;
570 bool is_distance_field_text_enabled_; 576 bool is_distance_field_text_enabled_;
571 bool is_zero_copy_enabled_; 577 bool is_zero_copy_enabled_;
572 bool is_one_copy_enabled_; 578 bool is_one_copy_enabled_;
573 579
574 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; 580 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_;
575 581
576 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 582 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
577 }; 583 };
578 584
579 } // namespace content 585 } // namespace content
580 586
581 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 587 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698