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

Side by Side Diff: content/renderer/media/rtc_peer_connection_handler.cc

Issue 2928033002: Move GetDocument method from WebFrame to WebLocalFrame. (Closed)
Patch Set: Split a DCHECK in two as suggested by boliu@. Created 3 years, 6 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 (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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698