OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |