Commit Graph

52 Commits

Author SHA1 Message Date
Sylvestre Ledru
d938e24c4c Bug 1387002 - Replace .size() by .empty() when applicable in webrtc & mtransport r=jesup
MozReview-Commit-ID: 4DyftBRDEcU

--HG--
extra : rebase_source : 92b00b313060c0631e087216c6a30b421b58199d
2017-08-04 09:36:19 +02:00
Jan Keromnes
5257fdad8c Bug 1372977 - Use nullptr in /media and /dom/media (clang-tidy: modernize-use-nullptr). r=bwc 2017-06-28 15:38:00 -04:00
Michael Froman
da7254ecbf Bug 1339906 - pt 5 - add writable field to webidl for RTCIceCandidatePairStats and implement readable and writeable fields. r=drno,qdot
MozReview-Commit-ID: 6IODhX5mtnP

--HG--
extra : rebase_source : 30245be09b3b4bf057672cceb2d90d3393da035c
2017-06-06 17:33:02 -05:00
Michael Froman
1b76f106fd Bug 1339906 - pt 4 - add last sent and received timestamps to RTCIceCandidatePairStats. r=drno,qdot
MozReview-Commit-ID: GE23lS7qs9n

--HG--
extra : rebase_source : 5b39e4232258eca1807d3c962a2ed40c2724822b
2017-06-06 17:36:40 -05:00
Michael Froman
69f85fff44 Bug 1339906 - pt 1 - Add bytesSent and bytesReceived to RTCIceCandidatePairStats. r=drno,qdot
MozReview-Commit-ID: BQGPTUzRCB3

--HG--
extra : rebase_source : cd2abb970a07479c8425a13d12fc0fbaa487b00e
2017-06-06 16:30:56 -05:00
Sylvestre Ledru
24eaa6aa67 Bug 1337358 - Converts for(...; ...; ...) loops to use the new range-based loops in C++11 in media/mtransport/ r=bwc=jesup
MozReview-Commit-ID: 1ALL9rdhk24

--HG--
extra : rebase_source : c1899accbe87f6d226f8bbd5922b5899362f2e26
2017-02-13 14:42:00 +01:00
Byron Campen [:bwc]
9699169e39 Bug 1336507 - Part 3: Make sure mozLocalTransport is set to "tls" where appropriate. r=drno
MozReview-Commit-ID: EQCKgaFlA3q

--HG--
extra : rebase_source : 35a7a337f0e02e3d1543035314e2c129d3fac7e5
2017-02-03 16:48:02 -06:00
Nils Ohlmeier [:drno]
8f07aa3df1 Bug 1279146 - Clean up streams on shutdown. r=bwc
--HG--
extra : amend_source : db42e64bafec58bfef42a0fc7aad2cc1a761e137
2016-07-07 21:33:23 -04: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
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
Michael Froman
ac55e03a26 Bug 906986 - Rework fix for Bug 1241690 to avoid reliance on NrIceCtx inside NrIceMediaStream. r=bwc, r=drno
MozReview-Commit-ID: 1QCfbZUGdwM

--HG--
extra : rebase_source : e47546e226839410b65013c66eab53b0212e86fe
2016-03-31 09:24:17 -05:00
Byron Campen [:bwc]
736356238e Bug 1248637: Prune duplicate CANCELLED candidate pairs. r=drno
MozReview-Commit-ID: HeErN7xMxbQ

