summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* Add requested documentation.abarth@chromium.org2011-05-061-0/+7
| | | | | | Review URL: http://codereview.chromium.org/6927074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84493 0039d316-1c4b-4281-b951-d872f2087c98
* net/url_request/url_request_test_util.h doesn't need to includewtc@chromium.org2011-05-062-1/+1
| | | | | | | | | | | | "net/test/test_server.h" because it doesn't use the TestServer type. R=eroman@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/6929003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84487 0039d316-1c4b-4281-b951-d872f2087c98
* Accept new WebSocket handshake format (hybi-04 and later).yutak@chromium.org2011-05-064-57/+553
| | | | | | | | | | | | | | | To update WebSocket protocol implementation in WebKit, WebSocketRequestHandshakeHandler and WebSocketResponseHandler need to be able to understand both old handshake (hybi-03 and prior, including hixie-76) and new handshake (hybi-04 and later). BUG=64470 TEST=net_unittests --gtest_filter="WebSocketHandshake*HandlerTest.*" Review URL: http://codereview.chromium.org/6823075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84427 0039d316-1c4b-4281-b951-d872f2087c98
* Implemented unit tests for ProxyService and fixed a bugbattre@chromium.org2011-05-063-2/+247
| | | | | | | | | BUG=81368 TEST=execute net_unittests --gtest_filter='ProxyServiceTest.*' Review URL: http://codereview.chromium.org/6932041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84422 0039d316-1c4b-4281-b951-d872f2087c98
* FTP: split the directory listing parser test and re-enable it on TSan botsphajdan.jr@chromium.org2011-05-062-142/+185
| | | | | | | | | | | | | | The test was disabled on TSan bots becuase it was taking too much time. This change converts one huge test which parses ~30 directory listings to ~30 separate test cases. This change also moves ToLower/ToUpper from ui/base/l10n_util to base/i18n/case_conversion so that they can be used in net/ftp. BUG=79022 Review URL: http://codereview.chromium.org/6905027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84413 0039d316-1c4b-4281-b951-d872f2087c98
* GetPeerAddress could be called without socket, added checkdpolukhin@chromium.org2011-05-061-0/+6
| | | | | | | | | | | From crash it is clear that GetPeerAddress was called with NULL socket. Perhaps it should never happen, I don't know this code. So I fixed obvious root of the crash but real issue can be deeper. BUG=chromium-os:14877 TEST=compile Review URL: http://codereview.chromium.org/6933027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84406 0039d316-1c4b-4281-b951-d872f2087c98
* net: Move ResponseCookies into the net namespace.tfarina@chromium.org2011-05-061-5/+5
| | | | | | | | | | | BUG=81612 TEST=None R=wtc@chromium.org,willchan@chromium.org Review URL: http://codereview.chromium.org/6932025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84375 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 84197 - Add one-time randomization support for FieldTrial, and the ↵joi@chromium.org2011-05-067-17/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | ability to disable field trials. I am going to have a need for both soon. Cleaning up some comments about empty trial names, adding static method TrialExists() and simplifying many call sites by using this method. While I'm in there and needing base/OWNERS approval, add an OWNERS file for base/metrics that adds jar@chromium.org as an owner for that directory. BUG=none TEST=base_unittests TBR=jam@chromium.org R=jar@chromium.org,phajdan.jr@chromium.org,mark@chromium.org,wtc@chromium.org Reason for revert: See http://crbug.com/81750 BUG=81750 TBR=joi@chromium.org Review URL: http://codereview.chromium.org/6931048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84373 0039d316-1c4b-4281-b951-d872f2087c98
* (harmless) Missed include from http://codereview.chromium.org/6930040/cevans@chromium.org2011-05-051-0/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84350 0039d316-1c4b-4281-b951-d872f2087c98
* Gchat data is mapped onto talkgadget.google.com so don't forget to HSTS it.cevans@chromium.org2011-05-052-0/+8
| | | | | | | (Note that talkgadget.google.com is pretty much a giant 302 to https already). Review URL: http://codereview.chromium.org/6928025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84348 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor to address URLRequestContext dependency added incevans@chromium.org2011-05-058-23/+33
| | | | | | | | | http://codereview.chromium.org/6873029/ BUG=81009 Review URL: http://codereview.chromium.org/6930040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84325 0039d316-1c4b-4281-b951-d872f2087c98
* Http Cache: make sure that if we cancel a request after all datarvargas@google.com2011-05-053-1/+55
| | | | | | | | | | has been read, we don't consider it a truncated resource. BUG=68298 TEST=net_unittests Review URL: http://codereview.chromium.org/6927004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84315 0039d316-1c4b-4281-b951-d872f2087c98
* Re-connect if Keep-Alive connection has been closed by the time we get ↵asanka@chromium.org2011-05-0513-121/+245
| | | | | | | | | | | around to reusing it. BUG=none TEST=net_unittests --gtest_filter=HttpNetworkTransactionTest.BasicAuthKeepAliveImpatientServer:*.BasicAuthKeepAliveNoBody:*.BasicAuthKeepAliveLargeBody && unit_tests --gtest_filter=*TransportClientSocketTest.IsConnected* Review URL: http://codereview.chromium.org/6902165 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84257 0039d316-1c4b-4281-b951-d872f2087c98
* Prefer IPv4 in the ConnectBackupJob to work around broken IPv6 networkswtc@chromium.org2011-05-058-54/+210
| | | | | | | | | | | | where connects take a long time to fail. R=eroman@chromium.org,mbelshe@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/6905080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84251 0039d316-1c4b-4281-b951-d872f2087c98
* net: add cloudsecurityalliance.org to HSTS preloaded list.agl@chromium.org2011-05-052-0/+8
| | | | | | | | | Requested by Kurt Seifried. TEST=none BUG=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84248 0039d316-1c4b-4281-b951-d872f2087c98
* Using DCHECK_NE/EQ/LE/GE/GT/LT() where possible. Updating logging in ↵kushi.p@gmail.com2011-05-0511-22/+26
| | | | | | | | | | | | | src/net/base/ Contributor: kushi.p@gmail.com BUG=58409 Review URL: http://codereview.chromium.org/6905059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84228 0039d316-1c4b-4281-b951-d872f2087c98
* Fix logic for handling reports of malformed bodies. To end up countingjoi@chromium.org2011-05-053-9/+23
| | | | | | | | | | | | | | | | | | | | one error, we need to count two when the malformed body is reported, against the one success reported based on the response code from what must have been a successful HTTP request. Updated a unit test that previously should have caught this but was making incorrect assumptions. BUG=81587 TEST=net_unittests Initially Committed: r84196 Reverted: r84200 Re-landed after fixing compile error. Review URL: http://codereview.chromium.org/6932013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84202 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 84196 - Fix logic for handling reports of malformed bodies. To end up ↵joi@chromium.org2011-05-053-22/+9
| | | | | | | | | | | | | | | | | | | | | counting one error, we need to count two when the malformed body is reported, against the one success reported based on the response code from what must have been a successful HTTP request. Updated a unit test that previously should have caught this but was making incorrect assumptions. BUG=81587 TEST=net_unittests Review URL: http://codereview.chromium.org/6932013 TBR=joi@chromium.org Review URL: http://codereview.chromium.org/6932029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84200 0039d316-1c4b-4281-b951-d872f2087c98
* Add one-time randomization support for FieldTrial, and the ability tojoi@chromium.org2011-05-057-26/+17
| | | | | | | | | | | | | | | | | | disable field trials. I am going to have a need for both soon. Cleaning up some comments about empty trial names, adding static method TrialExists() and simplifying many call sites by using this method. While I'm in there and needing base/OWNERS approval, add an OWNERS file for base/metrics that adds jar@chromium.org as an owner for that directory. BUG=none TEST=base_unittests TBR=jam@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84197 0039d316-1c4b-4281-b951-d872f2087c98
* Fix logic for handling reports of malformed bodies. To end up countingjoi@chromium.org2011-05-053-9/+22
| | | | | | | | | | | | | | | | one error, we need to count two when the malformed body is reported, against the one success reported based on the response code from what must have been a successful HTTP request. Updated a unit test that previously should have caught this but was making incorrect assumptions. BUG=81587 TEST=net_unittests Review URL: http://codereview.chromium.org/6932013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84196 0039d316-1c4b-4281-b951-d872f2087c98
* Rename ClientSocket to StreamSocket.sergeyu@chromium.org2011-05-0559-179/+179
| | | | | | | | | BUG=80895 TEST=Compiles Review URL: http://codereview.chromium.org/6930014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84167 0039d316-1c4b-4281-b951-d872f2087c98
* Change the obsolete ProxyConfigServiceNull to ProxyConfigServiceDirect.wtc@chromium.org2011-05-041-1/+1
| | | | | | | | | | R=eroman@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/6931011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84138 0039d316-1c4b-4281-b951-d872f2087c98
* net: remove a random 10% of the False Start blocklist.agl@chromium.org2011-05-041-459/+0
| | | | | | | TEST=none BUG=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84134 0039d316-1c4b-4281-b951-d872f2087c98
* net: remove napster.com from False Start blocklist.agl@chromium.org2011-05-041-1/+0
| | | | | | | | | (Agreed on this timetable with napster.com.) BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84127 0039d316-1c4b-4281-b951-d872f2087c98
* net: add (*.)stripe.com to the HSTS preloaded list.agl@chromium.org2011-05-042-0/+4
| | | | | | | | | Requested by Patrick Collison. TEST=none BUG=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84125 0039d316-1c4b-4281-b951-d872f2087c98
* net: add logentries.com to the HSTS preloaded list.agl@chromium.org2011-05-042-0/+10
| | | | | | | | | Requested by Viliam Holub BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84124 0039d316-1c4b-4281-b951-d872f2087c98
* Allow server to indicate a non-SDCH encodingjar@chromium.org2011-05-041-1/+27
| | | | | | | | | | | | | | | When a server decides to not SDCH encode content despite having an applicable dictionary, it can send a header: X-Sdch-Encode: 0 to tell the browser the lack of encoding was not caused by a transit corruption (bad proxy?). r=kmixter bug=78489 Review URL: http://codereview.chromium.org/6909033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84102 0039d316-1c4b-4281-b951-d872f2087c98
* net: remove the project net_base, and move back to a single net library.rvargas@google.com2011-05-041-152/+72
| | | | | | | | BUG=76997 TEST=NONE Review URL: http://codereview.chromium.org/6879131 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84082 0039d316-1c4b-4281-b951-d872f2087c98
* Canary HSTS for mail.google.com, based on enthusiastic support to try.cevans@chromium.org2011-05-042-7/+8
| | | | | | Review URL: http://codereview.chromium.org/6907015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84070 0039d316-1c4b-4281-b951-d872f2087c98
* Nitpick: add missing header file in gyp file.qsr@chromium.org2011-05-041-0/+1
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6914015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84067 0039d316-1c4b-4281-b951-d872f2087c98
* Use a MessageLoopProxy to forward PAC script errors to the network delegatejochen@chromium.org2011-05-034-18/+31
| | | | | | | | | | | | This fixes a race/crash when the worker threads of the multi threaded proxy resolver outlive the io thread BUG=none TEST=none Review URL: http://codereview.chromium.org/6914026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83962 0039d316-1c4b-4281-b951-d872f2087c98
* Use a MessageLoopProxy rather than manual Lock + MessageLoop* in ↵eroman@chromium.org2011-05-031-71/+32
| | | | | | | | | | | | HostResolverImpl::Job. This is strictly a re-factor, however it should also enable r83641 to be re-landed without tickling the shutdown bug described in 81136. BUG=81136 Review URL: http://codereview.chromium.org/6910015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83961 0039d316-1c4b-4281-b951-d872f2087c98
* Eliminate wstring from base/utf_offset_string_conversions.h, ↵pkasting@chromium.org2011-05-0310-1125/+819
| | | | | | | | | | net/base/escape.h, and net/base/net_util.h, and reduce the API surfaces in various places slightly where possible. BUG=23581 TEST=none Review URL: http://codereview.chromium.org/6898026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83948 0039d316-1c4b-4281-b951-d872f2087c98
* Initialize the network_delegate_ and fix stylejochen@chromium.org2011-05-033-3/+7
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6912029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83930 0039d316-1c4b-4281-b951-d872f2087c98
* Tweaks to extension webRequest API.mpcomplete@chromium.org2011-05-033-9/+8
| | | | | | | | | | | | | | | - onBeforeSendHeaders respects extraInfoSpec. - request headers are now an array of {name, value} objects instead of a flat string. - onBeforeRequest is sent after redirects now. This allows extensions to intercept redirects and cancel/redirect them elsewhere. BUG=60101 TEST=no Review URL: http://codereview.chromium.org/6912008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83925 0039d316-1c4b-4281-b951-d872f2087c98
* Enable (optional) blocking of webrequests in case a PAC script cannot be ↵battre@chromium.org2011-05-035-20/+65
| | | | | | | | | | | | | fetched or is invalid. The optional blocking is currently only exposed to the Proxy Settings API, not to command-line parameters or policies. BUG=79344 TEST=Install the sample proxy extension and enter a non-existing url and a URL that does not point to a valid JavaScript file. In either case, the request should fail. Review URL: http://codereview.chromium.org/6871019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83882 0039d316-1c4b-4281-b951-d872f2087c98
* Add a method for PAC script errors to the network delegate.jochen@chromium.org2011-05-0316-23/+305
| | | | | | | | | | | Also add a wrapper class to avoid passing around raw NULL pointers, and a bridge so I can invoke the method from other than the IO thread BUG=48930 TEST=net unittests Review URL: http://codereview.chromium.org/6822026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83881 0039d316-1c4b-4281-b951-d872f2087c98
* FTP: Fix a compatibility issue with Plan9phajdan.jr@chromium.org2011-05-032-7/+11
| | | | | | | | BUG=80970 TEST=Visit ftp://plan9.bell-labs.com/, the directory listing should be displayed. Review URL: http://codereview.chromium.org/6903166 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83869 0039d316-1c4b-4281-b951-d872f2087c98
* Increase warning level to 4 on Visual Studiomaruel@chromium.org2011-05-031-1/+2
| | | | | | | | | | | | | This requires disabling most /W4 warnings so the patch doesn't get too large. I still fixed a few bugs so I didn't have to disable some more serious warnings. Most of these warnings are already enabled on gcc so it's mostly windows-specific code that is affected. BUG=none TEST=none Review URL: http://codereview.chromium.org/6902069 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83840 0039d316-1c4b-4281-b951-d872f2087c98
* Add profiles.google.com to HSTS list, with permission.cevans@chromium.org2011-05-032-0/+7
| | | | | | Review URL: http://codereview.chromium.org/6913015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83838 0039d316-1c4b-4281-b951-d872f2087c98
* Fix net/ command-line pollution introduced in ↵cevans@chromium.org2011-05-027-85/+60
| | | | | | | | | | http://codereview.chromium.org/6869043/ BUG=81042 TEST=TransportSecurityStateTest.ForcePreloads Review URL: http://codereview.chromium.org/6883294 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83807 0039d316-1c4b-4281-b951-d872f2087c98
* Net: Define the net api for building net as a dll.rvargas@google.com2011-05-022-0/+27
| | | | | | | | | | | | NET_API is the public interface for the module. NET_TEST is intended to be used for symbols that have to be exported only in order to test them. BUG=76997 TEST=NONE Review URL: http://codereview.chromium.org/6903132 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83742 0039d316-1c4b-4281-b951-d872f2087c98
* linux: components buildevan@chromium.org2011-05-021-1/+2
| | | | | | | | Reapply r83630, r83629, r83583, and fix the one compile error. TBR=rvargas git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83740 0039d316-1c4b-4281-b951-d872f2087c98
* net: add romab.com to HSTS preloaded list.agl@chromium.org2011-05-022-0/+5
| | | | | | | BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83720 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 83641 - DNS Host resolver changes with retry logic. Fix forjar@chromium.org2011-05-023-390/+49
| | | | | | | | | | | | | | | | | | | | | | | bug Chromium cannot recover from a state when its DNS requests have been dropped. Whenever we try to resolve the host, we post a delayed task to check if host resolution (OnLookupComplete) is completed or not. If the original ateempt hasn't completed, then we start another attempt to resolve for the same request. We take the results from the attempt that finishes first and leave all other attempts as orphaned. BUG=73327 TEST=dns host resolver tests R=eroman,jar Review URL: http://codereview.chromium.org/6782001 TBR=rtenneti@chromium.org Review URL: http://codereview.chromium.org/6902198 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83710 0039d316-1c4b-4281-b951-d872f2087c98
* Add a method to HMAC to indicate how large a digest it produces.abarth@chromium.org2011-04-301-20/+12
| | | | | | Review URL: http://codereview.chromium.org/6904148 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83681 0039d316-1c4b-4281-b951-d872f2087c98
* Fix problem when interpreting Gnome proxy settings, where http, https, and ↵eroman@chromium.org2011-04-302-32/+92
| | | | | | | | | | | ftp proxies were ignored when a SOCKS proxy was specified. BUG=80937 TEST=See screenshot in comment #0 of the bug thread for repro steps. Review URL: http://codereview.chromium.org/6883284 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83655 0039d316-1c4b-4281-b951-d872f2087c98
* Initialize os_error to 0. rtenneti@chromium.org2011-04-301-1/+1
| | | | | | | | | BUG=73327 TEST=dns host resolver tests TBR=jar Review URL: http://codereview.chromium.org/6905154 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83653 0039d316-1c4b-4281-b951-d872f2087c98
* MAC Cookies (patch 2 of N)abarth@chromium.org2011-04-304-0/+348
| | | | | | | | | | This CL contains the algorithmic guts of MAC cookies, including generating the canonical represntation of the request and signing it using HMAC. This CL does not include support for body_hash, which requires some more thought. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=83600 Review URL: http://codereview.chromium.org/6901121 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83651 0039d316-1c4b-4281-b951-d872f2087c98
* MAC Cookies (patch 1 of N)abarth@chromium.org2011-04-304-22/+92
| | | | | | | | | | | | This is the first patch towards implementing https://github.com/hueniverse/draft-hammer-http-mac/raw/master/draft-hammer-oauth-v2-mac-token.txt Parse MAC-Key and MAC-Algorithm from Set-Cookie and store the values in memory. Future patches will use these values to sign requests. Review URL: http://codereview.chromium.org/6883253 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83649 0039d316-1c4b-4281-b951-d872f2087c98