OLD | NEW |
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 #include "content/renderer/media/rtc_peer_connection_handler.h" | 5 #include "content/renderer/media/rtc_peer_connection_handler.h" |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1147 // static | 1147 // static |
1148 void RTCPeerConnectionHandler::DestructAllHandlers() { | 1148 void RTCPeerConnectionHandler::DestructAllHandlers() { |
1149 // Copy g_peer_connection_handlers since releasePeerConnectionHandler will | 1149 // Copy g_peer_connection_handlers since releasePeerConnectionHandler will |
1150 // remove an item. | 1150 // remove an item. |
1151 std::set<RTCPeerConnectionHandler*> handlers( | 1151 std::set<RTCPeerConnectionHandler*> handlers( |
1152 GetPeerConnectionHandlers()->begin(), GetPeerConnectionHandlers()->end()); | 1152 GetPeerConnectionHandlers()->begin(), GetPeerConnectionHandlers()->end()); |
1153 for (auto* handler : handlers) | 1153 for (auto* handler : handlers) |
1154 handler->client_->ReleasePeerConnectionHandler(); | 1154 handler->client_->ReleasePeerConnectionHandler(); |
1155 } | 1155 } |
1156 | 1156 |
1157 void RTCPeerConnectionHandler::associateWithFrame(blink::WebFrame* frame) { | 1157 void RTCPeerConnectionHandler::associateWithFrame(blink::WebLocalFrame* frame) { |
1158 DCHECK(thread_checker_.CalledOnValidThread()); | 1158 DCHECK(thread_checker_.CalledOnValidThread()); |
1159 DCHECK(frame); | 1159 DCHECK(frame); |
1160 frame_ = frame; | 1160 frame_ = frame; |
1161 } | 1161 } |
1162 | 1162 |
1163 bool RTCPeerConnectionHandler::Initialize( | 1163 bool RTCPeerConnectionHandler::Initialize( |
1164 const blink::WebRTCConfiguration& server_configuration, | 1164 const blink::WebRTCConfiguration& server_configuration, |
1165 const blink::WebMediaConstraints& options) { | 1165 const blink::WebMediaConstraints& options) { |
1166 DCHECK(thread_checker_.CalledOnValidThread()); | 1166 DCHECK(thread_checker_.CalledOnValidThread()); |
1167 DCHECK(frame_); | 1167 DCHECK(frame_); |
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2127 } | 2127 } |
2128 | 2128 |
2129 void RTCPeerConnectionHandler::ResetUMAStats() { | 2129 void RTCPeerConnectionHandler::ResetUMAStats() { |
2130 DCHECK(thread_checker_.CalledOnValidThread()); | 2130 DCHECK(thread_checker_.CalledOnValidThread()); |
2131 num_local_candidates_ipv6_ = 0; | 2131 num_local_candidates_ipv6_ = 0; |
2132 num_local_candidates_ipv4_ = 0; | 2132 num_local_candidates_ipv4_ = 0; |
2133 ice_connection_checking_start_ = base::TimeTicks(); | 2133 ice_connection_checking_start_ = base::TimeTicks(); |
2134 memset(ice_state_seen_, 0, sizeof(ice_state_seen_)); | 2134 memset(ice_state_seen_, 0, sizeof(ice_state_seen_)); |
2135 } | 2135 } |
2136 } // namespace content | 2136 } // namespace content |
OLD | NEW |