summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* Convert NewRunnableMethod() calls to base::Bind().ajwong@chromium.org2011-12-2019-64/+68
| | | | | | | | | | BUG=none TEST=existing tests. Review URL: http://codereview.chromium.org/8956017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115181 0039d316-1c4b-4281-b951-d872f2087c98
* Remove net/url_request/fraudulent_certificate_reporter.cc.wtc@chromium.org2011-12-201-0/+0
| | | | | | | | | | | This should have been done in http://codereview.chromium.org/8342019, but for some reason it left behind an empty file. TBR=rvargas@chromium.org BUG=99185 TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115154 0039d316-1c4b-4281-b951-d872f2087c98
* Added protocol_version negotiated with the server.rtenneti@google.com2011-12-2043-85/+272
| | | | | | | | | | | | | protocol_version will be printed by the LoadTimes extension. R=willchan BUG=108134 TEST=network unittests Review URL: http://codereview.chromium.org/8914005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115145 0039d316-1c4b-4281-b951-d872f2087c98
* FTP: work around server bugs resulting in negative file size being sent.phajdan.jr@chromium.org2011-12-203-5/+15
| | | | | | | | BUG=106841 Review URL: http://codereview.chromium.org/8970023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115115 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Easy pickings in net/base.jhawkins@chromium.org2011-12-206-40/+39
| | | | | | | | | | BUG=none TEST=none R=groby Review URL: http://codereview.chromium.org/8989003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115071 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Convert net/proxy.jhawkins@chromium.org2011-12-2043-655/+591
| | | | | | | | | | BUG=none TEST=none R=csilv Review URL: http://codereview.chromium.org/8985012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115068 0039d316-1c4b-4281-b951-d872f2087c98
* Retry 114494 - Remove BindStateHolder and have Bind() return a Callback<> ↵ajwong@chromium.org2011-12-207-12/+9
| | | | | | | | | | | | | | | object directly." This removes some complexity and also fixes a bug where if you call Bind() with the result of Bind(), the resulting Callback would only be valid during the first call. Ouch. Also makes the static type checking a bit more strict when assigning into a Callback<>. BUG=none TEST=new unittests Review URL: http://codereview.chromium.org/8915024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115045 0039d316-1c4b-4281-b951-d872f2087c98
* net: remove the NextUpdate and WindowSecs code from CRLSet.agl@chromium.org2011-12-202-40/+2
| | | | | | | | | | | | Since we're now using Omaha to distribute the CRLSets, we don't need these values. BUG=none TEST=net_unittests Review URL: http://codereview.chromium.org/8992019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115042 0039d316-1c4b-4281-b951-d872f2087c98
* net: add a tool to dump CRL sets.agl@chromium.org2011-12-192-1/+86
| | | | | | | | | | | | | This tool is used in the build pipeline to verify that a candidate CRL set can be correctly parsed by the Chromium code. BUG=none TEST=none Review URL: http://codereview.chromium.org/8977001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115028 0039d316-1c4b-4281-b951-d872f2087c98
* In net-internals, have HTTP_STREAM_JOBs link to themmenke@chromium.org2011-12-1913-32/+41
| | | | | | | | | | | URL_REQUEST they were attached to. With source_dependencies now being clickable, this makes navigation between URLRequests on the same socket a little easier. BUG=107000 Review URL: http://codereview.chromium.org/8930014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115022 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Convert most of disk_cache.jhawkins@chromium.org2011-12-1936-655/+831
| | | | | | | | | | BUG=none TEST=none R=csilv Review URL: http://codereview.chromium.org/8963030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115019 0039d316-1c4b-4281-b951-d872f2087c98
* Standardize StringToInt{,64} interface.tedvessenes@gmail.com2011-12-197-34/+46
| | | | | | | | | | | | | | | | | | | | | | | These changes address issue #106655. All variants of StringToInt have been converted to use the StringPiece class. One instance of conversion, in chrome/browser/history/text_database.cc, required copying an underlying string. This is because the string type in question could use 8 or 16 bit characters depending on the OS type, and because StringPiece is not implemented as a template, the code cannot specify whether to create a StringPiece or StringPiece16. This should be remedied in a future CL. R=erikwright@chromium.org BUG=106655 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114929 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114944 Review URL: http://codereview.chromium.org/8921006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114993 0039d316-1c4b-4281-b951-d872f2087c98
* Disable CertDatabaseNSSTest.ImportServerCert as the test certificate is expired.rsleevi@chromium.org2011-12-191-1/+3
| | | | | | | | | BUG=108009 TBR=mattm Review URL: http://codereview.chromium.org/8988004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114952 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 114944 - Standardize StringToInt{,64} interface.battre@chromium.org2011-12-187-46/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | Revert due to compile breakage on ChromeOS. These changes address issue #106655. All variants of StringToInt have been converted to use the StringPiece class. One instance of conversion, in chrome/browser/history/text_database.cc, required copying an underlying string. This is because the string type in question could use 8 or 16 bit characters depending on the OS type, and because StringPiece is not implemented as a template, the code cannot specify whether to create a StringPiece or StringPiece16. This should be remedied in a future CL. R=erikwright@chromium.org BUG=106655 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114929 Review URL: http://codereview.chromium.org/8921006 TBR=tedvessenes@gmail.com Review URL: http://codereview.chromium.org/8990002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114945 0039d316-1c4b-4281-b951-d872f2087c98
* Standardize StringToInt{,64} interface.tedvessenes@gmail.com2011-12-187-34/+46
| | | | | | | | | | | | | | | | | | | | | These changes address issue #106655. All variants of StringToInt have been converted to use the StringPiece class. One instance of conversion, in chrome/browser/history/text_database.cc, required copying an underlying string. This is because the string type in question could use 8 or 16 bit characters depending on the OS type, and because StringPiece is not implemented as a template, the code cannot specify whether to create a StringPiece or StringPiece16. This should be remedied in a future CL. R=erikwright@chromium.org BUG=106655 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114929 Review URL: http://codereview.chromium.org/8921006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114944 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 114929 - Standardize StringToInt{,64} interface.rsleevi@chromium.org2011-12-177-46/+34
| | | | | | | | | | | | | | | | | | | | | | These changes address issue #106655. All variants of StringToInt have been converted to use the StringPiece class. One instance of conversion, in chrome/browser/history/text_database.cc, required copying an underlying string. This is because the string type in question could use 8 or 16 bit characters depending on the OS type, and because StringPiece is not implemented as a template, the code cannot specify whether to create a StringPiece or StringPiece16. This should be remedied in a future CL. R=erikwright@chromium.org BUG=106655 TEST= Review URL: http://codereview.chromium.org/8921006 TBR=tedvessenes@gmail.com Review URL: http://codereview.chromium.org/8984007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114930 0039d316-1c4b-4281-b951-d872f2087c98
* Standardize StringToInt{,64} interface.tedvessenes@gmail.com2011-12-177-34/+46
| | | | | | | | | | | | | | | | | | | These changes address issue #106655. All variants of StringToInt have been converted to use the StringPiece class. One instance of conversion, in chrome/browser/history/text_database.cc, required copying an underlying string. This is because the string type in question could use 8 or 16 bit characters depending on the OS type, and because StringPiece is not implemented as a template, the code cannot specify whether to create a StringPiece or StringPiece16. This should be remedied in a future CL. R=erikwright@chromium.org BUG=106655 TEST= Review URL: http://codereview.chromium.org/8921006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114929 0039d316-1c4b-4281-b951-d872f2087c98
* Reland after fixes.jhawkins@chromium.org2011-12-1717-120/+142
| | | | | | | | | | | | base::Bind: Remove even moar OldCompletionCallback. BUG=none TEST=none R=dpapad Review URL: http://codereview.chromium.org/8947024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114896 0039d316-1c4b-4281-b951-d872f2087c98
* net: remove DnsRRResolveragl@chromium.org2011-12-166-1193/+0
| | | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/8963019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114845 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 114838 - base::Bind: Remove even moar OldCompletionCallback.garykac@chromium.org2011-12-1617-139/+120
| | | | | | | | | | | | | BUG=none TEST=none R=dpapad Review URL: http://codereview.chromium.org/8947024 TBR=jhawkins@chromium.org Review URL: http://codereview.chromium.org/8966031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114840 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Remove even moar OldCompletionCallback.jhawkins@chromium.org2011-12-1617-120/+139
| | | | | | | | | | BUG=none TEST=none R=dpapad Review URL: http://codereview.chromium.org/8947024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114838 0039d316-1c4b-4281-b951-d872f2087c98
* fix kerberos support on OpenBSD by using the correct include dir and librobert.nagy@gmail.com2011-12-162-0/+7
| | | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/8915010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114821 0039d316-1c4b-4281-b951-d872f2087c98
* net: add Disney Tokyo to the SSL blacklist due to record splitting issues.agl@chromium.org2011-12-161-0/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114804 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a leak of a SECKEYPublicKey following r114709rsleevi@chromium.org2011-12-161-3/+4
| | | | | | | | | BUG=none TBR=wtc Review URL: http://codereview.chromium.org/8971005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114781 0039d316-1c4b-4281-b951-d872f2087c98
* Really add test Origin Bound Certificate data for ↵mattm@chromium.org2011-12-162-0/+0
| | | | | | | | | | | | | | http://codereview.chromium.org/8890073/ (Failed to add by commit queue in r114525) BUG=107047 TEST=none TBR=wtc@chromium.org Review URL: http://codereview.chromium.org/8976007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114750 0039d316-1c4b-4281-b951-d872f2087c98
* Disk Cache: Discard entries from ReadData if something is clearly wrong.rvargas@chromium.org2011-12-162-2/+38
| | | | | | | | | BUG=107457 TEST=net_unittests Review URL: http://codereview.chromium.org/8913013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114740 0039d316-1c4b-4281-b951-d872f2087c98
* Use a monotonic clock (TimeTicks) to report network times to WebCore.simonjam@chromium.org2011-12-162-5/+8
| | | | | | | | | | | | | Navigation Timing (window.performance.timing) is now spec'd to use monotonically increasing time, so we need to follow suit. Most of this CL is just plumbing TimeTicks through. We already use TimeTicks to implement monotonicallyIncreasingTime() in WebCore. On Windows, the clock doesn't tick uniformly between processes, so there is a layer in content that corrects for skew. BUG=None TEST=Adhoc (ran webtiming-* LayoutTests from Chrome) and content_unittests Review URL: http://codereview.chromium.org/7602023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114736 0039d316-1c4b-4281-b951-d872f2087c98
* net: add agl as OWNERSagl@chromium.org2011-12-151-0/+1
| | | | | | | | | | | | | | With willchan heading out for a month, I'll have lost my rubber stamp LGTM. (And it's not like people don't send me code reviews expecting me to be an OWNER already :) BUG=none TEST=none Review URL: http://codereview.chromium.org/8953022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114714 0039d316-1c4b-4281-b951-d872f2087c98
* Reject certificate chains containing small RSA and DSA keys.palmer@chromium.org2011-12-1538-5/+1815
| | | | | | | | | | | "Small" means less than 1024 bits. BUG=102949 TEST=net_unittests, X509CertificateTest.* Review URL: http://codereview.chromium.org/8568040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114709 0039d316-1c4b-4281-b951-d872f2087c98
* Avoid including gtest file directly, and go through base insteadjar@chromium.org2011-12-152-2/+2
| | | | | | | | | | | | | | | | | | We should consistently: #include "base/gtest_prod_util.h" which does the gtest include (from the right place, in a second repo, hidden in our tree). This is critical to being able to supplant the FRIEND_TEST macro, which we're experimenting with to optimize builds. r=brettw TBR=other owners (this is a trivial change) BUG=107727 Review URL: http://codereview.chromium.org/8954017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114685 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Cleanup almost-unused OldCompletionCallbacks.jhawkins@chromium.org2011-12-1512-133/+27
| | | | | | | | | | BUG=none TEST=none R=dpapad Review URL: http://codereview.chromium.org/8956014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114674 0039d316-1c4b-4281-b951-d872f2087c98
* net: remove a random 10% of the hosts from the SSL blacklist.agl@chromium.org2011-12-151-247/+0
| | | | | | Now that Chrome 16 is out the door, the blacklist erosion process is resuming. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114671 0039d316-1c4b-4281-b951-d872f2087c98
* Revert: Revert "net: remove DNS certificate checking code."agl@chromium.org2011-12-1521-488/+4
| | | | | | Now with ChromeOS fix. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114664 0039d316-1c4b-4281-b951-d872f2087c98
* net: rename NSS's 'ssl' to 'libssl'agl@chromium.org2011-12-152-5/+5
| | | | | | | | | | | | | ninja doesn't like there being several targets with the name 'ssl', so I renamed NSS's 'ssl' target to 'libssl'. BUG=none TEST=compiles Review URL: http://codereview.chromium.org/8907043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114656 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "net: remove DNS certificate checking code."agl@chromium.org2011-12-1521-4/+488
| | | | | | This reverts commit r114642 - it broke ChromeOS. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114644 0039d316-1c4b-4281-b951-d872f2087c98
* net: remove DNS certificate checking code.agl@chromium.org2011-12-1521-488/+4
| | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/8944001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114642 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Convert proxy_resolving_client_socket.[cc,h] and deps.jhawkins@chromium.org2011-12-1532-634/+620
| | | | | | | | | | BUG=none TEST=none R=csilv Review URL: http://codereview.chromium.org/8898036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114562 0039d316-1c4b-4281-b951-d872f2087c98
* Enable ChromeFrame net tests for IE versions 8 and below. Changes include ↵ananta@chromium.org2011-12-152-0/+9
| | | | | | | | | | | | | | | | | | | the following:- 1. Get rid of the dummy AtlModule registration in the chrome frame net test suite. This is no longer needed as there is an Atlmodule instance instantiated by the content code. 2. The TestSuite and NetTestSuite classes now provide special protected constructors which allow test instances to control whether an AtExitManager instance is created for the duration of the test. The ChromeFrame net test suite reuses the AtExitManager instance created in BrowserMain. Fixes bug http://code.google.com/p/chromium/issues/detail?id=105435 BUG=105435 TEST=ChromeFrame net tests should now run on the builders. Review URL: http://codereview.chromium.org/8907054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114559 0039d316-1c4b-4281-b951-d872f2087c98
* Add test Origin Bound Certificate data for ↵mattm@chromium.org2011-12-143-1/+5
| | | | | | | | | | | | http://codereview.chromium.org/8890073/ BUG=107047 TEST=none Review URL: http://codereview.chromium.org/8890074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114525 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 114494 - Remove BindStateHolder and have Bind() return a Callback<> ↵sail@chromium.org2011-12-1410-31/+12
| | | | | | | | | | | | | | | | | object directly. This removes some complexity and also fixes a bug where if you call Bind() with the result of Bind(), the resulting Callback would only be valid during the first call. Ouch. BUG=none TEST=new unittests Review URL: http://codereview.chromium.org/8738001 TBR=ajwong@chromium.org Review URL: http://codereview.chromium.org/8914022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114495 0039d316-1c4b-4281-b951-d872f2087c98
* Remove BindStateHolder and have Bind() return a Callback<> object directly.ajwong@chromium.org2011-12-1410-12/+31
| | | | | | | | | | | | This removes some complexity and also fixes a bug where if you call Bind() with the result of Bind(), the resulting Callback would only be valid during the first call. Ouch. BUG=none TEST=new unittests Review URL: http://codereview.chromium.org/8738001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114494 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 110965 - Allow chrome to handle 407 auth challenges to CONNECT requestsrch@chromium.org2011-12-1411-582/+97
| | | | | | | | | | | | | | through HTTPS Proxies. This also changes the mechanism used to restart HttpProxyClientSocket requests with auth. Previously the transport socket would be Disconnected, and then re-Connected (which was not implemented for SSLClientSockets). However, the approach was problematic in the face of, for example, ipv6. The new approach is to close the HttpProxyClientSocket, and request a new socket from the pool. Review URL: http://codereview.chromium.org/8912010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114447 0039d316-1c4b-4281-b951-d872f2087c98
* net: reenable #if's around pinning code.agl@chromium.org2011-12-141-2/+2
| | | | | | The builders have had a chance to chew it over now. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114435 0039d316-1c4b-4281-b951-d872f2087c98
* When encountering certificates signed with md2/md4, make it a fatal error.rsleevi@chromium.org2011-12-143-9/+48
| | | | | | | | | | | | | When encountering certificates signed with md5, interstitial the page with an error about md5 being a weak signing algorithm. This excludes checking the signatures of root certificates (trust anchors), as their self-signed signatures are not relevant to the security of the chain. R=wtc@chromium.org BUG=101123 Review URL: http://codereview.chromium.org/8374020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114432 0039d316-1c4b-4281-b951-d872f2087c98
* Re-upload the machine ID during policy fetch if it's missing on the server side.mnissler@chromium.org2011-12-141-2/+23
| | | | | | | | | BUG=chromium-os:22092 TEST=Enroll a device with a bogus serial number. In the policy response, the server should request a serial number update, which should be uploaded after next ChromiumOS boot. Review URL: http://codereview.chromium.org/8933008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114413 0039d316-1c4b-4281-b951-d872f2087c98
* Add back support for --testing-fixed-http-port and --testing-fixed-https-portwillchan@chromium.org2011-12-143-0/+24
| | | | | | | | | | | | This is necessary to test against local reverse proxies. BUG=none TEST=none Review URL: http://codereview.chromium.org/8932010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114358 0039d316-1c4b-4281-b951-d872f2087c98
* Fix SPDY flow control.willchan@chromium.org2011-12-141-1/+1
| | | | | | | | | | | | | We were calling SpdyStream::OnWriteComplete() (which indicates successful DATA frame writes) when we write a WINDOW_UPDATE frame on behalf of a stream. That's wrong. TODO: write regression test. BUG=107449 TEST=none Review URL: http://codereview.chromium.org/8929021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114356 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor: Extract "InitProxyResolver" to "ProxyScriptDecider".eroman@chromium.org2011-12-139-442/+468
| | | | | | | | | | | | | This is primarily a rename, with the exception that the initialization of ProxyResolver (i.e. the javascript runtime environment for the PAC script) is no longer done inside of ProxyScriptDecider. The motivation for doing this is to make it possible to poll our automatic proxy settings (PAC URLs or WPAD) in the background, _without_ needing to feed the scripts into the javascript parser for validation. There likely won't be any user-visible consequence of this change, however the new mechanism is weaker than the original -- it is possible for the PAC selection to now choose a PAC script which fails to parse as javascript, even though there was a later fallback choice which does parse. This should be rare though (the bad response would need to contain the substring "FindProxyForURL"). BUG=TODO (bugtracker down right now) Review URL: http://codereview.chromium.org/8896019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114281 0039d316-1c4b-4281-b951-d872f2087c98
* No longer preconnect to unsafe ports. As UrlRequests weremmenke@chromium.org2011-12-135-37/+72
| | | | | | | | | | | never allowed to use these ports anyways, this wasn't a security issue, but just doesn't seem like a good idea. BUG=93326 Review URL: http://codereview.chromium.org/8898008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114261 0039d316-1c4b-4281-b951-d872f2087c98
* Don't attempt to forward declare StringPiece.erikwright@chromium.org2011-12-132-8/+2
| | | | | | | | | | | | | 1) This is discouraged because it prevents callers from benefiting from automatic coersion from string/char* types. 2) A follow-up CL (http://codereview.chromium.org/8659047/) will make StringPiece a template, and thus awkward to forward declare. The very small number of places that were appropriately forward declaring it do not justify writing a 'string_piece_forward.h'. BUG=87634 R=cbentzel@chromium.org Review URL: http://codereview.chromium.org/8929002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114219 0039d316-1c4b-4281-b951-d872f2087c98