summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Update cert pinning metadata to add pinning for most Google domains.cevans@chromium.org2011-04-282-52/+153
| | | | | | | | | Add new metadata to take care of domains from which subresource loads occurs. TEST=TransportSecurityStateTest.* Review URL: http://codereview.chromium.org/6893083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83435 0039d316-1c4b-4281-b951-d872f2087c98
* Skip cert verification if it is expected to be bad.hclam@chromium.org2011-04-288-43/+57
| | | | | | | | | | | If server cert received is expected to be bad then don't perform the verification step. BUG=None TEST=net_unittests --gtest_filter=SSL* Review URL: http://codereview.chromium.org/6898033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83420 0039d316-1c4b-4281-b951-d872f2087c98
* Keep track of whether we're getting any certificate pin failures.cevans@chromium.org2011-04-281-4/+9
| | | | | | Review URL: http://codereview.chromium.org/6893087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83389 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the declaration of the obsolete CreateOSCert method. The methodwtc@chromium.org2011-04-281-4/+0
| | | | | | | | | | | | was removed in r63881 (http://codereview.chromium.org/3920001). R=agl@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/6904069 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83372 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: upgrade a DCHECK to CHECK to try and catch bug 75508 in action.mdm@chromium.org2011-04-281-2/+2
| | | | | | | BUG=75508 Review URL: http://codereview.chromium.org/6883218 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83361 0039d316-1c4b-4281-b951-d872f2087c98
* Fix disk cache stats to include 'Open misses'joth@chromium.org2011-04-281-4/+4
| | | | | | | | | | BUG=None TEST=open chrome:net-internals and enusre Open misses is listed Review URL: http://codereview.chromium.org/6880242 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83315 0039d316-1c4b-4281-b951-d872f2087c98
* Report cert-pin only metadata correctly in the chrome://net-internals/#hsts UI.cevans@chromium.org2011-04-271-4/+8
| | | | | | Review URL: http://codereview.chromium.org/6893072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83249 0039d316-1c4b-4281-b951-d872f2087c98
* Flesh out the onBeforeSendHeaders event a bit more. We now send thempcomplete@chromium.org2011-04-279-26/+46
| | | | | | | | | | | | | requestHeaders and allow the extension to modify them. I also changed the network delegate callbacks, so that they accept arguments beyond just a status code, and they do not outlive the object they are bound to. BUG=60101 TEST=automated Review URL: http://codereview.chromium.org/6899001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83246 0039d316-1c4b-4281-b951-d872f2087c98
* Stop refcounting ProxyService.willchan@chromium.org2011-04-2718-235/+206
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6873096 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83222 0039d316-1c4b-4281-b951-d872f2087c98
* Fix https://m.gmail.com/ and https://m.googlemail.com/, which don't return acevans@chromium.org2011-04-272-4/+14
| | | | | | | | | | matching CN even with SNI. BUG=80642 TEST=TransportSecurityStateTest.Preloaded Review URL: http://codereview.chromium.org/6902064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83199 0039d316-1c4b-4281-b951-d872f2087c98
* Fix DirectoryLister not to require refcounting.willchan@chromium.org2011-04-275-241/+245
| | | | | | | | | | | | Also prevent DirectoryLister from blocking the IO thread when cancelled (blocked on joining file IO thread). Allows us to remove refcounting from URLRequestFileDirJob. BUG=65331 TEST=Browse to file:/// and make sure it still works. Test cancellation by closing the tab. Review URL: http://codereview.chromium.org/6898047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83193 0039d316-1c4b-4281-b951-d872f2087c98
* Undo raw DNS resolver changes, this will be implemented differently, on ↵agayev@chromium.org2011-04-277-16/+15
| | | | | | | | | | | IO-thread. BUG=60149 TEST=None Review URL: http://codereview.chromium.org/6893007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83177 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r83048 "Removed wchar_t from Time::FromString."maruel@chromium.org2011-04-263-7/+8
| | | | | | | | | | | | This causes regression on KeywordProviderTest.Edit on clang produced executable. TBR=shinyak BUG= TEST= Review URL: http://codereview.chromium.org/6893031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83055 0039d316-1c4b-4281-b951-d872f2087c98
* Removed wchar_t from Time::FromString.shinyak@google.com2011-04-263-8/+7
| | | | | | | | | | | | | Also, some of the test case are moved from pr_time_unittests to time_unittests. BUG=77962 TEST=base_unittests:TimeTest.* Review URL: http://codereview.chromium.org/6903022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83048 0039d316-1c4b-4281-b951-d872f2087c98
* Find("SpdyCwnd") is sometimes coming back null. This guards against that case.russellbrenner@google.com2011-04-261-0/+4
| | | | | | | | | | BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6877124 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82993 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for enforcing certificate pinning without requiring https on acevans@chromium.org2011-04-264-7/+57
| | | | | | | | | | given domain. This is important for subresource loads from multi-purpose domains. TEST=TransportSecurityStateTest.OptionalHSTSCertPins Review URL: http://codereview.chromium.org/6880193 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82986 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 82858 - Added network panel timing, size and raw headers text tests ↵jar@chromium.org2011-04-261-50/+0
| | | | | | | | | for DevToolsReview URL: http://codereview.chromium.org/6851024 TBR=vsevik@chromium.org Review URL: http://codereview.chromium.org/6901020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82971 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for built-in certificate pins, and add a pin list suitable forcevans@chromium.org2011-04-252-81/+140
| | | | | | | | | | | Google properties, in discussion with the central security team. Use said pin list for an initial sample domain. Also factor out a couple of functions to eliminate duplicated code. TEST=TransportSecurityStateTest.BuiltinCertPins Review URL: http://codereview.chromium.org/6894026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82923 0039d316-1c4b-4281-b951-d872f2087c98
* Added network panel timing, size and raw headers text tests for DevToolsvsevik@chromium.org2011-04-251-0/+50
| | | | | | Review URL: http://codereview.chromium.org/6851024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82858 0039d316-1c4b-4281-b951-d872f2087c98
* Implemented chrome.experimental.webRequest.onCompletedbattre@chromium.org2011-04-235-20/+12
| | | | | | | | | BUG=60101 TEST=run browser_tests Review URL: http://codereview.chromium.org/6883119 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82793 0039d316-1c4b-4281-b951-d872f2087c98
* Python sync server support for MIGRATION_DONE errors.nick@chromium.org2011-04-233-68/+475
| | | | | | | | | | | | | | | | | This allows a test or a user to inject MIGRATION_DONE errors on arbitrary datatypes. Clients that encounter such an error will fail until they re-sync the affected datatypes. For GetUpdates, the error is determined by embedding the migration version (an increasing integer value) in the progress_marker's token. Old version numbers ==> ERROR. For Commit, the error is determined by embedding the migration number in the ID of every object. Doing so also guarantees that the client has actually redownloaded -- IDs are invalidated across a migration boundary. Bonus fixes: greatly enhanced logging info, embed the datatype in the ID. BUG=79247 TEST=sync_integration_tests Review URL: http://codereview.chromium.org/6870029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82766 0039d316-1c4b-4281-b951-d872f2087c98
* InitFromPickle should return false on any deserializationwtc@chromium.org2011-04-221-4/+9
| | | | | | | | | | | | | | | error. Require socket_address when deserializing version 2 or later. R=rsleevi@chromium.org,rvargas@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/6880130 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82700 0039d316-1c4b-4281-b951-d872f2087c98
* net: add histograms for OCSP and CRL fetch failures.agl@chromium.org2011-04-221-30/+61
| | | | | | | | | | | | | Without parsing, we can't detect OCSP responses that actually mean "I don't know about this cert", or "This server has failed". But we can detect timeouts, HTTP errors etc. BUG=none TEST=none Review URL: http://codereview.chromium.org/6880123 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82640 0039d316-1c4b-4281-b951-d872f2087c98
* Address post-review feedback for r82214. In addition, no longer attempt to ↵rsleevi@chromium.org2011-04-227-46/+40
| | | | | | | | | | | | gracefully recover from read errors when deserializing a X509Certificate from a Pickle. R=wtc BUG=7065 TEST=none Review URL: http://codereview.chromium.org/6880094 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82618 0039d316-1c4b-4281-b951-d872f2087c98
* Address post-review feedback for r81702.rsleevi@chromium.org2011-04-221-40/+50
| | | | | | | | | | | | On Mac, if certificate revocation checking is disabled in the preferences, absolutely no revocation checking will occur, which now also includes bypassing/ignoring the local CRL and OCSP caches. R=wtc BUG=78523 TEST=none Review URL: http://codereview.chromium.org/6879095 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82617 0039d316-1c4b-4281-b951-d872f2087c98
* Implement IpcNetworkMangersergeyu@chromium.org2011-04-211-1/+1
| | | | | | | | | BUG=79494 TEST=None Review URL: http://codereview.chromium.org/6882047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82579 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 82460 - Introduce the ANNOTATE_LEAKING_OBJECT_PTR annotation that can ↵glider@chromium.org2011-04-213-5/+4
| | | | | | | | | be used to markheap allocated objects as intentionally leaked ones.Annotate the histograms produced by {Histogram,BooleanHistogram,LinearHistogram,CustomHistogram}::FactoryGet(), as leaked.Rename StatsHistogram::StatsHistogramFactoryGet to StatsHistogram::FactoryGet, annotate the result as leaky, update the suppressions.BUG=79322Review URL: http://codereview.chromium.org/6869009 TBR=cbentzel Review URL: http://codereview.chromium.org/6873152 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82483 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce the ANNOTATE_LEAKING_OBJECT_PTR annotation that can be used to markglider@chromium.org2011-04-213-4/+5
| | | | | | | | | | | | heap allocated objects as intentionally leaked ones. Annotate the histograms produced by {Histogram,BooleanHistogram,LinearHistogram,CustomHistogram}::FactoryGet(), as leaked. Rename StatsHistogram::StatsHistogramFactoryGet to StatsHistogram::FactoryGet, annotate the result as leaky, update the suppressions. BUG=79322 Review URL: http://codereview.chromium.org/6869009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82460 0039d316-1c4b-4281-b951-d872f2087c98
* Add command-line control of the HSTS preload list.cevans@chromium.org2011-04-216-45/+129
| | | | | | Review URL: http://codereview.chromium.org/6869043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82409 0039d316-1c4b-4281-b951-d872f2087c98
* Implemented of base functionality of ↵battre@chromium.org2011-04-205-0/+24
| | | | | | | | | | | chrome.experimental.webRequest.onBeforeRedirect BUG=60101 TEST=execute browser tests Review URL: http://codereview.chromium.org/6882043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82317 0039d316-1c4b-4281-b951-d872f2087c98
* Implementation of chrome.experimental.webRequest.onRequestSentbattre@chromium.org2011-04-205-0/+31
| | | | | | | | | BUG=60101 TEST=browser_tests --gtest_filter='ExtensionWebRequestApiTest.WebRequestEvents' Review URL: http://codereview.chromium.org/6853014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82308 0039d316-1c4b-4281-b951-d872f2087c98
* Added raw headers support to DevTools.vsevik@chromium.org2011-04-202-0/+18
| | | | | | | | | BUG=79084 TEST=Open DevTools->Network panel, look for raw HTTP headers for resources. Review URL: http://codereview.chromium.org/6825048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82275 0039d316-1c4b-4281-b951-d872f2087c98
* Change the HTTP cache to cache the entire certificate chain for SSL sitesrsleevi@chromium.org2011-04-208-119/+250
| | | | | | | | | | | | When persisting an X509Certificate to a pickle, such as when storing to the HTTP cache, persist any intermediate certificates in addition to the end-entity certificate. This will allow the complete certificate chain to be displayed to the end user when viewing a cached entry, independent of whether a network request has been made to that site during the browsing session. R=agl BUG=7065 TEST=X509CertificateTest.Persist Review URL: http://codereview.chromium.org/4645001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82214 0039d316-1c4b-4281-b951-d872f2087c98