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

Side by Side Diff: content/renderer/media/webrtc/peer_connection_dependency_factory.cc

Issue 1958823002: Fix implicit access to raw pointer of scoped_refptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Splitting out change to scoped_refptr to follow up patch. Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "content/renderer/media/webrtc/peer_connection_dependency_factory.h" 5 #include "content/renderer/media/webrtc/peer_connection_dependency_factory.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 p2p_socket_dispatcher_(p2p_socket_dispatcher), 109 p2p_socket_dispatcher_(p2p_socket_dispatcher),
110 signaling_thread_(NULL), 110 signaling_thread_(NULL),
111 worker_thread_(NULL), 111 worker_thread_(NULL),
112 chrome_signaling_thread_("Chrome_libJingle_Signaling"), 112 chrome_signaling_thread_("Chrome_libJingle_Signaling"),
113 chrome_worker_thread_("Chrome_libJingle_WorkerThread") { 113 chrome_worker_thread_("Chrome_libJingle_WorkerThread") {
114 TryScheduleStunProbeTrial(); 114 TryScheduleStunProbeTrial();
115 } 115 }
116 116
117 PeerConnectionDependencyFactory::~PeerConnectionDependencyFactory() { 117 PeerConnectionDependencyFactory::~PeerConnectionDependencyFactory() {
118 DVLOG(1) << "~PeerConnectionDependencyFactory()"; 118 DVLOG(1) << "~PeerConnectionDependencyFactory()";
119 DCHECK(pc_factory_ == NULL); 119 DCHECK(!pc_factory_);
120 } 120 }
121 121
122 blink::WebRTCPeerConnectionHandler* 122 blink::WebRTCPeerConnectionHandler*
123 PeerConnectionDependencyFactory::CreateRTCPeerConnectionHandler( 123 PeerConnectionDependencyFactory::CreateRTCPeerConnectionHandler(
124 blink::WebRTCPeerConnectionHandlerClient* client) { 124 blink::WebRTCPeerConnectionHandlerClient* client) {
125 // Save histogram data so we can see how much PeerConnetion is used. 125 // Save histogram data so we can see how much PeerConnetion is used.
126 // The histogram counts the number of calls to the JS API 126 // The histogram counts the number of calls to the JS API
127 // webKitRTCPeerConnection. 127 // webKitRTCPeerConnection.
128 UpdateWebRTCMethodCount(WEBKIT_RTC_PEER_CONNECTION); 128 UpdateWebRTCMethodCount(WEBKIT_RTC_PEER_CONNECTION);
129 129
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 } 779 }
780 780
781 void PeerConnectionDependencyFactory::EnsureWebRtcAudioDeviceImpl() { 781 void PeerConnectionDependencyFactory::EnsureWebRtcAudioDeviceImpl() {
782 if (audio_device_.get()) 782 if (audio_device_.get())
783 return; 783 return;
784 784
785 audio_device_ = new WebRtcAudioDeviceImpl(); 785 audio_device_ = new WebRtcAudioDeviceImpl();
786 } 786 }
787 787
788 } // namespace content 788 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/android/webmediaplayer_android.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698