Граф коммитов

53 Коммитов

Автор SHA1 Сообщение Дата
Byron Campen [:bwc] 7eafad9670 Bug 1297416 - Part 3: Add proxy-only mode and pref. r=drno
MozReview-Commit-ID: D1e9f3OkVsU

--HG--
extra : rebase_source : 65784601918246f47d51888f64d90a7a0c580bc9
2016-08-23 15:15:33 -05:00
Byron Campen [:bwc] 02cf82bf1a Bug 1297416 - Part 2: Disable default route mode if the user has granted camera or microphone permissions. r=drno
MozReview-Commit-ID: CFkVnEwUu2d

--HG--
extra : rebase_source : 7b712eace6c780a9ba20de9acd637d918c80f017
2016-08-04 10:55:20 -05:00
Byron Campen [:bwc] 9f8a1e86b6 Bug 1297416 - Part 1: Split out the hiding of host candidates, and default route mode. r=drno
MozReview-Commit-ID: IQtwAG35CM3

--HG--
extra : rebase_source : 3a206adac4d28688bc2ba0c22436d5bf3b68f113
2016-07-25 15:47:52 -05:00
Nils Ohlmeier [:drno] cd54d864ed Bug 1269486: allow setting ICE controller only once. r=bwc
MozReview-Commit-ID: AXyNyTZH1Jt

--HG--
extra : rebase_source : c8951fd5ada36d5c8ca25568e276fcb8cce0fbfc
2016-05-03 13:28:14 -07:00
Nils Ohlmeier [:drno] 696852ce71 Bug 929977: Add support for RFC 7675 ICE consent freshness. r=bwc,mt
MozReview-Commit-ID: HGRM10L0R3M

--HG--
extra : rebase_source : c50f8665230140096dd163bb5fbb13482a976c91
2016-04-26 13:11:25 -07:00
Michael Froman e2e642f12e Bug 906986 - Ice restart and tests. r=bwc, r=drno, r=smaug
MozReview-Commit-ID: AMEi7SZebBG
MozReview-Commit-ID: GS2EkamNGc7

--HG--
extra : rebase_source : f715bc837331028f6b5e22820c530e34ca5bedb8
2016-04-08 09:20:53 -05:00
Michael Froman 3afe176e86 Bug 906986 - Wrap NrIceCtx in NrIceCtxHandler which will allow us to handle ice restart. r=bwc, r=drno
MozReview-Commit-ID: 8MEfEBf2Pvi

--HG--
extra : rebase_source : ca23f499f155593e0601f918ab16ee38fae35f42
2016-03-31 14:12:19 -05:00
Nathan Froyd b938c57967 Bug 1251714 - use UniquePtr instead of ScopedDeletePtr in media/; r=jesup
UniquePtr is more standard than ScopedDeletePtr; using standard
constructs whenever possible is preferable.

This patch merits a couple explanations:

- Where it made sense, I tried to convert:

    T* foo() {
      UniquePtr<T> x = ...;
      ...
      return x.release();
    }

  into:

    UniquePtr<T> foo()

  with corresponding changes inside |foo|'s body.

- The attentive reader will note that:

    auto x = MakeUnique<T>(...);

  is used sometimes and:

    UniquePtr<T> x(new T(...));

  is used sometimes.  I would prefer to use the former, but was stymied
  in several places due to protected constructors.  (MakeUnique doesn't
  have access to those protected constructors, natch.)
2016-03-02 15:28:27 -05:00
Wes Kocher 6866309c97 Backed out 2 changesets (bug 1251714, bug 1251715) for gtest failures in media code
Backed out changeset 1bbd0cd10f76 (bug 1251714)
Backed out changeset 80b197c5608f (bug 1251715)

MozReview-Commit-ID: EHOtiKLS4Xr
2016-03-01 11:36:35 -08:00
Nathan Froyd 70d7688ee3 Bug 1251714 - use UniquePtr instead of ScopedDeletePtr in media/; r=jesup
UniquePtr is more standard than ScopedDeletePtr; using standard
constructs whenever possible is preferable.

This patch merits a couple explanations:

- Where it made sense, I tried to convert:

    T* foo() {
      UniquePtr<T> x = ...;
      ...
      return x.release();
    }

  into:

    UniquePtr<T> foo()

  with corresponding changes inside |foo|'s body.

- The attentive reader will note that:

    auto x = MakeUnique<T>(...);

  is used sometimes and:

    UniquePtr<T> x(new T(...));

  is used sometimes.  I would prefer to use the former, but was stymied
  in several places due to protected constructors.  (MakeUnique doesn't
  have access to those protected constructors, natch.)
