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

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

Issue 2924563002: Make RTCPeerConnectionHandlerTest use the webrtc signaling thread. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | content/renderer/media/rtc_peer_connection_handler_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_
6 #define CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ 6 #define CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 webrtc::PeerConnectionInterface::IceConnectionState new_state); 224 webrtc::PeerConnectionInterface::IceConnectionState new_state);
225 225
226 // Reset UMA related members to the initial state. This is invoked at the 226 // Reset UMA related members to the initial state. This is invoked at the
227 // constructor as well as after Ice Restart. 227 // constructor as well as after Ice Restart.
228 void ResetUMAStats(); 228 void ResetUMAStats();
229 229
230 void ReportFirstSessionDescriptions( 230 void ReportFirstSessionDescriptions(
231 const FirstSessionDescription& local, 231 const FirstSessionDescription& local,
232 const FirstSessionDescription& remote); 232 const FirstSessionDescription& remote);
233 233
234 // Virtual to allow mocks to override. 234 scoped_refptr<base::SingleThreadTaskRunner> signaling_thread() const;
235 virtual scoped_refptr<base::SingleThreadTaskRunner> signaling_thread() const;
236 235
237 void RunSynchronousClosureOnSignalingThread(const base::Closure& closure, 236 void RunSynchronousClosureOnSignalingThread(const base::Closure& closure,
238 const char* trace_event_name); 237 const char* trace_event_name);
239 238
240 // If a track is not found with the specified id, the returned track's 239 // If a track is not found with the specified id, the returned track's
241 // |isNull| will return true. 240 // |isNull| will return true.
242 blink::WebMediaStreamTrack GetRemoteAudioTrack( 241 blink::WebMediaStreamTrack GetRemoteAudioTrack(
243 const std::string& track_id) const; 242 const std::string& track_id) const;
244 blink::WebMediaStreamTrack GetRemoteVideoTrack( 243 blink::WebMediaStreamTrack GetRemoteVideoTrack(
245 const std::string& track_id) const; 244 const std::string& track_id) const;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 bool ice_state_seen_[webrtc::PeerConnectionInterface::kIceConnectionMax] = {}; 302 bool ice_state_seen_[webrtc::PeerConnectionInterface::kIceConnectionMax] = {};
304 303
305 base::WeakPtrFactory<RTCPeerConnectionHandler> weak_factory_; 304 base::WeakPtrFactory<RTCPeerConnectionHandler> weak_factory_;
306 305
307 DISALLOW_COPY_AND_ASSIGN(RTCPeerConnectionHandler); 306 DISALLOW_COPY_AND_ASSIGN(RTCPeerConnectionHandler);
308 }; 307 };
309 308
310 } // namespace content 309 } // namespace content
311 310
312 #endif // CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ 311 #endif // CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/rtc_peer_connection_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698