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

Side by Side Diff: webrtc/pc/webrtcsession.cc

Issue 2514883002: Create //webrtc/api:libjingle_peerconnection_api + refactorings. (Closed)
Patch Set: Rebase Created 4 years 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 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #include "webrtc/api/webrtcsession.h" 11 #include "webrtc/pc/webrtcsession.h"
12 12
13 #include <limits.h> 13 #include <limits.h>
14 14
15 #include <algorithm> 15 #include <algorithm>
16 #include <set> 16 #include <set>
17 #include <utility> 17 #include <utility>
18 #include <vector> 18 #include <vector>
19 19
20 #include "webrtc/api/call/audio_sink.h" 20 #include "webrtc/api/call/audio_sink.h"
21 #include "webrtc/api/jsepicecandidate.h"
22 #include "webrtc/api/jsepsessiondescription.h"
23 #include "webrtc/api/peerconnectioninterface.h" 21 #include "webrtc/api/peerconnectioninterface.h"
24 #include "webrtc/api/sctputils.h"
25 #include "webrtc/api/webrtcsessiondescriptionfactory.h"
26 #include "webrtc/base/basictypes.h" 22 #include "webrtc/base/basictypes.h"
27 #include "webrtc/base/bind.h" 23 #include "webrtc/base/bind.h"
28 #include "webrtc/base/checks.h" 24 #include "webrtc/base/checks.h"
29 #include "webrtc/base/helpers.h" 25 #include "webrtc/base/helpers.h"
30 #include "webrtc/base/logging.h" 26 #include "webrtc/base/logging.h"
31 #include "webrtc/base/stringencode.h" 27 #include "webrtc/base/stringencode.h"
32 #include "webrtc/base/stringutils.h" 28 #include "webrtc/base/stringutils.h"
33 #include "webrtc/call/call.h" 29 #include "webrtc/call/call.h"
34 #include "webrtc/media/base/mediaconstants.h" 30 #include "webrtc/media/base/mediaconstants.h"
35 #include "webrtc/media/base/videocapturer.h" 31 #include "webrtc/media/base/videocapturer.h"
36 #include "webrtc/p2p/base/portallocator.h" 32 #include "webrtc/p2p/base/portallocator.h"
37 #include "webrtc/p2p/base/transportchannel.h" 33 #include "webrtc/p2p/base/transportchannel.h"
38 #include "webrtc/pc/channel.h" 34 #include "webrtc/pc/channel.h"
39 #include "webrtc/pc/channelmanager.h" 35 #include "webrtc/pc/channelmanager.h"
36 #include "webrtc/pc/jsepicecandidate.h"
37 #include "webrtc/pc/jsepsessiondescription.h"
40 #include "webrtc/pc/mediasession.h" 38 #include "webrtc/pc/mediasession.h"
39 #include "webrtc/pc/sctputils.h"
40 #include "webrtc/pc/webrtcsessiondescriptionfactory.h"
41 41
42 #ifdef HAVE_QUIC 42 #ifdef HAVE_QUIC
43 #include "webrtc/p2p/quic/quictransportchannel.h" 43 #include "webrtc/p2p/quic/quictransportchannel.h"
44 #endif // HAVE_QUIC 44 #endif // HAVE_QUIC
45 45
46 using cricket::ContentInfo; 46 using cricket::ContentInfo;
47 using cricket::ContentInfos; 47 using cricket::ContentInfos;
48 using cricket::MediaContentDescription; 48 using cricket::MediaContentDescription;
49 using cricket::SessionDescription; 49 using cricket::SessionDescription;
50 using cricket::TransportInfo; 50 using cricket::TransportInfo;
(...skipping 2008 matching lines...) Expand 10 before | Expand all | Expand 10 after
2059 } 2059 }
2060 2060
2061 void WebRtcSession::OnDtlsHandshakeError(rtc::SSLHandshakeError error) { 2061 void WebRtcSession::OnDtlsHandshakeError(rtc::SSLHandshakeError error) {
2062 if (metrics_observer_) { 2062 if (metrics_observer_) {
2063 metrics_observer_->IncrementEnumCounter( 2063 metrics_observer_->IncrementEnumCounter(
2064 webrtc::kEnumCounterDtlsHandshakeError, static_cast<int>(error), 2064 webrtc::kEnumCounterDtlsHandshakeError, static_cast<int>(error),
2065 static_cast<int>(rtc::SSLHandshakeError::MAX_VALUE)); 2065 static_cast<int>(rtc::SSLHandshakeError::MAX_VALUE));
2066 } 2066 }
2067 } 2067 }
2068 } // namespace webrtc 2068 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698