summaryrefslogtreecommitdiffstats
path: root/net/base
Commit message (Collapse)AuthorAgeFilesLines
* Bind() methods for TCP socketssergeyu@chromium.org2011-05-272-0/+5
| | | | | | | | | | | BUG=80245 TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=87077 Review URL: http://codereview.chromium.org/7004055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87095 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 87077 - Bind() methods for TCP socketssergeyu@chromium.org2011-05-272-5/+0
| | | | | | | | | | | | BUG=80245 TEST=None Review URL: http://codereview.chromium.org/7004055 TBR=sergeyu@chromium.org Review URL: http://codereview.chromium.org/7082013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87079 0039d316-1c4b-4281-b951-d872f2087c98
* Bind() methods for TCP socketssergeyu@chromium.org2011-05-272-0/+5
| | | | | | | | | BUG=80245 TEST=None Review URL: http://codereview.chromium.org/7004055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87077 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 87066 - Bind() methods for TCP socketssergeyu@chromium.org2011-05-272-5/+0
| | | | | | | | | | | | BUG=80245 TEST=None Review URL: http://codereview.chromium.org/7004055 TBR=sergeyu@chromium.org Review URL: http://codereview.chromium.org/7087004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87070 0039d316-1c4b-4281-b951-d872f2087c98
* Bind() methods for TCP socketssergeyu@chromium.org2011-05-272-0/+5
| | | | | | | | | BUG=80245 TEST=None Review URL: http://codereview.chromium.org/7004055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87066 0039d316-1c4b-4281-b951-d872f2087c98
* Anti-DDoS enhancements: Log to net log, UMA stats, improved policy.joi@chromium.org2011-05-275-32/+77
| | | | | | | | | | | | | | | | | | | | | | Count only certain error codes as failures. Don't count malformed body for codes already counted failures. Start with fresh entry when outdated, which makes policy slightly less aggressive. Add registration/unregistration to NetworkChangeNotifier, and reset throttling state on network changes, to avoid degenerate corner cases. Add UMA stats for throttling, and unit tests for them. Add hash-location-only URL to unit test. Enable testing of AJAX behavior via backoff_server. BUG=83775 TEST=net_unittests Review URL: http://codereview.chromium.org/6966038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87056 0039d316-1c4b-4281-b951-d872f2087c98
* Added static method that allows creation of an AddressList from a list of IP ↵agayev@chromium.org2011-05-263-40/+120
| | | | | | | | | | | addresses BUG=None TEST=net_unittests Review URL: http://codereview.chromium.org/6987023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86852 0039d316-1c4b-4281-b951-d872f2087c98
* Add '?' to the list of characters escaped when constructing a file:// URLasanka@chromium.org2011-05-262-0/+4
| | | | | | | | | | BUG=83514 TEST=net_unittests --gtest_filter=NetUtilTest.FileURLConversion Review URL: http://codereview.chromium.org/6990038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86836 0039d316-1c4b-4281-b951-d872f2087c98
* Switch to the new CustomHistogram::ArrayToCustomRanges() utilityjoi@chromium.org2011-05-261-46/+43
| | | | | | | | | | | | function where appropriate. Add a DCHECK which may be useful to detect incorrect usage. BUG=none TEST=net_unittests, unit_tests Review URL: http://codereview.chromium.org/6990058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86822 0039d316-1c4b-4281-b951-d872f2087c98
* Apply third party cookie blocking to all kinds of cookiesjochen@chromium.org2011-05-263-8/+5
| | | | | | | | | | BUG=72586 TEST=HostContentSettingsMapTest.Cookies* Review URL: http://codereview.chromium.org/7008025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86820 0039d316-1c4b-4281-b951-d872f2087c98
* Remove useless compile assert.abarth@chromium.org2011-05-251-2/+0
| | | | | | Review URL: http://codereview.chromium.org/6979014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86697 0039d316-1c4b-4281-b951-d872f2087c98
* Replace CHECK in NetworkChangeNotifierWin::WatchForAddressChangemmenke@chromium.org2011-05-251-2/+2
| | | | | | | | | | | with CHECK_EQ, so on failure, value will appear in minidumps. BUG=69198 TEST=none Review URL: http://codereview.chromium.org/7031054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86675 0039d316-1c4b-4281-b951-d872f2087c98
* Added EV policy OID and root sha1 fingerprint for GlobalSign Root CA - R3rkn@chromium.org2011-05-252-1/+44
| | | | | | | | | | | | | BUG=58437 TEST=go to <https://2029.globalsign.com> and verify the EV status Unit Test (This test has been DISABLED because it fails when "./netunittests" is run, though it passes individually.): "net_unittests --gtest_filter=X509CertificateTest.GlobalSignR3EVTest" Review URL: http://codereview.chromium.org/7037031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86632 0039d316-1c4b-4281-b951-d872f2087c98
* Virtual destructors should have virtual keyword.hans@chromium.org2011-05-255-6/+6
| | | | | | | | | | | | | | | | | Make sure user-declared virtual destructors always have the virtual keyword. The Clang style-check plugin will check for this soon. No functionality change: virtual is only added to destructors that are already implicitly virtual. Also fix a couple of in-line destructor definitions. BUG=83408 TEST=none Review URL: http://codereview.chromium.org/7064033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86587 0039d316-1c4b-4281-b951-d872f2087c98
* Enabling MHTML.jcivelli@chromium.org2011-05-251-3/+5
| | | | | | | | | | | | | | Enabling MHTML reading on the Chrome side now that the WebKit patch adding support for MHTML landed in WebKit. That is necessary for the MHTML layout tests to pass. BUG=83804 TEST=MHTML layout tests should pass. Review URL: http://codereview.chromium.org/7064044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86560 0039d316-1c4b-4281-b951-d872f2087c98
* Update effecitve-TLD data files using the latest data from Mozilla.jshin@chromium.org2011-05-253-11096/+10508
| | | | | | | | | | | | | | | | 1) Downloaded http://mxr.mozilla.org/mozilla-central/source/netwerk/dns/effective_tld_names.dat?raw=1 2) Removed whitespace from the ends of the lines 3) Added the Chromium note back in 4) Follow the instruction in net/tools/tld_cleanup/README to generate gperf and cc files. This data file comes from their changeset 70019:1de81dad52af from 2011-05-23 21:24 +0100 ( http://hg.mozilla.org/mozilla-central/rev/1de81dad52af ) BUG=37436 TEST=Type '도메인.한국' in the omnibox and see if we navigate to the site instead of triggering a search. Review URL: http://codereview.chromium.org/7064043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86531 0039d316-1c4b-4281-b951-d872f2087c98
* moved Buffer to dns_util as DnsResponseBufferagayev@chromium.org2011-05-243-138/+150
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/7063024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86467 0039d316-1c4b-4281-b951-d872f2087c98
* Handle <link rel=prerender> in chrome.gavinp@chromium.org2011-05-241-1/+2
| | | | | | | | | | | | | | | | This new link rel type is being used for the prerendering experiment instead of prefetch; this CL depends on webkit patch https://bugs.webkit.org/show_bug.cgi?id=61297 landing, but, together with that patch, chrome properly interprets and responds to link rel=prerender to launch prerendering. BUG=none TEST=PrerenderBrowserTest.* Review URL: http://codereview.chromium.org/6966016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86465 0039d316-1c4b-4281-b951-d872f2087c98
* Add metrics for DHCP WPAD feature. Fix memory overwrite.joi@chromium.org2011-05-242-1/+30
| | | | | | | | | BUG=18575 TEST=net_unittests Review URL: http://codereview.chromium.org/6975027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86421 0039d316-1c4b-4281-b951-d872f2087c98
* Fix data URL bug reported on Wikipediaabarth@chromium.org2011-05-232-19/+36
| | | | | | | | | The previous parser got confused if charset wasn't the last parameter. BUG=60287 Review URL: http://codereview.chromium.org/7039048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86255 0039d316-1c4b-4281-b951-d872f2087c98
* Kill URLRequestJobTracker.willchan@chromium.org2011-05-222-0/+10
| | | | | | | | | | BUG=81160 TEST=none Review URL: http://codereview.chromium.org/7043007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86241 0039d316-1c4b-4281-b951-d872f2087c98
* Move scoped_temp_dir and scoped_native_library back from base/memory to base.thakis@chromium.org2011-05-191-2/+2
| | | | | | | | | | | It looks like they got moved accidentally in http://codereview.chromium.org/6714032 BUG=none TEST=none Review URL: http://codereview.chromium.org/7048007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86010 0039d316-1c4b-4281-b951-d872f2087c98
* net: add betnet.fr to HSTS preloaded listagl@chromium.org2011-05-192-0/+8
| | | | | | | | | Requested by: Philippe Lafoucrière BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85924 0039d316-1c4b-4281-b951-d872f2087c98
* Revert of 85854 which is a revert of 85852 - Add a command line optionrtenneti@chromium.org2011-05-195-54/+78
| | | | | | | | | | | | | | | ("host-resolver-retry-attempts") to specify the number of retry attempts to resolve host. Relanding CL http://codereview.chromium.org/7011044/ BUG=82580 TEST=host resolver unit tests TBR=eroman Review URL: http://codereview.chromium.org/7011044 Review URL: http://codereview.chromium.org/7029050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85871 0039d316-1c4b-4281-b951-d872f2087c98
* Include SSL plaintext traffic in addition to the ciphertext when logging raw ↵rsleevi@chromium.org2011-05-191-0/+2
| | | | | | | | | | | | | bytes to a NetLog R=eroman,mmenke BUG=82562 TEST=net_unittests SSLClientSocketTest.Read_FullLogging Review URL: http://codereview.chromium.org/7017007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85866 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 85852 - Add a command line option ("host-resolver-retry-attempts")rtenneti@chromium.org2011-05-195-78/+54
| | | | | | | | | | | | | | | to specify the number of retry attempts to resolve host. BUG=82580 TEST=host resolver unit tests R=eroman Review URL: http://codereview.chromium.org/7011044 TBR=rtenneti@chromium.org Review URL: http://codereview.chromium.org/7044027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85854 0039d316-1c4b-4281-b951-d872f2087c98
* Add a command line option ("host-resolver-retry-attempts")rtenneti@chromium.org2011-05-195-54/+78
| | | | | | | | | | | | to specify the number of retry attempts to resolve host. BUG=82580 TEST=host resolver unit tests R=eroman Review URL: http://codereview.chromium.org/7011044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85852 0039d316-1c4b-4281-b951-d872f2087c98
* Added logging of the attempt number whenever we startrtenneti@chromium.org2011-05-182-4/+51
| | | | | | | | | | | | | | | Host resolution (DoLookup) and whenever host resolution is completed (OnLookupComplete). BUG=82592 TEST=about:net-internals and click on Events. In HOST_RESOLVER_IMPL_JOB, there would be log entries for attempts (HOST_RESOLVER_IMPL_ATTEMPT_STARTED and HOST_RESOLVER_IMPL_ATTEMPT_FINISHED). R=eroman,mmenke Review URL: http://codereview.chromium.org/7021021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85834 0039d316-1c4b-4281-b951-d872f2087c98
* Fix bug 79905: Drag and drop of "DownloadURL" type ignores specified ↵jianli@chromium.org2011-05-183-31/+93
| | | | | | | | | | filename for data URLs. BUG=79905 TEST=Manual test and unittest added for net::GetSuggestedFilename Review URL: http://codereview.chromium.org/7005011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85831 0039d316-1c4b-4281-b951-d872f2087c98
* net: Add NET_API to net/baservargas@google.com2011-05-1856-254/+325
| | | | | | | | BUG=76997 TEST=NONE Review URL: http://codereview.chromium.org/6969077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85785 0039d316-1c4b-4281-b951-d872f2087c98
* Adds support for the DHCP portion of the WPAD (proxy auto-discovery) protocol.joi@chromium.org2011-05-172-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is Windows-only for now, and is disabled by default. Start Chrome with the flag --enable-dhcp-wpad to enable the feature. See discussion in comment on DhcpProxyScriptFetcherFactory for why this needs to be done in a per-platform way rather than cross-platform. The code is factored so that adding other platform implementations will be straight forward. Most of the implementation is stand-alone and extends the ScriptProxyFetcher class hierarchy (and makes its interface slightly more generic). The integration point into existing code is in InitProxyResolver, which previously handled fallback from DNS auto-detect to custom PAC URL and now does fallback from DHCP to DNS to custom PAC URL. BUG=18575 TEST=net_unittests has good coverage for the new and changed code, but manual tests on a network with a PAC URL configured in DHCP are also needed. Original commit r85646. Reverted (test failures on some release bots) r85648. Will reland with fix. Review URL: http://codereview.chromium.org/6831025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85661 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 85646 - Adds support for the DHCP portion of the WPAD (proxy ↵joi@chromium.org2011-05-172-12/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | auto-discovery) protocol. This is Windows-only for now, and is disabled by default. Start Chrome with the flag --enable-dhcp-wpad to enable the feature. See discussion in comment on DhcpProxyScriptFetcherFactory for why this needs to be done in a per-platform way rather than cross-platform. The code is factored so that adding other platform implementations will be straight forward. Most of the implementation is stand-alone and extends the ScriptProxyFetcher class hierarchy (and makes its interface slightly more generic). The integration point into existing code is in InitProxyResolver, which previously handled fallback from DNS auto-detect to custom PAC URL and now does fallback from DHCP to DNS to custom PAC URL. BUG=18575 TEST=net_unittests has good coverage for the new and changed code, but manual tests on a network with a PAC URL configured in DHCP are also needed. Review URL: http://codereview.chromium.org/6831025 TBR=joi@chromium.org Review URL: http://codereview.chromium.org/7019015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85648 0039d316-1c4b-4281-b951-d872f2087c98
* Adds support for the DHCP portion of the WPAD (proxy auto-discovery) protocol.joi@chromium.org2011-05-172-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | This is Windows-only for now, and is disabled by default. Start Chrome with the flag --enable-dhcp-wpad to enable the feature. See discussion in comment on DhcpProxyScriptFetcherFactory for why this needs to be done in a per-platform way rather than cross-platform. The code is factored so that adding other platform implementations will be straight forward. Most of the implementation is stand-alone and extends the ScriptProxyFetcher class hierarchy (and makes its interface slightly more generic). The integration point into existing code is in InitProxyResolver, which previously handled fallback from DNS auto-detect to custom PAC URL and now does fallback from DHCP to DNS to custom PAC URL. BUG=18575 TEST=net_unittests has good coverage for the new and changed code, but manual tests on a network with a PAC URL configured in DHCP are also needed. Review URL: http://codereview.chromium.org/6831025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85646 0039d316-1c4b-4281-b951-d872f2087c98
* Re-order the declarations in AddressList to comply with style.eroman@chromium.org2011-05-162-69/+67
| | | | | | | | | | (this was a TODO from an earlier refactor). This is a no-op change, just re-ordering methods. Review URL: http://codereview.chromium.org/7015029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85553 0039d316-1c4b-4281-b951-d872f2087c98
* MAC Cookies (patch 5 of N)abarth@chromium.org2011-05-163-6/+4
| | | | | | | | | | | To help folks deal with clock skew, we've changed the timestamp to the "age" of the credential, which is the number of seconds since the cookie was set (as opposed to the number of seconds since the epoch). This patch updates our implementation to match. Review URL: http://codereview.chromium.org/6969075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85542 0039d316-1c4b-4281-b951-d872f2087c98
* net: add mattmccutchen to HSTS preloadedagl@chromium.org2011-05-162-0/+8
| | | | | | | BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85501 0039d316-1c4b-4281-b951-d872f2087c98
* Create a URLRequestJobFactory to replace the URLRequest globals.willchan@chromium.org2011-05-142-19/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | URLRequest::Interceptor and URLRequest::ProtocolFactory are globally registered. This causes a variety of problems. This provides a method for replacing them. It used to be the case that we used net::URLRequest::IsHandledProtocol()/net::URLRequest::IsHandledURL() to see if the request would be handled by Chrome, or deferred to an external protocol handler. This required that URLRequest be aware of all protocol handlers. We instead provide ProfileIOData::IsHandledProtocol(), which checks to see if there are any Chrome registered protocol handlers, and if not, checks the default ones in net::URLRequest. Note this doesn't work for custom handlers (registerProtocolHandler) because they are dynamic and profile-specific. We would have to add a member function to ProfileIOData and not use a global. This is problematic since we check ProfileIOData::IsHandledProtocol in the RenderViewContextMenu, which runs on the UI thread, whereas ProfileIOData lives on the IO thread. RenderViewContextMenu is using also using it synchronously, which makes it a pain to support. So, we don't support custom handlers in ProfileIOData::IsHandledProtocol(). This means that "save as" won't work for custom handlers. Seems ok for now. This also fixes the multiprofile/incognito bugs where if a profile registers a custom handler, and then a different profile / an incognito profile registers the same custom handler and then unregisters it, which globally unregisters it, so the original profile is now broken. By removing the use of the globals, we fix this. Also fixes a bunch of style guide violations in the ProtocolHandler/ProtocolHandlerRegistry code. This changelist replaces two existing URLRequest::ProtocolFactory uses: chrome-extension/user-script and custom handlers. Also improve the tests in ResourceDispatcherHost so we don't have to do as many NULL checks. Change the MockResourceContext to create a TestURLRequestContext. BUG=81979 TEST=none Review URL: http://codereview.chromium.org/6960006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85376 0039d316-1c4b-4281-b951-d872f2087c98
* net: add login.sapo.pt to HSTS preloaded list.agl@chromium.org2011-05-132-0/+8
| | | | | | | | | Requested by Nuno Loureiro. BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85304 0039d316-1c4b-4281-b951-d872f2087c98
* Implemented RequestHeaders field in extraInfoSpec of webRequest APIbattre@chromium.org2011-05-132-4/+8
| | | | | | | | | BUG=60101 TEST=no Review URL: http://codereview.chromium.org/6931055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85260 0039d316-1c4b-4281-b951-d872f2087c98
* Changes for not reading ssl prefs from user_prefs since we havertenneti@chromium.org2011-05-131-7/+0
| | | | | | | | | | | | | | | migrated data from user prefs to local state in M12. Changes to get ssl preferences from local state in IO thread. Replaced uses of CreateSystemSSLConfigService with new net::SSLConfigServiceDefaults so that we could delete CreateSystemSSLConfigService method. Deleted ssl_config_service_manager_system.cc Review URL: http://codereview.chromium.org/6810010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85243 0039d316-1c4b-4281-b951-d872f2087c98
* Attempt to fix the magical clang build.abarth@chromium.org2011-05-122-0/+7
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85201 0039d316-1c4b-4281-b951-d872f2087c98
* MAC Cookies (patch 3 of N)abarth@chromium.org2011-05-125-23/+181
| | | | | | | | | | Prepare the cookie monster for MAC cookies. According to the perftests in this patch, the change to the cookie monster has a small but measurable effect (83.963ms => 88.299ms). Review URL: http://codereview.chromium.org/6901147 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85200 0039d316-1c4b-4281-b951-d872f2087c98
* Tolerate extra whitespace in header parametersasanka@chromium.org2011-05-122-1/+21
| | | | | | | | | BUG=69939 TEST=net_unittests --gtest_filter=NetUtilTest.GetSuggestedFilename Review URL: http://codereview.chromium.org/7005003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85164 0039d316-1c4b-4281-b951-d872f2087c98
* Get rid of net::CookiePolicy, now that all code that uses it (except ↵jam@chromium.org2011-05-122-61/+5
| | | | | | | | | WebSocketJob, which appears to be unused and which I updated in this cl) is switched over to use ContentBrowserClient. BUG=76793 Review URL: http://codereview.chromium.org/6973011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85136 0039d316-1c4b-4281-b951-d872f2087c98
* Code formatting.qsr@google.com2011-05-121-4/+5
| | | | | | | | | | | | | Reformat function call for consistency. Move typedef definition into the scope of the only function using it. BUG=none TEST=none Review URL: http://codereview.chromium.org/7003023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85116 0039d316-1c4b-4281-b951-d872f2087c98
* Miscelaneous cleanups to AddressList to make it harder to mis-use.eroman@chromium.org2011-05-128-117/+194
| | | | | | | | | | | | | | - Removed all destructive non-const member functions -- these were dangerous since if you called them without first making a copy of the AddressList, it could mutate earlier copies. - Made AddressList::Data::head const, so new code added to AddressList cannot inadvertently introduce such dangerous mutations (won't compile). - Moved the non-trivial constructors and assign methods into factory methods (for added readability) - Removed the bool parameter from Copy (for added readability). Review URL: http://codereview.chromium.org/6880302 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85090 0039d316-1c4b-4281-b951-d872f2087c98
* Revert of 83710 which reverted 83641 - DNS Host resolver changesrtenneti@chromium.org2011-05-113-48/+388
| | | | | | | | | | | | | | | | | with retry logic. Fix for 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 it hasn't completed, then we start a new job to resolve for the same request. BUG=73327 TEST=dns host resolver tests R=eroman,jar Review URL: http://codereview.chromium.org/6976006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84908 0039d316-1c4b-4281-b951-d872f2087c98
* Add a final few pin hosts to the HSTS metadata.cevans@chromium.org2011-05-102-0/+29
| | | | | | | TEST=TransportSecurityStateTest.* Review URL: http://codereview.chromium.org/6996001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84885 0039d316-1c4b-4281-b951-d872f2087c98
* More progress towards removing content settings code from the content layer. ↵jam@chromium.org2011-05-101-1/+1
| | | | | | | | | We can't use CookiePolicy anymore since, being in the network layer, we can't give it render_process_id/render_view_id, which are needed to put up the content settings UI. Instead of the networking code calling CookiePolicy then calling the delegate (ResourceDispatcherHost) to inform it if something is blocked, we directly ask the delegate if something is allowed. ResourceDispatcherHost then calls the embedder, and passes along the IDs to identify the tab. In the next change, I'll use this mechansim in RenderMessageFilter and remove the CookiePolicy class. BUG=76793 Review URL: http://codereview.chromium.org/6995013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84881 0039d316-1c4b-4281-b951-d872f2087c98
* Add one-time randomization support for FieldTrial, and the ability tojoi@chromium.org2011-05-101-6/+4
| | | | | | | | | | | | | | | | | | | | | | | disable field trials. I am going to have a need for both soon. Update some documentation about empty trial names, add TrialExists() method and update many call-sites to use this (it simplifies the previous logic which checked for existence and then for non-empty name, which can no longer happen). Refactor a bit in browser_main. 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. Initially committed as r84197. Rolled back due to DCHECK in official builds, r84373. Will re-submit with fix. BUG=81750 TEST=base_unittests Review URL: http://codereview.chromium.org/6883102 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84801 0039d316-1c4b-4281-b951-d872f2087c98