--HG--
extra : rebase_source : d8f355e6cc74c73c3e9bc100a2bb2b2603931e55
2016-03-01 10:47:14 -06: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
Nils Ohlmeier [:drno]
8bdb943452 Bug 1241690: reduce logging output for unconnected PCs. r=bwc
--HG--
extra : rebase_source : c2a1d73d3cb5f26df333c23dd94b35214f1d7721
2016-01-21 12:04:28 -08:00
Nils Ohlmeier [:drno]
b912f1ee3a Bug 1006809 - update triggered check behavior to RFC 5245. r+bwc r=mjf
--HG--
extra : transplant_source : q%BDT%0A%29%7B%7C%A0%92%B1%AE%81%AA%EE%94%9B%A0b3%A7
2015-11-27 23:50:14 -08: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
"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]
605cc781a8 Bug 1096795 - Put a=rtcp in SDP when gathering ends. r=mt
--HG--
extra : transplant_source : %1D%A4%CD6S%E6%87G%D7%E9%05%3D%C1%23%1A%E5%D5_%17C
2015-05-08 15:52:41 -07:00
Byron Campen [:bwc]
da2ef8fa74 Bug 1150966: Check whether |streams_| is null on stats methods in NrIceMediaStream. r=drno
--HG--
extra : rebase_source : 38f61e496d3b2ad7d7a0c72e141490deaa04b538
extra : source : ab93f4716296c85ce4953ee87be1bfa728a7cbb9
2015-04-03 11:13:44 -07: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
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
Byron Campen [:bwc]
cc70d5fa02 Bug 991037 - Part 2: Convert over to full trickle, which allows some simplification of code, and makes the following work much easier. r=mt 2014-08-07 10:20:26 -07:00
Byron Campen [:bwc]
1492d9d112 Bug 906990: Part 13. Get local/remote candidates separately, instead of grabbing them from candidate pairs (means we can get candidates before pairing happens). r=ekr 2013-11-13 13:49:33 -08:00
Ryan VanderMeulen
1b31e70c16 Backed out changesets f04c846c7492, 9bc5c5a8554e, and a4f2af4617da (bug 906990) for WebRTC mochitest failures.
CLOSED TREE
2014-01-13 10:53:40 -05:00
Byron Campen [:bwc]
33fcba8628 Bug 906990: Part 13. Get local/remote candidates separately, instead of grabbing them from candidate pairs (means we can get candidates before pairing happens). r=ekr 2013-11-13 13:49:33 -08:00
Byron Campen [:bwc]
eb15cf3a79 Bug 906990 - Part 11: Fix bug where the |selected| field on a candidate pair statistic was never set. r=ekr 2013-11-08 16:45:39 -08: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]
bd4d500bd5 Bug 906990: Part 9. Add correlator for ICE candidates. r=ekr 2013-10-25 16:47:14 -07:00
Byron Campen [:bwc]
9637af002c Bug 906990 - Part 6: Add a codeword field to NrIceCandidatePair so related logging can be pulled from RLogRingBuffer. Proof of concept in ice_unittest. r=ekr 2013-10-24 11:45:10 -07:00
Phil Ringnalda
3cfef7fef6 Back out 1cbb486b4fb7:8e3a17767287 (bug 906990) for leaks
CLOSED TREE
2013-10-28 15:30:11 -07:00
Byron Campen [:bwc]
a9ae2734ef Bug 906990 - Part 6: Add a codeword field to NrIceCandidatePair so related logging can be pulled from RLogRingBuffer. Proof of concept in ice_unittest. r=ekr 2013-10-24 11:45:10 -07:00
EKR
9ced8f191b Bug 842549 - Part 1: Generate trickle candidates from nICEr, with testing r=abr 2013-09-19 09:17:52 -07:00
Byron Campen [:bwc]
ebcccba584 Bug 906990 - Some basic testing of GetCandidatePairs r=ekr 2013-09-16 11:03:18 -07:00
Byron Campen [:bwc]
5e217066fa Bug 906990 - Adding a bulk getter for the current state of all ICE candidate pairs(plus a little testing). r=ekr 2013-09-09 10:19:01 -07:00
EKR
22ee95a0ae Bug 909179 - Add ability to disable ICE components r=abr 2013-08-25 19:35:21 -07:00
EKR
dfb750063f Bug 905150 - Don't cancel running ICE candidate pairs on nomination. r=abr 2013-08-31 07:35:38 -07:00
EKR
e1dec40e88 Backed out changeset c6907a76e925 for wrong commit message/bug #. 2013-08-31 07:43:08 -07:00
EKR
07afcdc07c Bug 904598 - Fix TURN long-term auth for Permissions Requests. r=abr 2013-08-31 07:35:38 -07:00
Suhas Nandakumar
8725b367e1 Bug 889615 - Add Granular logging to Mediapipeline. r=abr 2013-07-03 11:40:36 -07:00
Suhas Nandakumar
3621f5d9d0 Bug 867273 - Force PR_LOG in production builds. r=ekr 2013-05-20 19:11:01 -07:00
EKR
9bf70cc915 Bug 829757 - Clean up a=candidate stripping. r=abr 2013-01-19 15:18:28 -08:00
EKR
ccd851b350 Strip a= from trickle ICE candidates
Bug 829757 - Accept a=candidate ICE candidates (for now). r=ehugg
2013-01-17 09:18:06 -08:00
EKR
138736f24c Bug 822159 - Fix trickle ICE to start checking when new candidates come in. r=abr 2012-12-20 08:12:45 -08:00
EKR
fd7090483a Bug 792175 - Move PeerConnection operations onto main thread. r=jesup,derf,ehugg 2012-09-26 10:14:23 -07:00