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

649 Коммитов

Автор SHA1 Сообщение Дата
Randell Jesup 9c83bc8f96 Bug 1198458: Rollup of changes previously applied to media/webrtc/trunk/webrtc and fixes to those rs=jesup r=froyd,jib,bwc,jesup,gcp,sotaro,pkerr,pehrsons
Landing as one rolled-up patch to avoid breaking regression tests, and in
keeping with previous WebRTC imports.  Broken out parts that needed review
are on the bug.
2015-11-18 15:03:25 -05:00
Nils Ohlmeier [:drno] 2781200097 Bug 1208278 - improved STUN request timeout handling. r=bwc
--HG--
extra : rebase_source : 5db4b680b26eb5c4e9e69443602e3a0d8fbca247
2015-10-21 00:37:48 -07:00
Nils Ohlmeier [:drno] 8420475130 Bug 1220441 - Improve gather trickle ice unit tests. r=bwc r=mjf
--HG--
extra : transplant_source : %60%F7%F7%11%21%C1%10L%19u%C4M%11%40%E6%0F%D9%0AO%C5
2015-11-02 14:57:30 -08:00
Nils Ohlmeier [:drno] 944e3aaf48 Bug 1192403 - improve ICE TCP error message. r=mjf
--HG--
extra : transplant_source : -%25t%10%26%91%3EnY%1F%24%22%E2%94%24%B5%98%24c%16
2015-08-08 00:39:32 -07:00
Nils Ohlmeier [:drno] 1622f57a40 Bug 1216815 - fix memory leaks in test TCP STUN server. r=mjf
--HG--
extra : transplant_source : %23%AE%89%D1%AD%D2Sr%ED%0DKc%14%C3%3F%CC%CC%86%99%B8
2015-10-20 17:07:09 -07:00
Byron Campen [:bwc] 29e45beb5c Bug 1214279: Fix the same infinite loop from bug 957236 in a different place. r=drno 2015-10-22 16:40:38 -04:00
Mike Hommey 3de00b45dd Bug 1216444 - Remove GKMEDIAS_SHARED_LIBRARY. r=mshal
In bug 922912, we folded back gkmedias.dll info xul.dll, so in practice, there
is no default configuration left that exercises GKMEDIAS_SHARED_LIBRARY. And
sure enough, it's been broken for months in many different ways.

The gkmedias intermediate library is however kept for webrtc signaling tests.
2015-10-21 14:47:22 +09:00
Nicholas Nethercote 5b34a25af2 Bug 1216020 - Comment all ALLOW_COMPILER_WARNINGS lines. r=glandium.
DONTBUILD because it only changes comments.

This will hopefully prevent confusion like that in bug 1215903.

--HG--
extra : rebase_source : f0a601d77b5f42b4fbe090693234f934e3becc42
2015-10-19 18:05:20 -07: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
Nils Ohlmeier [:drno] eaaf58dece Bug 1215616: use base address for server rflx ICE candidates r=bwc 2015-10-17 11:34:01 -04:00
Byron Campen [:bwc] c80a5ed958 Bug 1208176 - Part 3: Be forgiving when we see prflx instead of host candidates in ice_unittest. r=drno
--HG--
extra : rebase_source : efe5b4e6c631a354d70ccbdd53427a282d254222
2015-10-06 15:09:45 -05:00
Byron Campen [:bwc] c513778651 Bug 1208176 - Part 2: Add a one-sided trickle test case to ice_unittest. r=drno
--HG--
extra : rebase_source : 24f6c0d825a2f0fc161197c0143e0808c6df67f2
2015-10-06 15:07:19 -05:00
Byron Campen [:bwc] eafccd90eb Bug 1208176 - Part 1: Add a couple of interface names. r=drno
--HG--
extra : rebase_source : 5c5f621394ed6b69893c58ec13c50ad71272608a
2015-10-06 15:06:36 -05:00
Byron Campen [:bwc] 4204f5899a Bug 1211389 - Make absolutely sure the relay->srflx pointer doesn't dangle. r=drno 2015-10-05 14:32:22 -05:00
Byron Campen [:bwc] 36ac94db5d Bug 1208096 - Handle various failure cases for TURN gathering better. r=drno
--HG--
extra : transplant_source : S%06%02%9F%60%C1%BEu%0A%7FB%FFwx%E0%93%C6%81%AD%19
2015-09-24 14:12:37 -05:00
Nils Ohlmeier [:drno] cdfa84b6c4 Bug 1207451 - removed framing from multi_tcp API. r=bwc
--HG--
extra : transplant_source : %F9%C6%02H%9B%97%C0%2C%AC%07%F4%F6%99%25%09%0D%B6%11b%A1
2015-09-19 12:12:15 -07:00
Nils Ohlmeier [:drno] 2a1411fa20 Bug 1206465 - removed ice_ctx from TestStunTcpServer. r=bwc
--HG--
extra : rebase_source : 88db248915f75421f881f293ed08963065a21b31
2015-09-18 23:25:38 -07:00
"Chih-Kai (Patrick) Wang" 028e16c84d Bug 950660: Part 4: Bridge TCPSocketChild to nr_socket r=bwc,jdm
Improve use of TCPSocket to track in-flight writes and suppress extra runnables
Adds lots of logging to nr_socket_buffered_stun.c
Rework mtransport code to use new TCPSocketChild interface
2015-01-05 15:49:50 +08:00
Nils Ohlmeier [:drno] 8e7eb5231c Bug 1205421 - fix DNS resolution of STUN server in ice_unittest. r=bwc
--HG--
extra : transplant_source : %CA%C8M%F6%8DrK%8D%113%C9%D512C%96%06%B8%86o
2015-09-16 13:42:57 -07: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
Byron Campen [:bwc] 0909da6121 Bug 1186590 - Part 1 - Enable interface prioritizer on all platforms. r=drno
--HG--
extra : rebase_source : 7a7b4d0481561a71aed0f3fa46aceaf297afefcc
2015-09-02 15:06:58 -05:00
Byron Campen [:bwc] feb3886659 Bug 1200763 - Remove hard-coded STUN IP address from ice_unittest, and do a DNS lookup instead. r=drno
--HG--
extra : transplant_source : %A0%B1z%00%7E%0B3n%C5%0A%15%5E%E5%15M%AD%CF%01n%D8
2015-09-04 10:21:12 -05:00
Michael Froman 4d7947ace5 Bug 1008792 - Check for valid pointer before using. r=bwc
--HG--
extra : transplant_source : %5E%08%E9.%109b%25e%97%0C%ED%5D%3F%2A1/%93%8A%B0
2015-09-01 11:52:43 -05:00
Byron Campen [:bwc] 379ef453c3 Bug 1201209 - Extend the timeout on socket readiness in test_nr_socket_unittest. r=drno
--HG--
extra : transplant_source : Y%C5%23%21%80%3B%AD%98%F2%23%C2pU%3E0%82%11%16%13%B2
2015-09-02 14:27:07 -05:00
Nils Ohlmeier [:drno] 03ad9c30eb Bug 1199766 - Disable ICE TCP SO gathering via user pref. r=bwc
--HG--
extra : transplant_source : %60%C8%88-%E0%F2%9F%3FMn%A8%7C%3Ah%94s%D2%99%2AX
2015-08-28 13:22:45 -07:00
Nicholas Nethercote f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Nils Ohlmeier [:drno] 26ca64d0a9 Bug 1142964 - Fix ICE tiebreaker on Windows. r=bwc
--HG--
extra : transplant_source : %7E%1E%92%E1%EC%C4_9%5B%7B%92xV%90%B6e%835%0D%23
2015-08-21 10:35:28 -07:00
Nils Ohlmeier [:drno] 2e1a4f0fea Bug 1194385 - Add new unit tests which demonstrate the current behavior. r=bwc
--HG--
extra : rebase_source : 9098108ce25f030714138f7be1e10c2285aa6eb1
2015-08-13 12:05:40 -07:00
Nils Ohlmeier [:drno] 8d4c72128b Bug 1194019 - New defaults for gather tests. r=bwc
--HG--
extra : rebase_source : 8c94cd28e969aa540cf103eca74fe50b8e1995dd
2015-08-14 14:52:06 -07:00
Nils Ohlmeier [:drno] fe493d428a Bug 1037618 - Relax candidate verification for TCP. r=bwc
--HG--
extra : rebase_source : 0cd791b27dde34b3a0bc6aeecf4c098211e7fbae
2015-08-10 16:31:12 -07:00
Randell Jesup efb47b11df Bug 1189040: add a whitelist for network interfaces to use with ICE/webrtc r=ekr 2015-08-12 19:45:36 -04: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 8e674f7ed3 Bug 1187775 - skip host and reflexive ICE candidates if relay-only. r=bwc
--HG--
extra : transplant_source : d%FBJ%BB%8B%BA%C8S%EE%C8%EB%8E%C3%9B%E9wA%8A%A8%86
2015-08-05 08:22:55 -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
Nils Ohlmeier [:drno] 453ddf7598 Bug 1189961 - added DNS AAAA convertion to nICEr transport addr. r=bwc
--HG--
extra : transplant_source : %10-Ak%B73AZ%D2%EA%CA%7B%98%40%EB%2A%EA%B7%0B%C2
2015-07-31 18:18:02 -07:00
Nils Ohlmeier [:drno] 928cc0e5e5 Bug 1190720 - only check IP version for STUN server IPs. r=bwc
--HG--
extra : transplant_source : %90%D2%EA%A8%91%18%2C%3A%87Fz%EF%09%DE%28%11%22%B5%94Q
2015-08-03 23:38:36 -07:00
Nils Ohlmeier [:drno] 62de0a691c Bug 1190615 - Skip non-UDP STUN servers for UDP sockets. r=bwc
CLOSED TREE

--HG--
extra : amend_source : c1d99bee2b35bd585e0b8905f14e3fd935e26e72
extra : transplant_source : %A8f%FC%B78D%823%F57%8B%91%CF%BF%C8%EC%84%DA4%B5
2015-08-03 16:26:20 -07:00
EKR 1fe487642d Bug 1178349 - Enable ice_unittests on desktop linux on CI. r=bwc
CLOSED TREE

--HG--
extra : amend_source : 03121b8bd5dce3777cd1dea62fbb260501831afc
extra : transplant_source : %C4V%D5%7E%17h%DE%9F%EB%95%C7%3B%A1%AE%E5%B6%DE%D1A%F6
2015-08-04 06:07:55 -07:00
Ryan VanderMeulen ff5375610d Backed out changeset 62561970f611 (bug 1178349) for Android crashes.
CLOSED TREE
2015-08-03 15:34:17 -04:00
EKR 80bdca1457 Bug 1178349 - Re-enable ice_unittest on Linux. r=drno
--HG--
extra : rebase_source : 5375d2e560a8952063dd1508a19552c22110c553
2015-08-01 07:22:12 -07:00
EKR 8ccbc8476f Bug 1177921 - Fix typo in STUN server name. r=drno
--HG--
extra : rebase_source : 89ba451be66a180fc9d024a261d5928b0b8b0ddd
2015-08-01 06:03:35 -07:00
Nils Ohlmeier [:drno] ec3ba81d1e Bug 1189198 - don't start STUN transactions with a protocol mis-match. r=mtseng
--HG--
extra : rebase_source : 9c51c1395dc99a19ae32ba79a54f8129f2166ae6
2015-07-31 11:23:26 -07:00
Makoto Kato 50e851b877 Bug 830801 - Part 2. Remove NOMINMAX define from moz.build. r=mshal 2015-08-03 10:07:09 +09:00
Nils Ohlmeier [:drno] 910b8d14f3 Bug 1187472 - only log UDP and TCP candidate gathering failures. r=bwc
--HG--
extra : rebase_source : 44b6b6f2c99c93695ee9711ffdb9caf05dddffe2
2015-07-24 14:01:11 -07:00
Jessica Jong 11d3d9a5a3 Bug 1167132 - Part 15: [NetworkManager] Move network information into a separate interface (NetworkInterfaceList). r=echen 2015-07-29 02:16:00 -04:00
Wes Kocher c835884065 Merge b2ginbound to central, a=merge 2015-07-24 13:47:05 -07:00
Nils Ohlmeier [:drno] 0012786ede Bug 1186339 - skip STUN/TURN servers with non-matching IP versions for TCP sockets. r=bwc
--HG--
extra : transplant_source : %3E%0E8%D9%D8%A4%03J%E42%AE%0C%3D%C0o%84%D7%40dl
2015-07-22 10:54:11 -07:00
Nils Ohlmeier [:drno] 05aa617f65 Bug 1185198 - use port 9 for TCP active candidates. r=bwc
--HG--
extra : transplant_source : %A1E%BEA%E6%60%E6%BE%12%CD%E6%04%F0%0C%DF%FB/%D2%28%80
2015-07-22 16:51:38 -07:00
Jessica Jong 1b76db0a26 Bug 1185802 - Part 2: support fota apn type (impl). r=hsinyi
--HG--
extra : commitid : AFRfgLTfJL1
2015-07-24 10:41:15 +08:00
Nils Ohlmeier [:drno] 812df4ccca Bug 1183985: Fixed WebRTC socket leak on Linux. r=bwc
--HG--
extra : commitid : 8QALoykXJwH
extra : rebase_source : a47d2c9fd1cd5a8f4f0c1abfadf9946d6a0562f1
2015-07-15 00:19:47 -07:00
Martin Thomson 83db5b6014 Bug 1184226 - Suppressing received packets when disabled, r=ekr
--HG--
extra : commitid : Ff35Nhfz0A1
2015-07-15 13:03:01 -07:00
Martin Thomson edcb9d055e Bug 1184226 - Disabling write on shutdown, r=ekr
--HG--
extra : commitid : 9u0Wd9Hh0Pu
2015-07-15 12:23:10 -07:00
Martin Thomson 3f8ac8f5ec Bug 1184226 - Updating transportlayerdtls logging levels, r=ekr
--HG--
extra : commitid : 60ANY3TKI6I
2015-07-15 12:23:10 -07:00
Birunthan Mohanathas a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Randell Jesup c87c478f4f Bug 1155059: Patch 1&2 - Convert Dispatch() and friends to already_AddRefed<> r=froydnj
Modify Dispatch IDL and code to deal with MSVC issues with overloaded templates r=froydnj
2015-07-09 23:21:46 -04:00
Martin Thomson 0401014a7f Bug 1172785 - Switch to ECDSA for MTI suites, r=ekr
--HG--
extra : commitid : BV7RgOzWYvf
extra : rebase_source : 8f74bf40b69029b1aeee1dbc708872a8d0488656
2015-07-06 10:40:04 -07:00
Martin Thomson 8fd488c3ef Bug 1172785 - Using RTCCertificate for WebRTC, r=ekr
--HG--
extra : commitid : DAyJQljGuGT
extra : rebase_source : 5a5e3baad12dcea9c3020d1716d41c409e3614f8
2015-07-06 10:40:04 -07:00
Byron Campen [:bwc] ecf78bfe78 Bug 1180311 - Add null check to ifa_addr. r=ekr
--HG--
extra : rebase_source : 61eb93695a2e4f478055515302b696d93dc68256
2015-07-03 14:10:16 -07:00
Juan Gomez 258ad59e3f Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07: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
Byron Campen [:bwc] 73bf6da5c9 Bug 980609: Do not assert that TURN TCP client contexts can't fail before attempting to allocate. r=ekr
--HG--
extra : rebase_source : 24bcbf50e03a19a5f09ef3e39a5c3c285c73322b
2014-03-07 15:29:09 -08:00
Byron Campen [:bwc] deed219594 Bug 971357: Log STUN responses at INFO instead of DEBUG. r=ekr
--HG--
extra : rebase_source : 58291fe1ea5c807eff63982dfab4fe8f37289030
2014-02-11 17:27:45 -08:00
Byron Campen [:bwc] 85e5c38741 Bug 1035428: Re-register writeable callback after partially servicing the send queue. r=drno 2014-07-07 14:25:23 -07:00
Nathan Froyd 974d8120f2 Bug 1161627 - part 2 - machine-convert TemporaryRef<T> to already_AddRefed<T>; r=ehsan
This conversion was done with the script:

  find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl' | \
    egrep -v 'cairo-win32-refptr.h|RefPtr.h|TestRefPtr.cpp' | \
    xargs sed -i -e 's/mozilla::TemporaryRef</already_AddRefed</g' \
                 -e 's/TemporaryRef</already_AddRefed</g'

Manual fixups were performed in the following instances:

- We handled mfbt/RefPtr.h manually so as to not convert TemporaryRef itself
  into already_AddRefed.

- The following files had explicit Move() calls added to make up for the lack
  of a copy constructor on already_AddRefed:

  dom/base/ImageEncoder.cpp
  dom/media/MediaTaskQueue.{h,cpp}
  dom/media/webaudio/PannerNode.cpp

- A redundant overload for MediaTaskQueue::Dispatch was deleted.

- A few manual fixups were required in mfbt/tests/TestRefPtr.cpp.

- Comments, using declarations, and forward declarations relating to
  TemporaryRef in dom/canvas/ and gfx/layers/ were changed to refer to
  already_AddRefed.
2015-06-17 10:00:52 -04:00
Nathan Froyd 085aa479e6 Bug 1175621 - make WrapRunnable* more efficient by utilizing moves in wrapper functions; r=ekr
Calls to WrapRunnable* copy their arguments already; we don't need to
copy them a second time when constructing the actual runnable.  In
addition to making things more efficient, this change also permits calls
to WrapRunnable to correctly handle objects that can only be moved, and
not copied.
2015-06-17 10:52:48 -04:00
Ryan VanderMeulen 5f5c327690 Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage. 2015-06-25 19:48:42 -04:00
Juan Gomez 702a59d135 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
--HG--
extra : rebase_source : 2ecbe6c1dd8a7ad8dc529b53349ad431cf1116c9
2015-06-24 14:11:00 -04:00
Nils Ohlmeier [:drno] 2e746f9a3a Bug 891551 - Part 11: fix a couple of issues from part 5. r=bwc 2015-06-18 23:02:38 -07: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
Nils Ohlmeier [:drno] 2ca1bfcdb2 Bug 891551 - Part 9: ignore initial socket connect failures during gathering. r=jesup 2015-06-18 23:02:25 -07:00
Peter Tatrai 72a87d1ac6 Bug 891551 - Part 8: Increase and make backlog value configurable. r=bwc 2014-06-12 07:25:00 -07:00
Byron Campen [:bwc] fedbd732d1 Bug 891551 - Part 7: Fix some intermittent failures in multi_tcp_socket_unittest. r=ekr 2014-06-09 15:04:42 -07:00
"Peter Tatrai ext:(%22) ae531cc1ad Bug 891551 - Part 6: Add log dumper to multi_tcp_socket_unittest. r=bwc 2014-06-03 08:44:59 +02: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
Nathan Froyd 2c0ec52c9a Bug 1162026 - move WrapRunnable &co over to variadic templates; r=ekr 2015-05-05 16:21:37 -04:00
Ted Mielczarek f29254de56 bug 1171120 - Fix mtransport+signalling to build on iOS. r=ekr
--HG--
extra : commitid : IzeeeUXXL9N
extra : rebase_source : 7f5d4d505327989abffde752b99bc62a497f6c77
2015-02-27 12:37:42 -05:00
Byron Campen [:bwc] dc3971b1c9 Bug 1035468: A NAT simulator based on NrSocket, and integrate into ice_unittest. r=ekr
--HG--
extra : rebase_source : 1ca1bb919526b3a4e091022e5aba04140efc9c90
extra : source : d354fa12177226f079090cc34277aaf1016e23fa
2015-06-10 15:27:12 -07:00
Randell Jesup e512e96a61 Bug 822129: don't alloc/free on every packet send in MediaPipeline r=bwc 2015-06-05 15:16:45 -04:00
Wes Kocher 8ab478043e Backed out changeset 2cb094627289 (bug 822129) for cppunittest orange 2015-06-05 14:16:56 -07:00
Randell Jesup b3489b0ab1 Bug 822129: don't alloc/free on every packet send in MediaPipeline r=bwc 2015-06-05 15:16:45 -04:00
Byron Campen [:bwc] e3ac40f6ed Bug 1169338 - Part 2: Extend ICE timeouts since mochitests are frequently run on systems that are performance constrained. r=mt
--HG--
extra : rebase_source : 3f19bb04da92360959430d0eaee1ba1e031a1cba
2015-05-22 11:11:37 -07:00
Eric Rahm 75c4bebb79 Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-03 15:25:57 -07:00
Eric Rahm b28e274194 Bug 1165515 - Part 10: Convert mtransport/logging.h to use PR_LOG levels. r=ekr
To fit into the new structure of mozilla logging we need to remove |ML_EMERG|
(it is not used) and as an interim step we need to switch from using raw
integers to the new PR_LOG levels.
2015-06-03 15:22:36 -07:00
Eric Rahm f50b813989 Bug 1165515 - Part 3: Convert PR_LOG_TEST to MOZ_LOG_TEST. r=froydnj 2015-06-03 15:22:28 -07:00
Carsten "Tomcat" Book 5471309381 Backed out 14 changesets (bug 1165515) for linux x64 e10s m2 test failures
Backed out changeset d68dcf2ef372 (bug 1165515)
Backed out changeset 7c3b45a47811 (bug 1165515)
Backed out changeset b668b617bef2 (bug 1165515)
Backed out changeset d0916e1283a2 (bug 1165515)
Backed out changeset ac4dc7489942 (bug 1165515)
Backed out changeset e9632ce8bc65 (bug 1165515)
Backed out changeset c16d215cc7e4 (bug 1165515)
Backed out changeset e4d474f3c51a (bug 1165515)
Backed out changeset d87680bf9f7c (bug 1165515)
Backed out changeset b3c0a45ba99e (bug 1165515)
Backed out changeset 9370fa197674 (bug 1165515)
Backed out changeset 50970d668ca1 (bug 1165515)
Backed out changeset ffa4eb6d24b9 (bug 1165515)
Backed out changeset 5fcf1203cc1d (bug 1165515)

