summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Stop refcounting URLRequestTestJobwillchan@chromium.org2011-04-302-20/+42
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6883259 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83643 0039d316-1c4b-4281-b951-d872f2087c98
* DNS Host resolver changes with retry logic. Fix forrtenneti@chromium.org2011-04-303-49/+390
| | | | | | | | | | | | | | | | | | | | 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 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83641 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 83631 - linux: successfully build net_unittests in components buildmaf@chromium.org2011-04-301-2/+1
| | | | | | | | | | | Just tagging more bits of base API. Review URL: http://codereview.chromium.org/6902169 TBR=evan@chromium.org Review URL: http://codereview.chromium.org/6902183 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83637 0039d316-1c4b-4281-b951-d872f2087c98
* linux: successfully build net_unittests in components buildevan@chromium.org2011-04-291-1/+2
| | | | | | | | Just tagging more bits of base API. Review URL: http://codereview.chromium.org/6902169 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83631 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r83600abarth@chromium.org2011-04-294-348/+0
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83602 0039d316-1c4b-4281-b951-d872f2087c98
* MAC Cookies (2 of N)abarth@chromium.org2011-04-294-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. Review URL: http://codereview.chromium.org/6901121 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83600 0039d316-1c4b-4281-b951-d872f2087c98
* Add "set noparent" to src/net/OWNERS.willchan@chromium.org2011-04-291-1/+1
| | | | | | | | | | | Also drop lzheng who has left. BUG=none TEST=none Review URL: http://codereview.chromium.org/6903142 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83565 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 83524 - Re-connect if Keep-Alive connection has been closed by the ↵asanka@chromium.org2011-04-2913-216/+83
| | | | | | | | | time we get 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/6878055 TBR=asanka@chromium.org Review URL: http://codereview.chromium.org/6880318 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83530 0039d316-1c4b-4281-b951-d872f2087c98
* Re-connect if Keep-Alive connection has been closed by the time we get ↵asanka@chromium.org2011-04-2913-83/+216
| | | | | | | | | | | | | 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/6878055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83524 0039d316-1c4b-4281-b951-d872f2087c98
* Fix error reporting in the test server.mnissler@chromium.org2011-04-291-8/+5
| | | | | | | | | | | | We were still using the error protobuf field in the response message, but this has meanwhile been replace by HTTP status codes. BUG=none TEST=toy server successfully generates error response upon invalid/unspecified DM tokens in policy requests Review URL: http://codereview.chromium.org/6883224 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83494 0039d316-1c4b-4281-b951-d872f2087c98