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

Side by Side Diff: third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h

Issue 2692013002: [scheduler] Plumb information about active webrtc connections to scheduler (Closed)
Patch Set: Created 3 years, 10 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 | third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef RTCPeerConnection_h 31 #ifndef RTCPeerConnection_h
32 #define RTCPeerConnection_h 32 #define RTCPeerConnection_h
33 33
34 #include <memory>
34 #include "bindings/core/v8/ActiveScriptWrappable.h" 35 #include "bindings/core/v8/ActiveScriptWrappable.h"
35 #include "bindings/core/v8/ScriptPromise.h" 36 #include "bindings/core/v8/ScriptPromise.h"
36 #include "core/dom/SuspendableObject.h" 37 #include "core/dom/SuspendableObject.h"
37 #include "modules/EventTargetModules.h" 38 #include "modules/EventTargetModules.h"
38 #include "modules/crypto/NormalizeAlgorithm.h" 39 #include "modules/crypto/NormalizeAlgorithm.h"
39 #include "modules/mediastream/MediaStream.h" 40 #include "modules/mediastream/MediaStream.h"
40 #include "modules/peerconnection/RTCIceCandidate.h" 41 #include "modules/peerconnection/RTCIceCandidate.h"
41 #include "platform/AsyncMethodRunner.h" 42 #include "platform/AsyncMethodRunner.h"
43 #include "platform/WebFrameScheduler.h"
42 #include "public/platform/WebMediaConstraints.h" 44 #include "public/platform/WebMediaConstraints.h"
43 #include "public/platform/WebRTCPeerConnectionHandler.h" 45 #include "public/platform/WebRTCPeerConnectionHandler.h"
44 #include "public/platform/WebRTCPeerConnectionHandlerClient.h" 46 #include "public/platform/WebRTCPeerConnectionHandlerClient.h"
45 #include <memory>
46 47
47 namespace blink { 48 namespace blink {
48 class ExceptionState; 49 class ExceptionState;
49 class MediaStreamTrack; 50 class MediaStreamTrack;
50 class RTCAnswerOptions; 51 class RTCAnswerOptions;
51 class RTCConfiguration; 52 class RTCConfiguration;
52 class RTCDTMFSender; 53 class RTCDTMFSender;
53 class RTCDataChannel; 54 class RTCDataChannel;
54 class RTCIceCandidateInitOrRTCIceCandidate; 55 class RTCIceCandidateInitOrRTCIceCandidate;
55 class RTCOfferOptions; 56 class RTCOfferOptions;
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 ICEConnectionState m_iceConnectionState; 247 ICEConnectionState m_iceConnectionState;
247 248
248 MediaStreamVector m_localStreams; 249 MediaStreamVector m_localStreams;
249 MediaStreamVector m_remoteStreams; 250 MediaStreamVector m_remoteStreams;
250 251
251 std::unique_ptr<WebRTCPeerConnectionHandler> m_peerHandler; 252 std::unique_ptr<WebRTCPeerConnectionHandler> m_peerHandler;
252 253
253 Member<AsyncMethodRunner<RTCPeerConnection>> m_dispatchScheduledEventRunner; 254 Member<AsyncMethodRunner<RTCPeerConnection>> m_dispatchScheduledEventRunner;
254 HeapVector<Member<EventWrapper>> m_scheduledEvents; 255 HeapVector<Member<EventWrapper>> m_scheduledEvents;
255 256
257 // This handle notifies scheduler about an active connection associated
258 // with a frame. Handle should be destroyed when connection is closed.
259 std::unique_ptr<WebFrameScheduler::ActiveConnectionHandle>
260 m_connectionHandleForScheduler;
261
256 bool m_stopped; 262 bool m_stopped;
257 bool m_closed; 263 bool m_closed;
258 264
259 bool m_hasDataChannels; // For RAPPOR metrics 265 bool m_hasDataChannels; // For RAPPOR metrics
260 }; 266 };
261 267
262 } // namespace blink 268 } // namespace blink
263 269
264 #endif // RTCPeerConnection_h 270 #endif // RTCPeerConnection_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698