| 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 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1126 // static | 1126 // static |
| 1127 void RTCPeerConnectionHandler::DestructAllHandlers() { | 1127 void RTCPeerConnectionHandler::DestructAllHandlers() { |
| 1128 // Copy g_peer_connection_handlers since releasePeerConnectionHandler will | 1128 // Copy g_peer_connection_handlers since releasePeerConnectionHandler will |
| 1129 // remove an item. | 1129 // remove an item. |
| 1130 std::set<RTCPeerConnectionHandler*> handlers( | 1130 std::set<RTCPeerConnectionHandler*> handlers( |
| 1131 GetPeerConnectionHandlers()->begin(), GetPeerConnectionHandlers()->end()); | 1131 GetPeerConnectionHandlers()->begin(), GetPeerConnectionHandlers()->end()); |
| 1132 for (auto* handler : handlers) | 1132 for (auto* handler : handlers) |
| 1133 handler->client_->ReleasePeerConnectionHandler(); | 1133 handler->client_->ReleasePeerConnectionHandler(); |
| 1134 } | 1134 } |
| 1135 | 1135 |
| 1136 void RTCPeerConnectionHandler::associateWithFrame(blink::WebFrame* frame) { | 1136 void RTCPeerConnectionHandler::associateWithFrame(blink::WebLocalFrame* frame) { |
| 1137 DCHECK(thread_checker_.CalledOnValidThread()); | 1137 DCHECK(thread_checker_.CalledOnValidThread()); |
| 1138 DCHECK(frame); | 1138 DCHECK(frame); |
| 1139 frame_ = frame; | 1139 frame_ = frame; |
| 1140 } | 1140 } |
| 1141 | 1141 |
| 1142 bool RTCPeerConnectionHandler::Initialize( | 1142 bool RTCPeerConnectionHandler::Initialize( |
| 1143 const blink::WebRTCConfiguration& server_configuration, | 1143 const blink::WebRTCConfiguration& server_configuration, |
| 1144 const blink::WebMediaConstraints& options) { | 1144 const blink::WebMediaConstraints& options) { |
| 1145 DCHECK(thread_checker_.CalledOnValidThread()); | 1145 DCHECK(thread_checker_.CalledOnValidThread()); |
| 1146 DCHECK(frame_); | 1146 DCHECK(frame_); |
| (...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2068 } | 2068 } |
| 2069 | 2069 |
| 2070 void RTCPeerConnectionHandler::ResetUMAStats() { | 2070 void RTCPeerConnectionHandler::ResetUMAStats() { |
| 2071 DCHECK(thread_checker_.CalledOnValidThread()); | 2071 DCHECK(thread_checker_.CalledOnValidThread()); |
| 2072 num_local_candidates_ipv6_ = 0; | 2072 num_local_candidates_ipv6_ = 0; |
| 2073 num_local_candidates_ipv4_ = 0; | 2073 num_local_candidates_ipv4_ = 0; |
| 2074 ice_connection_checking_start_ = base::TimeTicks(); | 2074 ice_connection_checking_start_ = base::TimeTicks(); |
| 2075 memset(ice_state_seen_, 0, sizeof(ice_state_seen_)); | 2075 memset(ice_state_seen_, 0, sizeof(ice_state_seen_)); |
| 2076 } | 2076 } |
| 2077 } // namespace content | 2077 } // namespace content |
| OLD | NEW |