--HG--
extra : rebase_source : 6fb850d063cbabe738f97f0380302153e3eae97a
2015-06-02 13:05:56 +02:00
Eric Rahm a9afd68cef Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-01 22:17:33 -07:00
Eric Rahm 39e425f2b7 Bug 1165515 - Part 10: Convert mtransport/logging.h to use PR_LOG levels. r=ekr
To fit into the new structure of mozilla logging we need to remove |ML_EMERG|
(it is not used) and as an interim step we need to switch from using raw
integers to the new PR_LOG levels.
2015-06-01 22:17:27 -07:00
Eric Rahm 141e0ff4a2 Bug 1165515 - Part 3: Convert PR_LOG_TEST to MOZ_LOG_TEST. r=froydnj 2015-06-01 22:17:19 -07:00
Wes Kocher 4e9f80ed2e Backed out 14 changesets (bug 1165515) for b2g mochitest-6 permafail CLOSED TREE
Backed out changeset 9b97e2aa2ed9 (bug 1165515)
Backed out changeset 150606c022a2 (bug 1165515)
Backed out changeset 4e875a488349 (bug 1165515)
Backed out changeset 467e7feeb546 (bug 1165515)
Backed out changeset d6b6cc373197 (bug 1165515)
Backed out changeset 0615265b593c (bug 1165515)
Backed out changeset fafd1dce9f08 (bug 1165515)
Backed out changeset d1df869245f9 (bug 1165515)
Backed out changeset 6876a7c63611 (bug 1165515)
Backed out changeset b7841c94a9a3 (bug 1165515)
Backed out changeset e5e3617f7c73 (bug 1165515)
Backed out changeset 39be3db95978 (bug 1165515)
Backed out changeset 0ec74176f8de (bug 1165515)
Backed out changeset 5b928dd10d71 (bug 1165515)
2015-06-01 17:57:58 -07:00
Eric Rahm f82c0e7caf Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-01 14:31:01 -07:00
Eric Rahm fff19cfe67 Bug 1165515 - Part 10: Convert mtransport/logging.h to use PR_LOG levels. r=ekr
To fit into the new structure of mozilla logging we need to remove |ML_EMERG|
(it is not used) and as an interim step we need to switch from using raw
integers to the new PR_LOG levels.
2015-06-01 14:31:00 -07:00
Eric Rahm dc090e3fe5 Bug 1165515 - Part 3: Convert PR_LOG_TEST to MOZ_LOG_TEST. r=froydnj 2015-06-01 14:31:00 -07:00
Randell Jesup 556337fa7c Bug 1109338: Part 2: Sharing UDPSocket between PNecko and PBackground r=bent 2015-05-29 10:14:14 -04:00
Randell Jesup 2b068009de Bug 1145354: Add SingletonThreadHolder for media/mtransport, and use it for mtransport IPC IO r=bwc
(also includes Bug 1109338: Part 4 r=bwc)
2015-05-29 10:13:33 -04:00
Mike Hommey ea7750bcb1 Bug 991983 - Define SOURCES as SourcePath. r=gps 2015-05-28 07:34:15 +09:00
Nathan Froyd 3e13ec018f Bug 1116905 - part 1 - remove dependence on implicit conversion from T* to TemporaryRef<T>, non-gfx changes; r=ehsan 2015-04-30 15:17:08 -04:00
Eric Rahm 3925a960aa Bug 1165515 - Part 1: Convert PR_LOG to MOZ_LOG. r=froydnj 2015-05-21 13:22:04 -07:00
Eric Rahm 4879ae86f4 Bug 1165518 - Part 2: Replace prlog.h with Logging.h. rs=froydnj 2015-05-19 11:15:34 -07:00
Felix Janda b019cb9ceb Bug 1152185 - Include port/generic/include also for mtransport/test and webrtc/signaling/test. r=ekr 2015-04-16 23:03:11 +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
Ehsan Akhgari 187795741d Bug 1157057 - Rewrite the handling of the nsITimer object in nrappkitTimerCallback; r=ekr
This patch makes the code use smart pointers more for dealing with
the nsITimer object, and it also avoid an unneeded AddRef and
Release pair.
2015-05-15 08:39:54 -04:00
Eric Rahm c2e607291d Bug 1164622 - Part 2: Wrap expensive calls in PR_LOG_TEST. r=ekr
Avoid using a stringstream if the given log level is not enabled.
2015-05-14 10:13:24 -07:00
Eric Rahm 4d6eca8317 Bug 1164622 - Part 1: Remove instances of #ifdef PR_LOGGING in media. r=froydnj
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-14 10:13:24 -07:00
Nils Ohlmeier [:drno] f12185dda1 Bug 1131779: 403 on permission request no longer invalidates the whole TURN relay. r=bwc 2015-05-08 11:59:52 -07:00
Karl Tomlinson 4c56402d38 Bug 1156621 - Don't assume --without-system-nspr. r=glandium
--HG--
extra : rebase_source : 1e1535572d91718d494884eab4119e772df84768
2015-04-21 18:06:33 +12:00
Byron Campen [:bwc] bd03e53251 Bug 1152137 - Part 2: Remove attributes that could not be initted properly instead of just freeing them. r=ekr
--HG--
extra : rebase_source : f6ca2ca980ae4c99d04baed3a3b7c1ab593ab31a
2015-04-08 16:18:39 -07:00
Byron Campen [:bwc] 0897a326eb Bug 1152137 - Part 1: Test case. r=ekr
--HG--
extra : rebase_source : aa6edff5a22fe8963715d79149bbb7e8ab19e694
2015-04-08 16:18:00 -07:00
EKR e4fc5c1d1c Bug 1151080: Rewrite NR_async_timer_set(0) to use direct dispatch. r=mt 2015-04-16 06:33:49 -07:00
Ryan VanderMeulen 23b2440390 Merge inbound to m-c. a=merge 2015-04-09 22:43:57 -04:00
Randall Barker 3263a9649b Bug 1101651 - Part 2: Enable WebRTC unit tests to be built using standalone WebRTC library. r=jesup
--HG--
extra : rebase_source : 97215946f8152cc8df425449b7052b0b365ab0e9
2015-04-09 09:15:00 -04:00
Dragana Damjanovic 9441d5b1f1 Bug 935838 - Add per app network traffic statistics to the UDP socket. r=sicking, r=mayhemer 2015-04-08 15:35:00 -04: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
Martin Thomson bc958b8830 Bug 996238 - ALPN support for WebRTC. r=ekr
--HG--
extra : transplant_source : %8A2%AA%AA%A2G%5C%FF%F6%B8%9C%AA%EDI%D9%CE%0Cs%C7%C7
2015-04-01 11:21:06 -07:00
Martin Thomson 9521b41410 Bug 996238 - Reformat gtest_utils.h. r=ekr
--HG--
extra : transplant_source : %60%1EVr%11%DB%8FaI%0A%F7%89%89%E6%BD%5B%84%A4%C6%99
2015-04-01 11:21:06 -07:00
Wes Kocher 44651f2a21 Backed out changeset d02fb013d5b7 (bug 1101651) 2015-04-02 13:42:29 -07:00
Wes Kocher ca3edf64de Backed out changeset 4c9711732a18 (bug 1101651) 2015-04-02 13:41:58 -07:00
Ehsan Akhgari c097cb436b Bug 1101651 - Mark the constructor of WebRTC's ScopedXPCOM as explicit
Landed on a CLOSED TREE in order to fix build bustage.
2015-04-02 16:32:11 -04:00
Randall Barker f71860b325 Bug 1101651 - Part 2, Enable WebRTC unit tests to be built using standalone WebRTC library r=jesup 2015-04-02 12:14:46 -07:00
Mike Hommey b077d9624d Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd 2015-04-01 13:51:45 +09:00
Byron Campen [:bwc] f195a6006a Bug 1149298 - Part 3: Fire end of candidates signal when StartGathering has nothing to do, and only call StartGathering once per offer/answer. r=drno
--HG--
extra : rebase_source : bad9c9e8b4d83225c2cdfaa807fd034f0b70e4c8
2015-03-30 16:32:51 -07:00
Byron Campen [:bwc] f940cd6f59 Bug 1149298 - Part 2: When destroying a candidate, ensure that the ice_ctx doesn't continue waiting for it to init. r=drno
--HG--
extra : rebase_source : a6b549f6f6bb133af4d39a4c8870b4eedab65c8a
2015-03-30 15:22:28 -07:00
Byron Campen [:bwc] 3ff500ee41 Bug 1149298 - Part 1: Test cases. r=drno
--HG--
extra : rebase_source : a29be5c74c4bddfe672159b0de12a61e8540b9df
2015-03-30 15:46:49 -07:00
EKR c73f1f40f5 Bug 1149240 - Write unit test for no digests. r=mt
--HG--
extra : rebase_source : 1ac334948a5c9499c1055370ad9d8ec5b7ec4432
2015-03-30 11:09:59 -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
Andrea Marchesini e6f385fb3d Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
Ehsan Akhgari 883849ee32 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Byron Campen [:bwc] bdab9279f3 Bug 1144933: Only check that remote candidate is loopback in TestLoopbackOnlySortOf. r=drno
--HG--
extra : rebase_source : 5aa4a534b2b3462b3a752b331db2e94bca877e0d
2015-03-18 16:34:50 -07:00
Byron Campen [:bwc] dbbe9296e9 Bug 1136252 - Part 1: Increase the number of instances of signaling_unittests that can be run in parallel. r=mt
--HG--
extra : rebase_source : cae8bff0a69665eaf2f5532293e8fa25d2178e23
2015-03-06 15:16:38 -08:00
Nils Ohlmeier [:drno] 88fadaa33d Bug 1136051 - component_insert_pair statrs checks only while we are still checking or haven't started pairing; r=bwc 2015-03-13 13:01:28 +01:00
Ryan VanderMeulen 91323d7a02 Backed out changeset a1d51e3fea63 (bug 935838) for B2G test_udpsocket.html timeouts.
CLOSED TREE

