summaryrefslogtreecommitdiffstats
path: root/chrome/common/net
Commit message (Collapse)AuthorAgeFilesLines
* Add IssueAuthToken and unit tests to GaiaAuthenticator2.chron@chromium.org2010-07-065-81/+276
| | | | | | | | | | | GaiaAuthConsumer pure virtuals now optional since you can choose to not listen to ClientLogin subscriptions. Renamed ClientLoginError to a general GaiaAuthError. BUG=47093 TEST=Unit tests included Review URL: http://codereview.chromium.org/2834042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51678 0039d316-1c4b-4281-b951-d872f2087c98
* Split Gaia auth out into common/net. This is in preparation for creating a ↵chron@chromium.org2010-07-015-0/+757
| | | | | | | | | | | | | | | | | new Auth service which will issue auth tokens. I'd like to get it in and continue hacking on it so I can stop colliding so badly with merges. I've ported over the existing unit tests. Eventually gaia_authenticator.cc is going away. For the time being, i'll be number two. This is now done, with a pile of unit tests. I am trying to run the interactive tests but I was getting numerous unrelated failures and need to resync ChromiumOS to a working build. TEST=unit tests, manually log in, out, enter wrong password. BUG=47091 Review URL: http://codereview.chromium.org/2801015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51437 0039d316-1c4b-4281-b951-d872f2087c98
* Move chrome/common/net/notifier to jingle/notifier so that it can be used by ↵ajwong@chromium.org2010-06-3056-5906/+0
| | | | | | | | | | | remoting/remoting.gyp. BUG=none TEST=compiles Review URL: http://codereview.chromium.org/2885005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51216 0039d316-1c4b-4281-b951-d872f2087c98
* Rename Dns prefetching files to Predictor filesjar@chromium.org2010-06-271-3/+3
| | | | | | | | | | | | We are now doing more than DNS pre-resolution, and want to do TCP/IP pre-warming. This change uses the updated class names etc., and tries to use Predictor as the common element in most names. r=mbelshe Review URL: http://codereview.chromium.org/2866026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50951 0039d316-1c4b-4281-b951-d872f2087c98
* Massively simplify the NetworkChangeNotifier infrastructure:pkasting@chromium.org2010-06-2519-1335/+12
| | | | | | | | | | | | | | * Use a process-wide object (singleton pattern) * Create/destroy this object on the main thread, make it outlive all consumers * Make observer-related functions threadsafe As a result, the notifier can now be used by any thread (eliminating things like NetworkChangeObserverProxy and NetworkChangeNotifierProxy, and expanding its usefulness); its creation and inner workings are much simplified (eliminating implementation-specific classes); and it is simpler to access (eliminating things like NetworkChangeNotifierThread and a LOT of passing pointers around). BUG=none TEST=Unittests; network changes still trigger notifications Review URL: http://codereview.chromium.org/2802015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50895 0039d316-1c4b-4281-b951-d872f2087c98
* Do speculative preconnection based on network traffic (not just DNS)jar@chromium.org2010-06-231-0/+6
| | | | | | | | | | | | This rev also handles the triple of scheme/host/port for recording both referrers and speculative connections, so that we can soon support SSL warming as well as "mere" TCP/IP preconnection. r=mbelshe Review URL: http://codereview.chromium.org/2563004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50563 0039d316-1c4b-4281-b951-d872f2087c98
* Implemented initial version of server-issued notification client.akalin@chromium.org2010-06-232-23/+29
| | | | | | | | | | | | | | | | Added NOTIFICATION_SERVER notification method (use --sync-notification-method=server to turn on). BUG=34647 TEST=manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=50479 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=50550 Review URL: http://codereview.chromium.org/2827014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50560 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 50550 - Implemented initial version of server-issued notification client.akalin@chromium.org2010-06-232-29/+23
| | | | | | | | | | | | | | | | | Added NOTIFICATION_SERVER notification method (use --sync-notification-method=server to turn on). BUG=34647 TEST=manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=50479 Review URL: http://codereview.chromium.org/2827014 TBR=akalin@chromium.org Review URL: http://codereview.chromium.org/2860015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50557 0039d316-1c4b-4281-b951-d872f2087c98
* Implemented initial version of server-issued notification client.akalin@chromium.org2010-06-232-23/+29
| | | | | | | | | | | | | | Added NOTIFICATION_SERVER notification method (use --sync-notification-method=server to turn on). BUG=34647 TEST=manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=50479 Review URL: http://codereview.chromium.org/2827014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50550 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 50479 - Implemented initial version of server-issued notification client.akalin@chromium.org2010-06-222-29/+23
| | | | | | | | | | | | | | | Added NOTIFICATION_SERVER notification method (use --sync-notification-method=server to turn on). BUG=34647 TEST=manually Review URL: http://codereview.chromium.org/2827014 TBR=akalin@chromium.org Review URL: http://codereview.chromium.org/2805023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50482 0039d316-1c4b-4281-b951-d872f2087c98
* Implemented initial version of server-issued notification client.akalin@chromium.org2010-06-222-23/+29
| | | | | | | | | | | | Added NOTIFICATION_SERVER notification method (use --sync-notification-method=server to turn on). BUG=34647 TEST=manually Review URL: http://codereview.chromium.org/2827014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50479 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Put functions in the same order in the .cc file as the .h file. ↵pkasting@chromium.org2010-06-171-22/+21
| | | | | | | | | | Remove an unneeded pair of braces. BUG=none TEST=none Review URL: http://codereview.chromium.org/2809021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50151 0039d316-1c4b-4281-b951-d872f2087c98
* Implement a TODO: Move "NonThreadSafe" inheritance from ↵pkasting@chromium.org2010-06-172-17/+12
| | | | | | | | | | | | NetworkChangeNotifier interface to implementations. Also add CalledOnValidThread() DCHECKs in as many places as possible. Some minor style changes. BUG=none TEST=none Review URL: http://codereview.chromium.org/2813019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50139 0039d316-1c4b-4281-b951-d872f2087c98
* Combined both constructors of TalkMediatorImpl into one.akalin@chromium.org2010-06-163-53/+49
| | | | | | | | | BUG=none TEST=manual, trybots Review URL: http://codereview.chromium.org/2835003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49891 0039d316-1c4b-4281-b951-d872f2087c98
* Add DISABLE_RUNNABLE_METHOD_REFCOUNT to make disabling refcounts in ↵ajwong@chromium.org2010-06-165-26/+6
| | | | | | | | | | | RunnableMethods easier. BUG=none TEST=none Review URL: http://codereview.chromium.org/2830006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49887 0039d316-1c4b-4281-b951-d872f2087c98
* Make the URLFetcher observe IO thread shutdown and auto-cancel its request, ↵pkasting@chromium.org2010-06-152-4/+17
| | | | | | | | | | if any. BUG=41547 TEST=none Review URL: http://codereview.chromium.org/2849003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49761 0039d316-1c4b-4281-b951-d872f2087c98
* Token-based authentication for chromoting.sergeyu@chromium.org2010-06-093-87/+138
| | | | | | | | | | | BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=49298 Review URL: http://codereview.chromium.org/2749004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49326 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 49298 - Broke compile - Token-based authentication for chromoting.rsesek@chromium.org2010-06-093-136/+87
| | | | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/2749004 TBR=sergeyu@chromium.org Review URL: http://codereview.chromium.org/2724010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49300 0039d316-1c4b-4281-b951-d872f2087c98
* Token-based authentication for chromoting.sergeyu@chromium.org2010-06-093-87/+136
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/2749004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49298 0039d316-1c4b-4281-b951-d872f2087c98
* Use DISALLOW_COPY_AND_ASSIGN instead of DISALLOW_EVIL_CONSTRUCTORS in chrome ↵tfarina@chromium.org2010-06-061-2/+2
| | | | | | | | | | | directory. BUG=None TEST=trybots Review URL: http://codereview.chromium.org/2657003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49024 0039d316-1c4b-4281-b951-d872f2087c98
* New libjingle integrated to chrome.sergeyu@chromium.org2010-06-0314-29/+35
| | | | | | | | | | | BUG=none TEST=Chrome Sync works Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=48798 Review URL: http://codereview.chromium.org/2255007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48811 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 48798 - New libjingle integrated to chrome.sergeyu@chromium.org2010-06-0314-35/+29
| | | | | | | | | | | BUG=none TEST=Chrome Sync works Review URL: http://codereview.chromium.org/2255007 TBR=sergeyu@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48800 0039d316-1c4b-4281-b951-d872f2087c98
* New libjingle integrated to chrome.sergeyu@chromium.org2010-06-0314-29/+35
| | | | | | | | | BUG=none TEST=Chrome Sync works Review URL: http://codereview.chromium.org/2255007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48798 0039d316-1c4b-4281-b951-d872f2087c98
* Refactored MediatorThread to use Chrome threads primarily. This is in ↵akalin@chromium.org2010-06-026-248/+272
| | | | | | | | | | | | | preparation for using Chrome sockets. Made TalkMediator explicitly non-thread-safe. BUG=45612 TEST=manual testing of notifications Review URL: http://codereview.chromium.org/2471006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48791 0039d316-1c4b-4281-b951-d872f2087c98
* Removed non-working proxy auto-detect code.akalin@chromium.org2010-06-012-38/+2
| | | | | | | | | | | Removed now-unused SignalThreadTask class. BUG=none TEST=unittests Review URL: http://codereview.chromium.org/2436004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48676 0039d316-1c4b-4281-b951-d872f2087c98
* Converted MediatorThread to use a delegate instead of sigslots.akalin@chromium.org2010-06-017-195/+179
| | | | | | | | | | | Simplified handling of MediatorThread events and fixed locking. BUG=none TEST=unittests + manual testing of notifications Review URL: http://codereview.chromium.org/2260009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48659 0039d316-1c4b-4281-b951-d872f2087c98
* Converted TalkMediator to use a delegate instead of a channelakalin@chromium.org2010-06-015-133/+123
| | | | | | | | | | | Simplified handling of TalkMediator events. BUG=none TEST=unittests + manual testing of notifications Review URL: http://codereview.chromium.org/2232004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48652 0039d316-1c4b-4281-b951-d872f2087c98
* Remove signin and persist from gaia_authenticator. This fixes an issue where ↵chron@chromium.org2010-05-284-101/+26
| | | | | | | | | | | Chromium OS did not persist sync cookies. TEST=included unit tests BUG=http://crosbug.com/2786 Review URL: http://codereview.chromium.org/2124020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48456 0039d316-1c4b-4281-b951-d872f2087c98
* Recombined buzz::PreXmppAuth and buzz::SaslHandler to be compatibleakalin@chromium.org2010-05-272-9/+38
| | | | | | | | | | | | | | with upstream libjingle again. Changed GaiaOnlySaslHandler to GaiaTokenPreXmppAuth to match libjingle changes. BUG=none TEST=made sure sync worked with an @google.com account. Review URL: http://codereview.chromium.org/2221004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48364 0039d316-1c4b-4281-b951-d872f2087c98
* Made Login and AutoReconnect use base/timer.h.akalin@chromium.org2010-05-2515-371/+151
| | | | | | | | | | | | | Rewrote TaskPump to use Chrome message loops. Removed now-unused notifier code. BUG=none TEST=manual Review URL: http://codereview.chromium.org/2067021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48119 0039d316-1c4b-4281-b951-d872f2087c98
* Removed now-erroneous DCHECK in login.cc (made obsolete by 47344).akalin@chromium.org2010-05-241-8/+10
| | | | | | | | | | | | Fixed CheckConnection() to not assume that the alive status toggles every time it is called. BUG=44894 TEST=manual Review URL: http://codereview.chromium.org/2144005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48088 0039d316-1c4b-4281-b951-d872f2087c98
* Use net::HostResolver instead of AsyncDnsLookup.akalin@chromium.org2010-05-2013-338/+157
| | | | | | | | | | | BUG=none TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=47815 Review URL: http://codereview.chromium.org/2092008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47820 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 47815 - Use net::HostResolver instead of AsyncDnsLookup.akalin@chromium.org2010-05-2013-157/+338
| | | | | | | | | | | | BUG=none TEST=manual Review URL: http://codereview.chromium.org/2092008 TBR=akalin@chromium.org Review URL: http://codereview.chromium.org/2078023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47816 0039d316-1c4b-4281-b951-d872f2087c98
* Use net::HostResolver instead of AsyncDnsLookup.akalin@chromium.org2010-05-2013-338/+157
| | | | | | | | | BUG=none TEST=manual Review URL: http://codereview.chromium.org/2092008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47815 0039d316-1c4b-4281-b951-d872f2087c98
* Removed tons of unused code in chrome/common/net/notifier.akalin@chromium.org2010-05-2014-1358/+0
| | | | | | | | | BUG=none TEST=trybots Review URL: http://codereview.chromium.org/2076008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47774 0039d316-1c4b-4281-b951-d872f2087c98
* Changed some asserts into DCHECKs.akalin@chromium.org2010-05-203-9/+10
| | | | | | | | | BUG=none TEST=trybots Review URL: http://codereview.chromium.org/2136016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47773 0039d316-1c4b-4281-b951-d872f2087c98
* Removed unused fastalloc.h file.akalin@chromium.org2010-05-181-59/+0
| | | | | | | | | BUG=none TEST=trybots Review URL: http://codereview.chromium.org/2112005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47571 0039d316-1c4b-4281-b951-d872f2087c98
* Replaced NetworkStatusDetector with use of NetworkChangeNotifierakalin@chromium.org2010-05-1519-1220/+111
| | | | | | | | | | | | | | | from net/. Removed NetworkStatusDetector files and related. Cleaned up some test-related code. BUG=19784 TEST=manually Review URL: http://codereview.chromium.org/1451001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47344 0039d316-1c4b-4281-b951-d872f2087c98
* Changed used of ASSERT() to DCHECK().akalin@chromium.org2010-05-1413-48/+64
| | | | | | | | | | | | | Removed dead code. Cleaned up some tests. BUG=none TEST=trybots Review URL: http://codereview.chromium.org/2128001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47315 0039d316-1c4b-4281-b951-d872f2087c98
* Removed non-thread-safe QName ad-hoc interning.akalin@chromium.org2010-05-135-21/+21
| | | | | | | | | BUG=43467 TEST=made sure sync_integration_tests don't have any more ~QName crashes Review URL: http://codereview.chromium.org/2012014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47109 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed destruction race bug in FakeNetworkChangeNotifierThread.akalin@chromium.org2010-05-113-10/+60
| | | | | | | | | | | Added unit tests for the above bug. BUG=none TEST=unit tests Review URL: http://codereview.chromium.org/2036010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46953 0039d316-1c4b-4281-b951-d872f2087c98
* TTF: Re-enable URLFetcherHeadersTest.Headers, which was disabled without anyjhawkins@chromium.org2010-05-101-1/+1
| | | | | | | | | | | | | context or associated bug reports. Will keep an eye on this to get more info once the test runs through the bots. TBR=vandebo BUG=none TEST=none Review URL: http://codereview.chromium.org/2049005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46843 0039d316-1c4b-4281-b951-d872f2087c98
* Pass HttpRequestHeaders to URLRequest::SetExtraRequestHeaders().willchan@chromium.org2010-05-071-7/+7
| | | | | | | | BUG=22588 Review URL: http://codereview.chromium.org/1998008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46752 0039d316-1c4b-4281-b951-d872f2087c98
* Moved URLFetcher and related classes to chrome/common/net.sanjeevr@chromium.org2010-05-079-0/+1682
| | | | | | | | BUG=None TEST=Build and Unittests Review URL: http://codereview.chromium.org/1995008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46739 0039d316-1c4b-4281-b951-d872f2087c98
* Moved GaiaAuthenticator from chrome/browser/sync/engine/net to ↵sanjeevr@chromium.org2010-05-075-0/+819
| | | | | | | | | | | chrome/common/net/gaia. BUG=None TEST=None, no functional change. Review URL: http://codereview.chromium.org/1998004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46654 0039d316-1c4b-4281-b951-d872f2087c98
* Moved everything in browser/sync/net to common/net.akalin@chromium.org2010-05-0615-52/+1263
| | | | | | | | | | | | | This is so it can be used by both common/net/notifier and browser/sync. Removed unused and rotted unittest file. BUG=42606 TEST=trybots Review URL: http://codereview.chromium.org/2022001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46634 0039d316-1c4b-4281-b951-d872f2087c98
* Moved XMPP notifier library from chrome/browser/sync to chrome/common/net.sanjeevr@chromium.org2010-05-0481-0/+8800
| | | | | | | | | BUG=None TEST=No functional change Review URL: http://codereview.chromium.org/1956001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46413 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the fallback Mozilla code for parsing FTP LIST response.phajdan.jr@chromium.org2010-01-201-0/+4
| | | | | | | | | | | | | | | | | | The new parser seems to be compatible enough to do that. The Mozilla code was very helpful in the process of developing the new parser. Also add UI encouraging users to submit bug reports when we can't parse the listings, and an option to see the raw data sent by the server. This should allow us to fix remaining compatibility problems with very rare listing types or variations. When ?raw is found at the end of an FTP url and it is a directory listing, the parsing logic is bypassed and the data is displayed as-is with text/plain MIME type. TEST=none BUG=25520 Review URL: http://codereview.chromium.org/549053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36632 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes almost all of the rest of lint errors in the chrome/ directory (minus ↵erg@google.com2009-11-132-7/+6
| | | | | | | | the really hard ones which will need actual review instead of rubber-stamping.) Review URL: http://codereview.chromium.org/386026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31932 0039d316-1c4b-4281-b951-d872f2087c98
* WebSocket support in chromium.ukai@chromium.org2009-10-291-0/+14
| | | | | | | | | | | Run with --enable-web-sockets enables WebSocket features. BUG=12497 TEST=none Review URL: http://codereview.chromium.org/292044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30440 0039d316-1c4b-4281-b951-d872f2087c98