summaryrefslogtreecommitdiffstats
path: root/jingle/glue
Commit message (Collapse)AuthorAgeFilesLines
* jingle: Use base::MessageLoop.xhwang@chromium.org2013-04-2715-51/+51
| | | | | | | | | BUG=236029 R=ajwong@chromium.org Review URL: https://chromiumcodereview.appspot.com/14307021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196960 0039d316-1c4b-4281-b951-d872f2087c98
* jingle: Remove use of ALLOW_THIS_IN_INITIALIZER_LIST.scherkus@chromium.org2013-04-276-12/+11
| | | | | | | | | | It's no longer providing value as the MSVC warning is disabled during compilation. Refer to bug for details. BUG=234765 Review URL: https://chromiumcodereview.appspot.com/14297024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196921 0039d316-1c4b-4281-b951-d872f2087c98
* Update the remaining include paths of base/string_piece.h to its new location.tfarina@chromium.org2013-04-171-1/+1
| | | | | | | | | | | string_piece.h was moved into base/strings/ in r191206 - https://chromiumcodereview.appspot.com/12982018/ TBR=brettw@chromium.org Review URL: https://codereview.chromium.org/14272007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194693 0039d316-1c4b-4281-b951-d872f2087c98
* Finish scoped_array<T> to scoped_ptr<T[]> conversion on Linux.dcheng@chromium.org2013-04-091-1/+1
| | | | | | | | | | | There are only a few instances left in the Linux build, so lumping them all into one patch. BUG=171111 Review URL: https://codereview.chromium.org/13916003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193134 0039d316-1c4b-4281-b951-d872f2087c98
* Rewrite std::string("") to std::string(), Linux edition.dcheng@chromium.org2013-04-091-2/+1
| | | | | | | | | | | | | | | | | | | This patch was generated by running the empty_string clang tool across the Chromium Linux compilation database. Implicitly or explicitly constructing std::string() with a "" argument is inefficient as the caller needs to emit extra instructions to pass an argument, and the constructor needlessly copies a byte into internal storage. Rewriting these instances to simply call the default constructor appears to save ~14-18 kilobytes on an optimized release build. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193020 Review URL: https://codereview.chromium.org/13145003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193040 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Rewrite std::string("") to std::string(), Linux edition."dcheng@chromium.org2013-04-091-1/+2
| | | | | | | | | | | | | | This reverts commit e59558b78e8c6a1b0bd916a724724b638c3c91b6. Revert "Fix build after r193020." This reverts commit 558a35897f6b3ffbcaefde927c1f150b815d140a. Revert "Really fix build after r193020." This reverts commit e3748a79b523a8d365d4a33ef986eebb4186fa78. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193030 0039d316-1c4b-4281-b951-d872f2087c98
* Rewrite std::string("") to std::string(), Linux edition.dcheng@chromium.org2013-04-091-2/+1
| | | | | | | | | | | | | | | | | This patch was generated by running the empty_string clang tool across the Chromium Linux compilation database. Implicitly or explicitly constructing std::string() with a "" argument is inefficient as the caller needs to emit extra instructions to pass an argument, and the constructor needlessly copies a byte into internal storage. Rewriting these instances to simply call the default constructor appears to save ~14-18 kilobytes on an optimized release build. BUG=none Review URL: https://codereview.chromium.org/13145003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193020 0039d316-1c4b-4281-b951-d872f2087c98
* Move MessageLoop to base namespace.brettw@chromium.org2013-03-312-2/+6
| | | | | | | | | | This adds a "using" to the header to avoid having to update everything at once. However, all forward declares and the locations that use the forward declares need to be updated (since they don't see the using in message_loop.h). BUG= Review URL: https://codereview.chromium.org/13243003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191566 0039d316-1c4b-4281-b951-d872f2087c98
* Remove experimental code to pick the "warmest" socketmmenke@chromium.org2013-03-306-38/+0
| | | | | | | | | | | | | | | | | | (based on age and bytes received) in favor of older algorithm to pick the most recently used socket. Tests showed no real performance difference, so defaulting to the older, simpler, and more intuitive algorithm. This is basically a revert of https://codereview.chromium.org/7251004 TBR=sergeyu@chromium.org BUG=222090 Review URL: https://codereview.chromium.org/12886034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191507 0039d316-1c4b-4281-b951-d872f2087c98
* net: extract net/cert out of net/basephajdan.jr@chromium.org2013-03-291-1/+1
| | | | | | | | | | | | This introduces the following dependency of net/base on things outside: net/base/openssl_client_key_store.cc:#include "net/cert/x509_certificate.h" BUG=70818 Review URL: https://codereview.chromium.org/13006020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191450 0039d316-1c4b-4281-b951-d872f2087c98
* net: move host_resolver files from net/base to net/dnsphajdan.jr@chromium.org2013-03-211-1/+1
| | | | | | | | BUG=70818 Review URL: https://codereview.chromium.org/12518036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189485 0039d316-1c4b-4281-b951-d872f2087c98
* net: split net/ssl out of net/basephajdan.jr@chromium.org2013-03-144-5/+5
| | | | | | | | | | | | | | | Also moves transport_security_state files to net/http. This change also updates the callers. R=wtc TBR=rsleevi,lambroslambrou,tony BUG=70818 Review URL: https://codereview.chromium.org/12680003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188119 0039d316-1c4b-4281-b951-d872f2087c98
* Roll libjingle 291:294.ronghuawu@chromium.org2013-03-101-0/+1
| | | | | | | Fix a bug in content_browsertest (callWithoutMsidAndBundle). It works previously because there's another bug in sdp parser, so two wrongs make it right. Review URL: https://codereview.chromium.org/12717003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@187188 0039d316-1c4b-4281-b951-d872f2087c98
* More FilePath -> base::FilePath replacement.brettw@chromium.org2013-02-101-3/+3
| | | | | | Review URL: https://codereview.chromium.org/12225112 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181655 0039d316-1c4b-4281-b951-d872f2087c98
* Linux/ChromeOS Chromium style checker cleanup, jingle/ edition.rsleevi@chromium.org2013-02-062-6/+6
| | | | | | | | | | | Automated clean up of style checker errors that were missed due to the plugin not being executed on implementation files. BUG=115047 Review URL: https://chromiumcodereview.appspot.com/12220033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181044 0039d316-1c4b-4281-b951-d872f2087c98
* [net] Make IPEndPoint::GetFamily() return AddressFamily and add ↵szym@chromium.org2012-12-131-1/+1
| | | | | | | | | | | | GetSockAddrFamily() to be used when creating sockets. BUG=126002 TEST=browse anywhere Review URL: https://chromiumcodereview.appspot.com/11528012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172768 0039d316-1c4b-4281-b951-d872f2087c98
* jingle: Update the calls from RunAllPending() to RunUntilIdle().tfarina@chromium.org2012-11-304-43/+43
| | | | | | | | | | | | RunAllPending() is deprecated and we should switch to RunUntilIdle(). BUG=131220 TBR=ajwong@chromium.org Review URL: https://chromiumcodereview.appspot.com/11421172 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170464 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 167337 - Move url_request_test_util into net namespacejochen@chromium.org2012-11-131-4/+5
| | | | | | | | | | | | | | | This file contains some rather generic names like "TestDelegate". Move it to the net namespace to avoid collisions BUG=none TBR=wtc@chromium.org,darin@chromium.org Original Review URL: https://codereview.chromium.org/11369179 Review URL: https://chromiumcodereview.appspot.com/11365227 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167413 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 167337 - Move url_request_test_util into net namespacejochen@chromium.org2012-11-131-5/+4
| | | | | | | | | | | | | | | This file contains some rather generic names like "TestDelegate". Move it to the net namespace to avoid collisions BUG=none TBR=darin@chromium.org Review URL: https://codereview.chromium.org/11369179 TBR=jochen@chromium.org Review URL: https://codereview.chromium.org/11410066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167356 0039d316-1c4b-4281-b951-d872f2087c98
* Move url_request_test_util into net namespacejochen@chromium.org2012-11-131-4/+5
| | | | | | | | | | | | This file contains some rather generic names like "TestDelegate". Move it to the net namespace to avoid collisions BUG=none TBR=darin@chromium.org Review URL: https://codereview.chromium.org/11369179 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167337 0039d316-1c4b-4281-b951-d872f2087c98
* Use 'https://' prefix for proxy resolution in ProxyResolvingClientSocketakalin@chromium.org2012-11-082-7/+9
| | | | | | | | | | | This is because we use TLS on the socket for all current use cases. BUG=159579 Review URL: https://chromiumcodereview.appspot.com/11364152 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166780 0039d316-1c4b-4281-b951-d872f2087c98
* Remove static variables from HttpStreamFactory.szager@chromium.org2012-09-071-0/+17
| | | | | | | | | | | Refresh of issue 10389162. BUG=124900 Review URL: https://chromiumcodereview.appspot.com/10834215 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155485 0039d316-1c4b-4281-b951-d872f2087c98
* Fixing a crash when cancelling the same PacRequest twice.alexeypa@chromium.org2012-08-241-1/+3
| | | | | | | | | BUG=140096 Review URL: https://chromiumcodereview.appspot.com/10882038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153338 0039d316-1c4b-4281-b951-d872f2087c98
* Update JingleThreadWrapper to allow it to be created using task runner.sergeyu@chromium.org2012-08-144-41/+53
| | | | | | | | | | | | | Previously JingleThreadWrapper required a MessageLoop. In NaCl we don't have MessageLoop for the main plugin thread, but have a task runner. This CL allows to use JingleThreadWrapper on the main NaCl thread. BUG=134216 TBR=tommi@chromium.org Review URL: https://chromiumcodereview.appspot.com/10823224 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151458 0039d316-1c4b-4281-b951-d872f2087c98
* Give MockRead and MockWrite distinct types.yutak@chromium.org2012-07-271-5/+4
| | | | | | | | | | | | | | | | | | | Currently, MockRead and MockWrite are defined as the same type by using typedef. However, these types are different types and should not be used interchangably. This change gives MockRead and MockWrite distinct types by using templates so the compiler can cause an error when these types are used interchangably. Some misuses of MockRead and MockWrite were found, so these are fixed in this change, too. BUG=none R=mmenke@chromium.org,akalin@chromium.org Review URL: https://chromiumcodereview.appspot.com/10796085 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148782 0039d316-1c4b-4281-b951-d872f2087c98
* Enable cert pinning for XMPP connection made by XmppClientSocketFactory.sergeyu@chromium.org2012-07-251-0/+3
| | | | | | Review URL: https://chromiumcodereview.appspot.com/10807081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148251 0039d316-1c4b-4281-b951-d872f2087c98
* Move TaskPump class from jingle/notifier/base to jingle/gluesergeyu@chromium.org2012-07-245-0/+190
| | | | | | | | | BUG=137140 Review URL: https://chromiumcodereview.appspot.com/10809066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148142 0039d316-1c4b-4281-b951-d872f2087c98
* Move ChromeAsyncSocket to jingle/gluesergeyu@chromium.org2012-07-2412-0/+3320
| | | | | | | | | | | | ChromeAsyncSocket will be reused by chromoting for XMPP connections, moving it to jingle/glue. BUG=137140 Review URL: https://chromiumcodereview.appspot.com/10817013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148028 0039d316-1c4b-4281-b951-d872f2087c98
* Change SpdySession::GetSSLInfo to get the SSLInfo from the underlying socketrch@chromium.org2012-07-192-0/+12
| | | | | | | | | | | | | | | | even if the session is not "secure". This required refactoring StreamSocket to add WasNpnNegotiated() and GetSSLInfo() methods. This allows for a change to SpdySession::GetSSLInfo to accurately return the correct SSLInfo in the case of SPDY Proxy sessions. BUG=134690 TEST=\*DoNotUseSpdySessionIfCertDoesNotMatch\* Review URL: https://chromiumcodereview.appspot.com/10690122 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147479 0039d316-1c4b-4281-b951-d872f2087c98
* Rolling libjingle to 159.ronghuawu@chromium.org2012-07-141-2/+2
| | | | | | | | TEST=unit tests, webrtc pytest Review URL: https://chromiumcodereview.appspot.com/10689180 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146709 0039d316-1c4b-4281-b951-d872f2087c98
* Update libjingle to 153.ronghuawu@chromium.org2012-06-132-2/+5
| | | | | | | | Remove the overrides for thread and messagequeue. Review URL: https://chromiumcodereview.appspot.com/10534122 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141908 0039d316-1c4b-4281-b951-d872f2087c98
* fixed issue 128383 - replace GetPeerAddress(AddressList* address) with ↵zhaoqin@chromium.org2012-06-082-4/+4
| | | | | | | | | | | | | GetPeerAddress(IPEndPoint* address) R=szym@chromium.org BUG=128383 TEST=try bot Review URL: https://chromiumcodereview.appspot.com/10491007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141125 0039d316-1c4b-4281-b951-d872f2087c98
* Currently when talk_base::Thread exists, Clear(NULL) is called from its ↵mallinath@chromium.org2012-06-011-0/+1
| | | | | | | | | | | | destructor. But JingleThreadWrapper never gets a chance to remove pending messages from its queue. The change will call Clear() in its destructor. BUG=129321 Review URL: https://chromiumcodereview.appspot.com/10474002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140126 0039d316-1c4b-4281-b951-d872f2087c98
* Changes needed to roll libjingle r141 to chrome.sergeyu@chromium.org2012-05-222-2/+2
| | | | | | | | | 1. Setting ice username and password for P2PTransportChannel. 2. Updating XMPP Auth cookie with Auth Token Review URL: https://chromiumcodereview.appspot.com/10382003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138334 0039d316-1c4b-4281-b951-d872f2087c98
* RefCounted types should not have public destructors, sql/ and jingle/ editionrsleevi@chromium.org2012-04-282-3/+7
| | | | | | | | | | BUG=123295 TEST=none Review URL: http://codereview.chromium.org/10038045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134456 0039d316-1c4b-4281-b951-d872f2087c98
* Roll libjingle 132:135sergeyu@chromium.org2012-04-264-13/+14
| | | | | | Review URL: https://chromiumcodereview.appspot.com/10209008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134065 0039d316-1c4b-4281-b951-d872f2087c98
* Modify the base::JSONReader interface to take a set of options rather than a ↵rsesek@chromium.org2012-04-111-1/+2
| | | | | | | | | | | | | | boolean flag. This is just prep work for a large CL that rewrites the JSON parser. Splitting out this interface change will make it easier to review the other CL. BUG=121469 TEST=No functional change. Review URL: https://chromiumcodereview.appspot.com/9960077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131680 0039d316-1c4b-4281-b951-d872f2087c98
* Implement write-waits-for-send mode for PseudoTCP and enable it on the host ↵sergeyu@chromium.org2012-04-063-1/+124
| | | | | | | | | | | | | side. In the new send-confirmation mode the PseudoTCP layer will wait until data is sent to remote end before completing each write. This significantly improves latency for remoting on low bandwidth networks. Review URL: http://codereview.chromium.org/9791012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131083 0039d316-1c4b-4281-b951-d872f2087c98
* Add a new GetNegotiatedProtocol method to StreamSocket and implement in all ↵rch@chromium.org2012-04-032-1/+7
| | | | | | | | | | subclasses. BUG=120890 Review URL: https://chromiumcodereview.appspot.com/9958028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130388 0039d316-1c4b-4281-b951-d872f2087c98
* JSONWriter cleanup: integrate pretty print into write options.ericdingle@chromium.org2012-03-161-1/+1
| | | | | | | | | | | BUG= TEST=base_unittests TBR=abodenha@chromium.org,ajwong@chromium.org,chocobo@chromium.org,mnissler@chromium.org,akalin@chromium.org,brettw@chromium.org,arv@chromium.org Review URL: http://codereview.chromium.org/9590002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127080 0039d316-1c4b-4281-b951-d872f2087c98
* Roll libjingle to r124. Removed overrides for the ws2 fixes.ronghuawu@chromium.org2012-03-151-2/+3
| | | | | | | | | | Roll webrtc to 1888. BUG=115702,117252 TEST=apprtc.appspot.com on windows and linux Review URL: https://chromiumcodereview.appspot.com/9600066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126793 0039d316-1c4b-4281-b951-d872f2087c98
* Include the headers from the libjingle overrides.ronghuawu@chromium.org2012-03-061-2/+2
| | | | | | | | | BUG=116567 TEST=apprtc.appspot.com Review URL: http://codereview.chromium.org/9616021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125228 0039d316-1c4b-4281-b951-d872f2087c98
* Convert uses of int ms to TimeDelta in jingle and remoting.tedvessenes@gmail.com2012-03-052-7/+9
| | | | | | | | | | R=sergeyu@chromium.org BUG=108171 Review URL: http://codereview.chromium.org/9572038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124915 0039d316-1c4b-4281-b951-d872f2087c98
* * Remove the dependency to ws2_32.dll from talk_base::ThreadManager and ↵ronghuawu@chromium.org2012-03-012-2/+3
| | | | | | | | | | | | | | | talk_base::Thread. * Remove the denendency to the htons(), htonl(), ntohs(), ntohl(). * Implement inet_pton_v4 without using ws2. * Update the remoting_unittests. BUG=115501 TEST=Build and run webrtc test on Windows. Review URL: http://codereview.chromium.org/9455070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124434 0039d316-1c4b-4281-b951-d872f2087c98
* Delete Session and SessionManager object synchronously.sergeyu@chromium.org2012-02-241-12/+25
| | | | | | | | | | | | | | | JingleSession and JingleSessionManager were previously deleted asychronously, but it is not necessary anymore arter we've switched to PepperSession and PepperSessionManager. Instead changed LibjingleTransportFactory to delete libjingle objects asynchronously. Also fixed some bugs related that would cause crash when channel auth fails. BUG=115374 Review URL: http://codereview.chromium.org/9433027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123436 0039d316-1c4b-4281-b951-d872f2087c98
* Implement support for route change notifications in the Transport interface.sergeyu@chromium.org2012-02-211-1/+3
| | | | | | | | | BUG=110485 Review URL: http://codereview.chromium.org/9366001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122901 0039d316-1c4b-4281-b951-d872f2087c98
* Libjingle-based TransportFactory implementation.sergeyu@chromium.org2012-02-212-2/+16
| | | | | | | | | | | | The new TransportFactory will be used on the host side first and then later on the client side too when we ready to switch to Pepper UDP APIs. BUG=110485 Review URL: http://codereview.chromium.org/9365002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122877 0039d316-1c4b-4281-b951-d872f2087c98
* Convert int ms interfaces to TimeDelta in jingle/glue files.tedvessenes@gmail.com2012-02-011-1/+1
| | | | | | | | | | BUG=108171 Review URL: http://codereview.chromium.org/9159068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120026 0039d316-1c4b-4281-b951-d872f2087c98
* Roll libjingle to r108:ronghuawu@chromium.org2012-01-191-3/+4
| | | | | | | | | | | | | | | | | | * Add app/webrtc. * Add examples/peerconnection. * Bug fixes. Roll webrtc to 1311. BUG=110255 TEST=build and unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=118031 Review URL: http://codereview.chromium.org/9174012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118254 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 118031 - Roll libjingle to r108:ronghuawu@chromium.org2012-01-181-3/+3
| | | | | | | | | | | | | | | | | | | * Add app/webrtc. * Add examples/peerconnection. * Bug fixes. Roll webrtc to 1311. BUG=110255 TEST=build and unit tests Review URL: http://codereview.chromium.org/9174012 TBR=ronghuawu@chromium.org Review URL: https://chromiumcodereview.appspot.com/9253007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118058 0039d316-1c4b-4281-b951-d872f2087c98