2016-02-26 14:52:15 -05:00
Eric Rahm d5bd208a66 Bug 1239870 - Part 2: Split out NrIceCtx initialization. r=bwc
This splits NrIceCtx initialization into its own function so that the tests
can initialize without having to create a dummy instance.
2016-02-24 18:37:18 -08:00
Wes Kocher 72d9604d91 Backed out 8 changesets (bug 1251482, bug 1251494, bug 1251473, bug 1239870) for gtest failures
Backed out changeset f064a5efbb8c (bug 1251494)
Backed out changeset 9e33adec1aa6 (bug 1251482)
Backed out changeset ab0347657e25 (bug 1251473)
Backed out changeset 1d385d4f195d (bug 1239870)
Backed out changeset ceb3e1ee7dda (bug 1239870)
Backed out changeset 8574075bf42f (bug 1239870)
Backed out changeset ba077a3afbc7 (bug 1239870)
Backed out changeset eb99ab06414d (bug 1239870)

MozReview-Commit-ID: 7r9SEk4VGNU
2016-02-26 17:14:57 -08:00
Eric Rahm c93c9b8dbe Bug 1239870 - Part 2: Split out NrIceCtx initialization. r=bwc
This splits NrIceCtx initialization into its own function so that the tests
can initialize without having to create a dummy instance.
2016-02-24 18:37:18 -08:00
Byron Campen [:bwc] 139b740255 Bug 1231973 - Allow NAT simulator to be enabled with the pref system. r=drno
--HG--
extra : transplant_source : %DC%23%97%86a%7D-%C5%1BU%10%C4%13%5E%BE%D7%CA%9B%3B%8D
2015-12-16 14:26:02 -06:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nathan Froyd 583afa0965 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Martin Thomson f2d864c210 Bug 1125292 - Sending ALPN header field for WebRTC calls, r=bwc
--HG--
extra : commitid : 76muueM8Vfu
extra : amend_source : 0bdbcb10d875a100a91fd583bb863958a24c127c
2015-09-15 10:28:34 -07:00
Byron Campen [:bwc] c59ebacca3 Bug 1186590 - Part 2 - Move hard-coded interface priority list into nrinterfaceprioritizer, and simplify some functions. r=drno
--HG--
extra : rebase_source : 63cd39c3a1b721c78244064b32338643c7e0e436
2015-09-04 15:25:37 -05:00
EKR e92a0a38f4 Bug 1189041 - Add option to only gather addresses for default route. r=bwc 2015-08-12 10:53:15 -04:00
Jan-Ivar Bruaroey 3a173c04fa Bug 1187775 - Plumb RTCConfiguration.iceTransportPolicy down to NrIceCtx. r=smaug, r=bwc
--HG--
extra : transplant_source : %8D%E4%F6%CCY%D4M%9E8%21%2A%13Wz%88%D4d%02v4
2015-07-30 10:11:52 -04:00
Byron Campen [:bwc] 97d45626f1 Bug 797262 - IPV6 support for webrtc. r=drno
--HG--
rename : media/webrtc/trunk/webrtc/base/ifaddrs-android.cc => media/mtransport/third_party/nICEr/src/stun/ifaddrs-android.c
extra : rebase_source : a929d159e8e7b39a2bfe3d431395caa838f75a54
2015-04-22 15:02:50 -05:00
Nils Ohlmeier [:drno] ce7a04b4f0 Bug 891551 - Part 10: added user pref to turn of ICE TCP. r=mt 2015-06-18 23:02:33 -07:00
"Peter Tatrai ext:(%22) 6d354a80da Bug 891551 - Part 5: Add support for TCP ICE candidates. r=bwc,jesup 2014-04-23 10:15:25 +02:00
Byron Campen [:bwc] c24085b44b Bug 1146462: Close ICE transports when m-sections are disabled. r=drno
--HG--
extra : rebase_source : eee309eccf681f2ef606fb1e78ab6c04f59befd0
2015-03-23 16:56:08 -07:00
Byron Campen [:bwc] 1f815978b4 Bug 1017888 - Part 1: Renegotiation support. r=mt, r=smaug
--HG--
extra : rebase_source : df1c2962ee88f75c6ad676b9cd79978a87dafb65
extra : amend_source : c938904331323ff3565624795ac76d82502f43fb
2014-12-10 15:53:54 -08:00
f649bed22d Bug 949703 - Part 1: Use HTTP proxy for WebRTC TURN/TCP r=ekr
--HG--
extra : rebase_source : 607cd8e262fad408e605114ed0dabad249a10ec9
2015-01-21 16:26:00 -08:00
Wes Kocher eedd56c941 Backed out 2 changesets (bug 949703) for mochitest-e10s-3 orange
Backed out changeset 6f5a7adab265 (bug 949703)
Backed out changeset 7933aeabf6bd (bug 949703)
2015-01-21 17:15:02 -08:00
1901ea4c92 Bug 949703 - Part 1: Use HTTP proxy for WebRTC TURN/TCP r=ekr 2015-01-18 11:51:00 -08:00
Byron Campen [:bwc] 3af28ea884 Bug 1091242 - Part 6: Wiring the new JSEP handler code in. See https://github.com/unicorn-wg/gecko-dev/tree/multistream_rebase for more history. r=jesup, r=smaug 2014-11-19 16:16:29 -08:00
Phil Ringnalda 5fe54ea0fd Backed out 10 changesets (bug 1091242) for Android/b2g non-unified build bustage
CLOSED TREE

