Add BundlePolicy to RTCConfiguration. Don't change any behavior. Just make it possible to make progress in Chromium while we work on the behavior.
R=decurtis@webrtc.org, juberti@webrtc.org Review URL: https://webrtc-codereview.appspot.com/35759004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@8067 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -180,18 +180,31 @@ class PeerConnectionInterface : public rtc::RefCountInterface {
|
|||||||
typedef std::vector<IceServer> IceServers;
|
typedef std::vector<IceServer> IceServers;
|
||||||
|
|
||||||
enum IceTransportsType {
|
enum IceTransportsType {
|
||||||
|
// TODO(pthatcher): Rename these kTransporTypeXXX, but update
|
||||||
|
// Chromium at the same time.
|
||||||
kNone,
|
kNone,
|
||||||
kRelay,
|
kRelay,
|
||||||
kNoHost,
|
kNoHost,
|
||||||
kAll
|
kAll
|
||||||
};
|
};
|
||||||
|
|
||||||
struct RTCConfiguration {
|
// https://tools.ietf.org/html/draft-ietf-rtcweb-jsep-08#section-4.1.1
|
||||||
IceTransportsType type;
|
enum BundlePolicy {
|
||||||
IceServers servers;
|
kBundlePolicyBalanced,
|
||||||
|
kBundlePolicyMaxBundle,
|
||||||
|
kBundlePolicyMaxCompat
|
||||||
|
};
|
||||||
|
|
||||||
RTCConfiguration() : type(kAll) {}
|
struct RTCConfiguration {
|
||||||
explicit RTCConfiguration(IceTransportsType type) : type(type) {}
|
// TODO(pthatcher): Rename this ice_transport_type, but update
|
||||||
|
// Chromium at the same time.
|
||||||
|
IceTransportsType type;
|
||||||
|
// TODO(pthatcher): Rename this ice_servers, but update Chromium
|
||||||
|
// at the same time.
|
||||||
|
IceServers servers;
|
||||||
|
BundlePolicy bundle_policy;
|
||||||
|
|
||||||
|
RTCConfiguration() : type(kAll), bundle_policy(kBundlePolicyBalanced) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct RTCOfferAnswerOptions {
|
struct RTCOfferAnswerOptions {
|
||||||
|
Reference in New Issue
Block a user