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:
parent
693e01c910
commit
fd630a50d2
@ -180,18 +180,31 @@ class PeerConnectionInterface : public rtc::RefCountInterface {
|
||||
typedef std::vector<IceServer> IceServers;
|
||||
|
||||
enum IceTransportsType {
|
||||
// TODO(pthatcher): Rename these kTransporTypeXXX, but update
|
||||
// Chromium at the same time.
|
||||
kNone,
|
||||
kRelay,
|
||||
kNoHost,
|
||||
kAll
|
||||
};
|
||||
|
||||
struct RTCConfiguration {
|
||||
IceTransportsType type;
|
||||
IceServers servers;
|
||||
// https://tools.ietf.org/html/draft-ietf-rtcweb-jsep-08#section-4.1.1
|
||||
enum BundlePolicy {
|
||||
kBundlePolicyBalanced,
|
||||
kBundlePolicyMaxBundle,
|
||||
kBundlePolicyMaxCompat
|
||||
};
|
||||
|
||||
RTCConfiguration() : type(kAll) {}
|
||||
explicit RTCConfiguration(IceTransportsType type) : type(type) {}
|
||||
struct RTCConfiguration {
|
||||
// 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 {
|
||||
|
Loading…
Reference in New Issue
Block a user