Backed out changeset 7f72b55c5de7 (bug 1091242)
Backed out changeset f1501aa24397 (bug 1091242)
Backed out changeset 7fde5994aee5 (bug 1091242)
Backed out changeset 59b415714087 (bug 1091242)
Backed out changeset dadb65fedc08 (bug 1091242)
Backed out changeset 21be81424e4e (bug 1091242)
Backed out changeset 498fb1dafba5 (bug 1091242)
Backed out changeset 8d0653eb85ab (bug 1091242)
Backed out changeset c82d484e135a (bug 1091242)
Backed out changeset 3e0c8932f1b1 (bug 1091242)
2014-12-08 20:53:07 -08:00
Byron Campen [:bwc] bb404e8254 Bug 1091242 - Part 6: Wiring the new JSEP handler code in. See https://github.com/unicorn-wg/gecko-dev/tree/multistream_rebase for more history. r=jesup, r=smaug 2014-11-19 16:16:29 -08:00
EKR fcfb4e0b1e Bug 1027350 - Allow loopback addresses for ICE. r=bwc
--HG--
extra : rebase_source : 525e2d8455beff596c1ae13b4a8c4d062533a0df
2014-06-22 15:11:48 -07:00
Byron Campen [:bwc] 22545d9d7e Bug 1024028 - Part 2: Add an ice_checking callback that is fired when checking actually starts. r=drno 2014-08-06 11:34:55 -07:00
Ehsan Akhgari 9647357b1f Bug 1053792 - Fix some bad implicit constructors in the mtransport code; r=jesup 2014-08-15 17:41:29 -04:00
Benoit Jacob a9291b104e Bug 1027251 - Fix or whitelist dangerous public destructors in media/mtransport - r=abr 2014-06-20 07:08:24 -04:00
Anders Lund efc993ca04 Bug 942188 - Added parsing of ice-lite attribute and start ice checks as controlling if peer is ice-lite. r=abr 2014-05-16 01:32:00 -05:00
EKR b9c43f7c18 Bug 1012999: When STUN global rate limit is exceeded, record this in telemetry. r=ekr 2014-05-19 19:16:38 -07:00
EKR 32c6b4cfce Bug 970569 - Fix crasher introduced by bug 928930. r=bwc 2014-02-10 14:45:42 -08:00
Nathan Froyd 8e258e88c4 Bug 928930 - don't define std::string variables in nricectx.h; r=ekr 2014-01-27 11:02:51 -05:00
EKR b4adc04af8 Bug 906968 - Add support for TURN TCP. r=abr
--HG--
rename : media/mtransport/third_party/nICEr/src/stun/nr_socket_turn.h => media/mtransport/third_party/nICEr/src/stun/nr_socket_buffered_stun.h
2013-12-06 10:20:19 -08:00
Byron Campen [:bwc] 67f0c411ba Bug 935723. Part 1. Decouple ICE state with ICE gathering state r=ekr,abr,jesup 2013-11-13 14:53:30 -08:00
Jan-Ivar Bruaroey f3fa9857d3 Bug 928060: Parse ?transport=[udp|tcp] in TURN uri. r=ehsan 2013-10-18 18:14:21 -04:00
EKR 9ced8f191b Bug 842549 - Part 1: Generate trickle candidates from nICEr, with testing r=abr 2013-09-19 09:17:52 -07:00
Adam Roach [:abr] 766388dc2b Bug 860143: Check correct variable when setting host r=ekr 2013-04-10 13:37:50 -05:00
EKR 9b7964fb15 Bug 786235 - Rewrite TURN stack to match RFC 5766. r=abr 2013-04-06 17:58:58 -07:00
EKR 71019da9d6 Bug 844493. Remove NS_DISPATCH_SYNC from main thread. r=derf,abr 2013-03-03 23:10:30 -08:00
EKR 631c78c2a2 Bug 843644 - DNS resolution for STUN servers. r=abr 2013-02-21 08:52:30 -08:00
Nicholas Nethercote 420347d889 Bug 825105 - Fix two clang warnings in media/mtransport/. r=ekr.
--HG--
extra : rebase_source : 5a1aa4960f364f50f12c1cee1f0838202be6191d
2013-02-10 18:01:07 -08:00
EKR a9a1f3a5ed Bug 786236: Per-context configurable STUN servers. r=abr 2013-01-05 11:40:34 -08:00
EKR 0a06495cf6 Bug 817430: Set initial controlled/controlling values, based on inbound T/F. r=jesup 2012-12-02 13:49:56 -08:00