--HG--
extra : rebase_source : c38820b067a8faf405bfae7f5b5fb1089bd29bbc
2015-03-09 16:35:06 -04:00
Dragana Damjanovic a2a4213345 Bug 935838 - Add per app network traffic statistics to the UDP socket. r=sicking, r=mayhemer 2015-03-06 06:38:00 -05:00
EKR ca5799606e Bug 1139144 - Remove unused empty() definition from databuffer.h. r=mt
--HG--
extra : rebase_source : 4ea88ac04ef457fbbe3707e9e7d9af511e107688
2015-03-03 12:49:37 -08:00
Byron Campen [:bwc] 376726d034 Bug 1137932: Unwind the stack before starting the DTLS handshake. r=mt
--HG--
extra : rebase_source : c74e9a09e40c5a0ef9e00ca4dd326bc0ac8a4319
2015-02-27 15:17:23 -08:00
Martin Thomson 63701128a7 Bug 1115483 - Accept a match on any a=fingerprint value. r=ekr
--HG--
extra : rebase_source : aff16495f2be12cb4c06777df39b39ad32fc4e2e
2015-01-12 15:53:59 -08:00
Felix Janda 573c0c5d46 Bug 1130175 - nICEr: avoid sysctl.h include. r=bwc 2015-02-05 22:24:20 +01:00
Ehsan Akhgari 5bff0c0b03 Bug 1135753 - Mark some overridden virtual functions in WebRTC as MOZ_OVERRIDE; r=mt 2015-02-24 09:51:57 -05:00
Martin Thomson f11edd5123 Bug 1132813 - Enabling DTLS 1.2 for WebRTC, r=abr 2015-02-21 10:35:21 +13:00
Byron Campen [:bwc] 248d6e6d79 Bug 1017888 - Part 2: Testing for renegotiation. r=mt, r=drno
--HG--
extra : rebase_source : 7434ef35ea6294966220f20431941e0790c4221c
2015-02-10 10:17:03 -08: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
Martin Thomson 9ec922dcb3 Bug 1129791 - Check connection state rather than context state. r=ekr
--HG--
extra : transplant_source : %E5RDV%AF%3B%9D%7C%0F%10%9BF3%BB%29%06%8C%92%CF1
2015-02-05 17:18:57 +11:00
Nicholas Nethercote 242708cf72 Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
--HG--
extra : rebase_source : 488e401ff87e31a2074c4108c4df0572d9536667
2015-02-09 14:34:50 -08:00
Andrew McCreight d3826daa16 Back out Bug 1127201 (part 2) for various problems. 2015-02-06 15:04:32 -08:00
Nicholas Nethercote d34f0301b8 Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
--HG--
extra : rebase_source : 99182e70335d2b5ff95f8c528ae992d37294be3a
2015-02-04 20:05:36 -08:00
Nils Ohlmeier [:drno] 96d001f3d4 Bug 1120065 - unit test for TURN deallocation. r=bwc 2015-01-30 12:36:00 +01:00
Nils Ohlmeier [:drno] d6b2b87209 Bug 1120065 - release TURN resources on PC release. r=bwc 2015-01-27 01:18:00 +01:00
Nils Ohlmeier [:drno] ba151bbff5 Bug 1120065 - removed dead function nr_ice_candidate_destroy_cb. r=bwc 2015-01-23 13:47:00 +01:00
Byron Campen [:bwc] 98910d890f Bug 1099414: Ensure that NrSocketIpc is destroyed on STS, for consistency. r=ekr
--HG--
extra : rebase_source : e706370706dd0d9ec938798966c752f298a260bf
2014-12-23 16:22:02 -08:00
Byron Campen [:bwc] c66aed798c Bug 1099414: Use RefPtr logic instead of delete when nr_socket_local_create fails. r=ekr
--HG--
extra : rebase_source : 8be15d27527166b0dfb322b90e6f5244bcabcc95
2014-11-14 15:58:56 -08:00