Bug 808002: add missing consts lost in main landing for unreliable data channels r=anant

This commit is contained in:
Randell Jesup 2012-11-07 14:07:22 -05:00
Родитель 9efa1b8f4d
Коммит 54a75d338b
2 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -450,11 +450,11 @@ PeerConnection.prototype = {
// Must determine the type where we still know if entries are undefined.
let type;
if (dict.maxRetransmitTime != undefined) {
type = Ci.IPeerConnection.DATACHANNEL_PARTIAL_RELIABLE_TIMED;
type = Ci.IPeerConnection.kDataChannelPartialReliableTimed;
} else if (dict.maxRetransmitNum != undefined) {
type = Ci.IPeerConnection.DATACHANNEL_PARTIAL_RELIABLE_REXMIT;
type = Ci.IPeerConnection.kDataChannelPartialReliableRexmit;
} else {
type = Ci.IPeerConnection.DATACHANNEL_RELIABLE;
type = Ci.IPeerConnection.kDataChannelReliable;
}
// Synchronous since it doesn't block.

Просмотреть файл

@ -69,6 +69,11 @@ interface IPeerConnection : nsISupports
const long kIceConnected = 3;
const long kIceFailed = 4;
/* for 'type' in DataChannelInit dictionary */
const unsigned short kDataChannelReliable = 0;
const unsigned short kDataChannelPartialReliableRexmit = 1;
const unsigned short kDataChannelPartialReliableTimed = 2;
/* Must be called first. Observer events will be dispatched on the thread provided */
void initialize(in IPeerConnectionObserver observer, in nsIDOMWindow window,
[optional] in nsIThread thread);