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

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

Issue 2415673003: Merge RTCConfiguration into WebRTCConfiguration (Closed)
Patch Set: headers, kConstants Created 4 years, 2 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 /* 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "platform/AsyncMethodRunner.h" 42 #include "platform/AsyncMethodRunner.h"
43 #include "public/platform/WebMediaConstraints.h" 43 #include "public/platform/WebMediaConstraints.h"
44 #include "public/platform/WebRTCPeerConnectionHandler.h" 44 #include "public/platform/WebRTCPeerConnectionHandler.h"
45 #include "public/platform/WebRTCPeerConnectionHandlerClient.h" 45 #include "public/platform/WebRTCPeerConnectionHandlerClient.h"
46 #include <memory> 46 #include <memory>
47 47
48 namespace blink { 48 namespace blink {
49 class ExceptionState; 49 class ExceptionState;
50 class MediaStreamTrack; 50 class MediaStreamTrack;
51 class RTCAnswerOptions; 51 class RTCAnswerOptions;
52 class RTCConfiguration;
53 class RTCDTMFSender; 52 class RTCDTMFSender;
54 class RTCDataChannel; 53 class RTCDataChannel;
55 class RTCIceCandidateInitOrRTCIceCandidate; 54 class RTCIceCandidateInitOrRTCIceCandidate;
56 class RTCOfferOptions; 55 class RTCOfferOptions;
57 class RTCPeerConnectionErrorCallback; 56 class RTCPeerConnectionErrorCallback;
58 class RTCSessionDescription; 57 class RTCSessionDescription;
59 class RTCSessionDescriptionCallback; 58 class RTCSessionDescriptionCallback;
60 class RTCSessionDescriptionInit; 59 class RTCSessionDescriptionInit;
61 class RTCStatsCallback; 60 class RTCStatsCallback;
62 class ScriptState; 61 class ScriptState;
63 class VoidCallback; 62 class VoidCallback;
63 struct WebRTCConfiguration;
64 64
65 class RTCPeerConnection final : public EventTargetWithInlineData, 65 class RTCPeerConnection final : public EventTargetWithInlineData,
66 public WebRTCPeerConnectionHandlerClient, 66 public WebRTCPeerConnectionHandlerClient,
67 public ActiveScriptWrappable, 67 public ActiveScriptWrappable,
68 public ActiveDOMObject { 68 public ActiveDOMObject {
69 DEFINE_WRAPPERTYPEINFO(); 69 DEFINE_WRAPPERTYPEINFO();
70 USING_GARBAGE_COLLECTED_MIXIN(RTCPeerConnection); 70 USING_GARBAGE_COLLECTED_MIXIN(RTCPeerConnection);
71 USING_PRE_FINALIZER(RTCPeerConnection, dispose); 71 USING_PRE_FINALIZER(RTCPeerConnection, dispose);
72 72
73 public: 73 public:
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 206
207 DECLARE_TRACE(); 207 DECLARE_TRACE();
208 208
209 Member<Event> m_event; 209 Member<Event> m_event;
210 210
211 private: 211 private:
212 std::unique_ptr<BoolFunction> m_setupFunction; 212 std::unique_ptr<BoolFunction> m_setupFunction;
213 }; 213 };
214 214
215 RTCPeerConnection(ExecutionContext*, 215 RTCPeerConnection(ExecutionContext*,
216 RTCConfiguration*, 216 const WebRTCConfiguration&,
217 WebMediaConstraints, 217 WebMediaConstraints,
218 ExceptionState&); 218 ExceptionState&);
219 void dispose(); 219 void dispose();
220 220
221 void scheduleDispatchEvent(Event*); 221 void scheduleDispatchEvent(Event*);
222 void scheduleDispatchEvent(Event*, std::unique_ptr<BoolFunction>); 222 void scheduleDispatchEvent(Event*, std::unique_ptr<BoolFunction>);
223 void dispatchScheduledEvent(); 223 void dispatchScheduledEvent();
224 bool hasLocalStreamWithTrackId(const String& trackId); 224 bool hasLocalStreamWithTrackId(const String& trackId);
225 225
226 void changeSignalingState(WebRTCPeerConnectionHandlerClient::SignalingState); 226 void changeSignalingState(WebRTCPeerConnectionHandlerClient::SignalingState);
(...skipping 26 matching lines...) Expand all
253 253
254 bool m_stopped; 254 bool m_stopped;
255 bool m_closed; 255 bool m_closed;
256 256
257 bool m_hasDataChannels; // For RAPPOR metrics 257 bool m_hasDataChannels; // For RAPPOR metrics
258 }; 258 };
259 259
260 } // namespace blink 260 } // namespace blink
261 261
262 #endif // RTCPeerConnection_h 262 #endif // RTCPeerConnection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698