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: webrtc/pc/mediasession.h

Issue 2514883002: Create //webrtc/api:libjingle_peerconnection_api + refactorings. (Closed)
Patch Set: Rebase Created 3 years, 11 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 | « webrtc/pc/mediacontroller.cc ('k') | webrtc/pc/mediasession.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 /* 1 /*
2 * Copyright 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2004 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 // Types and classes used in media session descriptions. 11 // Types and classes used in media session descriptions.
12 12
13 #ifndef WEBRTC_PC_MEDIASESSION_H_ 13 #ifndef WEBRTC_PC_MEDIASESSION_H_
14 #define WEBRTC_PC_MEDIASESSION_H_ 14 #define WEBRTC_PC_MEDIASESSION_H_
15 15
16 #include <algorithm> 16 #include <algorithm>
17 #include <map> 17 #include <map>
18 #include <string> 18 #include <string>
19 #include <vector> 19 #include <vector>
20 20
21 #include "webrtc/api/mediatypes.h"
21 #include "webrtc/media/base/codec.h" 22 #include "webrtc/media/base/codec.h"
22 #include "webrtc/media/base/cryptoparams.h" 23 #include "webrtc/media/base/cryptoparams.h"
23 #include "webrtc/media/base/mediachannel.h" 24 #include "webrtc/media/base/mediachannel.h"
24 #include "webrtc/media/base/mediaconstants.h" 25 #include "webrtc/media/base/mediaconstants.h"
25 #include "webrtc/media/base/mediaengine.h" // For DataChannelType 26 #include "webrtc/media/base/mediaengine.h" // For DataChannelType
26 #include "webrtc/media/base/streamparams.h" 27 #include "webrtc/media/base/streamparams.h"
27 #include "webrtc/p2p/base/sessiondescription.h" 28 #include "webrtc/p2p/base/sessiondescription.h"
28 #include "webrtc/p2p/base/jseptransport.h" 29 #include "webrtc/p2p/base/jseptransport.h"
29 #include "webrtc/p2p/base/transportdescriptionfactory.h" 30 #include "webrtc/p2p/base/transportdescriptionfactory.h"
30 31
31 namespace cricket { 32 namespace cricket {
32 33
33 class ChannelManager; 34 class ChannelManager;
34 typedef std::vector<AudioCodec> AudioCodecs; 35 typedef std::vector<AudioCodec> AudioCodecs;
35 typedef std::vector<VideoCodec> VideoCodecs; 36 typedef std::vector<VideoCodec> VideoCodecs;
36 typedef std::vector<DataCodec> DataCodecs; 37 typedef std::vector<DataCodec> DataCodecs;
37 typedef std::vector<CryptoParams> CryptoParamsVec; 38 typedef std::vector<CryptoParams> CryptoParamsVec;
38 typedef std::vector<webrtc::RtpExtension> RtpHeaderExtensions; 39 typedef std::vector<webrtc::RtpExtension> RtpHeaderExtensions;
39 40
40 enum MediaType {
41 MEDIA_TYPE_AUDIO,
42 MEDIA_TYPE_VIDEO,
43 MEDIA_TYPE_DATA
44 };
45
46 std::string MediaTypeToString(MediaType type);
47
48 enum MediaContentDirection { 41 enum MediaContentDirection {
49 MD_INACTIVE, 42 MD_INACTIVE,
50 MD_SENDONLY, 43 MD_SENDONLY,
51 MD_RECVONLY, 44 MD_RECVONLY,
52 MD_SENDRECV 45 MD_SENDRECV
53 }; 46 };
54 47
55 std::string MediaContentDirectionToString(MediaContentDirection direction); 48 std::string MediaContentDirectionToString(MediaContentDirection direction);
56 49
57 enum CryptoType { 50 enum CryptoType {
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 void GetSupportedVideoCryptoSuiteNames(const rtc::CryptoOptions& crypto_options, 602 void GetSupportedVideoCryptoSuiteNames(const rtc::CryptoOptions& crypto_options,
610 std::vector<std::string>* crypto_suite_names); 603 std::vector<std::string>* crypto_suite_names);
611 void GetSupportedDataCryptoSuiteNames(const rtc::CryptoOptions& crypto_options, 604 void GetSupportedDataCryptoSuiteNames(const rtc::CryptoOptions& crypto_options,
612 std::vector<std::string>* crypto_suite_names); 605 std::vector<std::string>* crypto_suite_names);
613 void GetDefaultSrtpCryptoSuiteNames(const rtc::CryptoOptions& crypto_options, 606 void GetDefaultSrtpCryptoSuiteNames(const rtc::CryptoOptions& crypto_options,
614 std::vector<std::string>* crypto_suite_names); 607 std::vector<std::string>* crypto_suite_names);
615 608
616 } // namespace cricket 609 } // namespace cricket
617 610
618 #endif // WEBRTC_PC_MEDIASESSION_H_ 611 #endif // WEBRTC_PC_MEDIASESSION_H_
OLDNEW
« no previous file with comments | « webrtc/pc/mediacontroller.cc ('k') | webrtc/pc/mediasession.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698