summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net
Commit message (Collapse)AuthorAgeFilesLines
* chrome: Use base::MessageLoop. (Part 3)xhwang@chromium.org2013-05-2823-50/+51
| | | | | | | | | | | | This CL updates chrome/browser/* other than chrome/browser/ui which is in another CL. BUG=236029 TBR=brettw Review URL: https://chromiumcodereview.appspot.com/14113053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202664 0039d316-1c4b-4281-b951-d872f2087c98
* Add the UMA recording recall of URLRequests preconnected.kouhei@chromium.org2013-05-276-84/+159
| | | | | | | | | | This is to be observed in the "preconnect on link UIEvents" Finch field trial to see its effect. BUG=235361 Review URL: https://chromiumcodereview.appspot.com/15675002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202395 0039d316-1c4b-4281-b951-d872f2087c98
* Implement WebPrescientNetworking to trigger preconnect from blink.kouhei@chromium.org2013-05-271-9/+14
| | | | | | | | | | | | | Note to gardener: This patch requires the following Blink patch to be landed first: https://codereview.chromium.org/14746002/ This API is to be triggered from {mouse,gesture}-events on HTMLAnchorElement. BUG=235361 Review URL: https://chromiumcodereview.appspot.com/14749005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202370 0039d316-1c4b-4281-b951-d872f2087c98
* Refactoring: Remove const from ConnectInterceptor methodskouhei@chromium.org2013-05-232-10/+7
| | | | | | | | | | | They were left over from when it was a URLRequest::Interceptor, and are no longer necessary. TESTS=src/chrome/browser/net/connect_interceptor_unittest.cc Review URL: https://chromiumcodereview.appspot.com/15664002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201777 0039d316-1c4b-4281-b951-d872f2087c98
* ChannelID-less Connections in Chrome should be more granular.mef@chromium.org2013-05-1712-144/+176
| | | | | | | | | | | | | | | | Added enum PrivacyMode (Enabled/Disabled) to mark connections which should not use ChannelID even if it is globally enabled. PrivacyMode is enabled if user blocks sending or saving cookies to/from particular server, taking in account third party cookie settings as well. See crbug.com/223191 for design doc. Segmented client socket pools according to privacy mode setting used for particular connection (added 'pm/' prefix to pool key. Introduced SpdySessionKey structure and added PrivacyMode to the key of SpdySessionPool. Added propagation of Privacy Mode setting from Web Sockets. Added check of Privacy Mode to predictor and pre-connect logic. BUG=223191 TEST=unit_tests gtest_filter=ChromeNetworkDelegatePrivacyModeTest* Review URL: https://chromiumcodereview.appspot.com/13008028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200852 0039d316-1c4b-4281-b951-d872f2087c98
* net: Return LoadTiming information in the case of a cache hit.mmenke@chromium.org2013-05-151-29/+27
| | | | | | | | | | | | | If the request went over the wire before headers were returned, return information about the last over the wire request. Otherwise, set send times to be when the cache entry was opened, and receive_header_start to be when the headers were read. BUG=239842 Review URL: https://chromiumcodereview.appspot.com/14625012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200356 0039d316-1c4b-4281-b951-d872f2087c98
* If HostResolver::Request completes with OK, the AddressList is not empty. ↵mef@chromium.org2013-05-151-5/+0
| | | | | | | | | | | | | | | | Previously committed CL https://codereview.chromium.org/14760008/ ensures that, so unnecessary checks are now removed. BUG=126211 TEST=All existing tests still pass. Reviewers: szym@chromium.org - overall mmenke@chromium.org - chrome/browser/net/network_stats.cc sergeyu@chromium.org - content/browser/renderer_host/p2p/socket_dispatcher_host.cc Review URL: https://chromiumcodereview.appspot.com/14715016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200348 0039d316-1c4b-4281-b951-d872f2087c98
* Histogram versions and extended error codes for SQLite databases.shess@chromium.org2013-05-151-1/+1
| | | | | | | | | | | | | | | | | | | Track database versions across the fleet for purposes of making decisions about whether old migration code can be removed. As part of this, refactor histogram code to key off a per-database tag rather than histogram name, and to log in a form which can be fanned out via the field trial logic in histograms.xml [FYI michaeln from webkit/OWNERS, erikwright from {chrome,content}/net/OWNERS, sky for chrome/browser/history/OWNERS] BUG=none TBR=michaeln@chromium.org, erikwright@chromium.org, sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/14976003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200216 0039d316-1c4b-4281-b951-d872f2087c98
* content: Move two more url constants into content namespace.tfarina@chromium.org2013-05-151-1/+1
| | | | | | | | TBR=joi@chromium.org, thestig@chromium.org Review URL: https://codereview.chromium.org/14698018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200165 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove unneeded base/file_util.h includes in chrome.thestig@chromium.org2013-05-151-1/+0
| | | | | | Review URL: https://chromiumcodereview.appspot.com/15030005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200118 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for split Public Suffix List distinctions.nyquist@chromium.org2013-05-141-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for the private additions to the Public Suffix List. * Since net::RegistryControlledDomainService only contained static methods, this CL changes these methods to be contained within the namespace net::registry_controlled_domains and removes the class entirely. * All methods defined as part of net::registry_controlled_domains now have a mandatory argument to specify whether the private registries should be included. * Since the old implementation did not take into account the private registries, this sets all old callers to use EXCLUDE_PRIVATE as the net::registry_controlled_domains::PrivateRegistryFilter argument. * Changes the parameter for including unknown registries or not to be an enum instead of a boolean, using a similar naming scheme as for the private registries: net::registry_controlled_domains::UnknownRegistryFilter. * This also updates the effective-TLD data file to: 45cfff9c781f 2013-04-23 11:51 +0100 It includes changes from a number of Mozilla bugs, listed on https://hg.mozilla.org/mozilla-central/log/45cfff9c781f/netwerk/dns/effective_tld_names.dat between 290afd57d2a8 (2012-07-04 16:08 +0100) and 45cfff9c781f (2013-04-23 11:51 +0100). Patch set 1 is equal to the committed patch set from: https://codereview.chromium.org/13979002/ TBRing OWNERs from original CL. TBR=pam@chromium.org BUG=37436, 96086 Review URL: https://codereview.chromium.org/15140003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200066 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 199771 "Add support for split Public Suffix List distinct..."nyquist@chromium.org2013-05-131-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > Add support for split Public Suffix List distinctions. > > This adds support for the private additions to the Public Suffix List. > > * Since net::RegistryControlledDomainService only contained static methods, this > CL changes these methods to be contained within the namespace > net::registry_controlled_domains and removes the class entirely. > * All methods defined as part of net::registry_controlled_domains now > have a mandatory argument to specify whether the private registries > should be included. > * Since the old implementation did not take into account the private > registries, this sets all old callers to use EXCLUDE_PRIVATE as the > net::registry_controlled_domains::PrivateRegistryFilter argument. > * Changes the parameter for including unknown registries or not to be an enum > instead of a boolean, using a similar naming scheme as for the private > registries: net::registry_controlled_domains::UnknownRegistryFilter. > * This also updates the effective-TLD data file to: > 45cfff9c781f 2013-04-23 11:51 +0100 > It includes changes from a number of Mozilla bugs, listed on > https://hg.mozilla.org/mozilla-central/log/45cfff9c781f/netwerk/dns/effective_tld_names.dat > between 290afd57d2a8 (2012-07-04 16:08 +0100) and > 45cfff9c781f (2013-04-23 11:51 +0100). > > BUG=37436,96086 > R=brettw@chromium.org, erikwright@chromium.org, pam@chromium.org, rsleevi@chromium.org, sky@chromium.org > > Review URL: https://codereview.chromium.org/13979002 TBR=nyquist@chromium.org Review URL: https://codereview.chromium.org/14767028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199774 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for split Public Suffix List distinctions.nyquist@chromium.org2013-05-131-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for the private additions to the Public Suffix List. * Since net::RegistryControlledDomainService only contained static methods, this CL changes these methods to be contained within the namespace net::registry_controlled_domains and removes the class entirely. * All methods defined as part of net::registry_controlled_domains now have a mandatory argument to specify whether the private registries should be included. * Since the old implementation did not take into account the private registries, this sets all old callers to use EXCLUDE_PRIVATE as the net::registry_controlled_domains::PrivateRegistryFilter argument. * Changes the parameter for including unknown registries or not to be an enum instead of a boolean, using a similar naming scheme as for the private registries: net::registry_controlled_domains::UnknownRegistryFilter. * This also updates the effective-TLD data file to: 45cfff9c781f 2013-04-23 11:51 +0100 It includes changes from a number of Mozilla bugs, listed on https://hg.mozilla.org/mozilla-central/log/45cfff9c781f/netwerk/dns/effective_tld_names.dat between 290afd57d2a8 (2012-07-04 16:08 +0100) and 45cfff9c781f (2013-04-23 11:51 +0100). BUG=37436,96086 R=brettw@chromium.org, erikwright@chromium.org, pam@chromium.org, rsleevi@chromium.org, sky@chromium.org Review URL: https://codereview.chromium.org/13979002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199771 0039d316-1c4b-4281-b951-d872f2087c98
* chrome: Update the include paths of base/message_loop_proxy.h to its new ↵tfarina@chromium.org2013-05-101-1/+1
| | | | | | | | | | | | | | location. message_loop_proxy.h was moved into base/message_loop/ in r191422 - https://codereview.chromium.org/13333003 BUG=None TBR=darin@chromium.org,brettw@chromium.org Review URL: https://chromiumcodereview.appspot.com/14979003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199389 0039d316-1c4b-4281-b951-d872f2087c98
* Disable SSL3 fallback restriction on Google propertiesthaidn@google.com2013-05-092-2/+6
| | | | | | | | | | | Instead of reverting http://crrev.com/195335, this CL will disable the changes introduced in that CL. BUG=237055 Review URL: https://chromiumcodereview.appspot.com/14759024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199185 0039d316-1c4b-4281-b951-d872f2087c98
* Removed static factories for data, ftp, file, and about jobs.pauljensen@chromium.org2013-05-083-5/+5
| | | | | | | | | | | | | | | | | Instead add corresponding ProtocolHandlers as needed. Remove URLRequestContext members used by these static factories. Bake FtpAuthCache into FtpProtocolHandler as it was already unique per FtpProtocolHandler. This is a revived version of http://crrev.com/10836206 BUG=142945 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188912 Review URL: https://chromiumcodereview.appspot.com/11931024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198915 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 198844 "Move sequenced_task_runner to base/task"dbeam@chromium.org2013-05-081-1/+1
| | | | | | | | | | | | | | | | | Reverting revisions that rely on r198820 so to unbreak the build. > Move sequenced_task_runner to base/task > > BUG= > R=akalin@chromium.org > > Review URL: https://codereview.chromium.org/14927008 TBR=brettw@chromium.org Review URL: https://codereview.chromium.org/14985007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198848 0039d316-1c4b-4281-b951-d872f2087c98
* Move sequenced_task_runner to base/taskbrettw@chromium.org2013-05-081-1/+1
| | | | | | | | | BUG= R=akalin@chromium.org Review URL: https://codereview.chromium.org/14927008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198844 0039d316-1c4b-4281-b951-d872f2087c98
* Move SpawnedTestServer to its own subdirectory.phajdan.jr@chromium.org2013-05-078-8/+8
| | | | | | | | | | | | This is a part of replacing most usages of the Python test server with an in-process C++ test server that should be easier to debug. BUG=96594 R=rch@chromium.org Review URL: https://codereview.chromium.org/14691006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198783 0039d316-1c4b-4281-b951-d872f2087c98
* components: Move PrefRegistrySyncable into user_prefs namespace.tfarina@chromium.org2013-05-068-29/+44
| | | | | | | | | | BUG=180785 R=joi@chromium.org TBR=darin@chromium.org Review URL: https://chromiumcodereview.appspot.com/14622003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198384 0039d316-1c4b-4281-b951-d872f2087c98
* GTTF: rename net::TestServer -> net::SpawnedTestServerphajdan.jr@chromium.org2013-05-038-32/+32
| | | | | | | | | | | | This is a part of replacing most usages of the Python test server with an in-process C++ test server that should be easier to debug. BUG=96594 R=rch@chromium.org Review URL: https://codereview.chromium.org/14702004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198151 0039d316-1c4b-4281-b951-d872f2087c98
* Use const-ref for manifest in ComponentInstaller.xhwang@chromium.org2013-05-022-2/+2
| | | | | | | | TBR=jar@chromium.org Review URL: https://chromiumcodereview.appspot.com/14522009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197777 0039d316-1c4b-4281-b951-d872f2087c98
* chrome: Remove the remaining use of ALLOW_THIS_IN_INITIALIZER_LIST.tfarina@chromium.org2013-05-0110-15/+14
| | | | | | | | | | | | It's no longer providing value as the MSVC warning is disabled during compilation. Refer to bug for details. BUG=234765 TBR=ben@chromium.org Review URL: https://codereview.chromium.org/14712004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197552 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY: Respect SETTINGS_FLAG_CLEAR_PREVIOUSLY_PERSISTED_SETTINGS.rtenneti@chromium.org2013-04-303-4/+98
| | | | | | | | | | | | | | | | | | | | | - Added ClearSpdySettings API call to clear the persisted SPDY setting data for a given host. SpdySession's OnSettings API calls this method to clear the persisted data. - ClearAllSpdySettings clears all the persisted data. - Add SpdyFramerVisitorInterface::OnSettings(). No behavioral change (no compiled change) outside tests. Merge internal change: 45922004 R=rch@chromium.org TEST=net unit tests and browser unit tests BUG=235737 Review URL: https://chromiumcodereview.appspot.com/14583002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197469 0039d316-1c4b-4281-b951-d872f2087c98
* Delete the origin-bound cert DB when an unrecoverable error is detected.thaidn@google.com2013-04-301-3/+87
| | | | | | | | | | The in-progress session will proceed without persisting certificates. The database will be re-established on disk at the beginning of the next session. BUG=235308 Review URL: https://chromiumcodereview.appspot.com/14493002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197293 0039d316-1c4b-4281-b951-d872f2087c98
* Split NetworkTimeTracker into service part and observer part.zea@chromium.org2013-04-303-0/+448
| | | | | | | | | | | | | | | The service will now get time updates from sync's http bridge (with time data from the sync server). Original codereview by haitaol@chromium.org at https://codereview.chromium.org/12211117/ BUG=177072 TBR=akalin@chromium.org Review URL: https://chromiumcodereview.appspot.com/12833011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197258 0039d316-1c4b-4281-b951-d872f2087c98
* Making Evicted Domain Cookie Counter use UMA.erikwright@chromium.org2013-04-291-10/+10
| | | | | | | | | | Previously HISTOGRAM_CUSTOM_TIMES was incorrectly used, which leads to no data uploaded! Changing to use UMA_HISTOGRAM_CUSTOM_TIMES instead. BUG=225765 Review URL: https://codereview.chromium.org/14534005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197116 0039d316-1c4b-4281-b951-d872f2087c98
* Do not roll back to SSL 3.0 for Google properties.thaidn@google.com2013-04-192-2/+30
| | | | | | | | | | | | SSL 3.0 fallback for Google properties can be enabled again with --enable-unrestricted-ssl3-fallback. Delete the obsolete SSL 3.0 fallback on TLS decompression failure. BUG=230171 Review URL: https://chromiumcodereview.appspot.com/14125003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195335 0039d316-1c4b-4281-b951-d872f2087c98
* UDP Network Connectivity - Perform 6 packet and FEC connectivityrtenneti@chromium.org2013-04-192-7/+7
| | | | | | | | | | tests for port 443. R=jar@chromium.org Review URL: https://chromiumcodereview.appspot.com/14247008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195277 0039d316-1c4b-4281-b951-d872f2087c98
* Move path functions from file_util to FilePath object.brettw@chromium.org2013-04-122-4/+6
| | | | | | | | | | | | | | EnsureEndsWithSeparator used to check whether the file existed. This seems bad and unnecessary so I removed it. I removed file_util::ContainsPath and used the existing file_util::IsParent instead. The functions descriptions are the same but the implementations do slightly different things, which is worrying. The only non-test use of this function to worry about is content/browser/storage_partition_impl_map.cc. As far as I see, the requirements for this seem OK, but I'm not very familiar with this. After some discussion with akalin, I changed sync/internal_api/sync_manager_impl.cc to be a DCHECK that the path is absolute rather than make it absolute. The old code relied on the behavior of the old function that the argument would be unchanged if the file didn't exist, and this (possibly relative) path would be used later. This behavior doesn't make a lot of sense, and it looks like now that the path is always absolute, so I replaced this call with a DCHECK. BUG= Review URL: https://codereview.chromium.org/13196006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193855 0039d316-1c4b-4281-b951-d872f2087c98
* Rewrite scoped_array<T> to scoped_ptr<T[]> in chrome.dcheng@chromium.org2013-04-111-2/+2
| | | | | | | | | | | | This is a manual cleanup pass using sed for files which are not built on Linux. BUG=171111 Review URL: https://chromiumcodereview.appspot.com/14114006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193728 0039d316-1c4b-4281-b951-d872f2087c98
* Remove URL fragment from referrer HTTP header (to comply with rfc2616) when ↵mef@chromium.org2013-04-101-1/+1
| | | | | | | | | | | | | | opening link using "Open Link in New Tab" option. Change URLRequest::set_referrer to URLRequest::SetReferrer which sanitizes referrer by removing URL fragment, user name and password. Remove URLRequest::GetSanitizedReferrer as URLRequest::referrer is now sanitized during set. BUG=168213 TEST=net_unittests, browser_tests Review URL: https://chromiumcodereview.appspot.com/12569007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193482 0039d316-1c4b-4281-b951-d872f2087c98
* Move SQLitePersistentCookieStore to contentsky@chromium.org2013-04-1010-1867/+26
| | | | | | | | | BUG=none TEST=none Review URL: https://codereview.chromium.org/13427006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193454 0039d316-1c4b-4281-b951-d872f2087c98
* Rewrite std::string("") to std::string(), Linux edition.dcheng@chromium.org2013-04-096-12/+13
| | | | | | | | | | | | | | | | | | | This patch was generated by running the empty_string clang tool across the Chromium Linux compilation database. Implicitly or explicitly constructing std::string() with a "" argument is inefficient as the caller needs to emit extra instructions to pass an argument, and the constructor needlessly copies a byte into internal storage. Rewriting these instances to simply call the default constructor appears to save ~14-18 kilobytes on an optimized release build. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193020 Review URL: https://codereview.chromium.org/13145003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193040 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Rewrite std::string("") to std::string(), Linux edition."dcheng@chromium.org2013-04-096-13/+12
| | | | | | | | | | | | | | This reverts commit e59558b78e8c6a1b0bd916a724724b638c3c91b6. Revert "Fix build after r193020." This reverts commit 558a35897f6b3ffbcaefde927c1f150b815d140a. Revert "Really fix build after r193020." This reverts commit e3748a79b523a8d365d4a33ef986eebb4186fa78. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193030 0039d316-1c4b-4281-b951-d872f2087c98
* Rewrite std::string("") to std::string(), Linux edition.dcheng@chromium.org2013-04-096-12/+13
| | | | | | | | | | | | | | | | | This patch was generated by running the empty_string clang tool across the Chromium Linux compilation database. Implicitly or explicitly constructing std::string() with a "" argument is inefficient as the caller needs to emit extra instructions to pass an argument, and the constructor needlessly copies a byte into internal storage. Rewriting these instances to simply call the default constructor appears to save ~14-18 kilobytes on an optimized release build. BUG=none Review URL: https://codereview.chromium.org/13145003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193020 0039d316-1c4b-4281-b951-d872f2087c98
* Implementing EvictedDomainCookieCounter to keep statistics on cookie ↵huangs@chromium.org2013-04-083-0/+737
| | | | | | | | | | eviction and reinstatement. BUG=225765 Review URL: https://chromiumcodereview.appspot.com/12805010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192866 0039d316-1c4b-4281-b951-d872f2087c98
* Disable ChromeNetLog when there are no observers.mmenke@chromium.org2013-03-302-6/+6
| | | | | | | | Performance gains are probably neglible, though it does prevent locking. Review URL: https://codereview.chromium.org/12209100 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191485 0039d316-1c4b-4281-b951-d872f2087c98
* net: extract net/cert out of net/basephajdan.jr@chromium.org2013-03-298-9/+9
| | | | | | | | | | | | This introduces the following dependency of net/base on things outside: net/base/openssl_client_key_store.cc:#include "net/cert/x509_certificate.h" BUG=70818 Review URL: https://codereview.chromium.org/13006020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191450 0039d316-1c4b-4281-b951-d872f2087c98
* NetLogLogger no longer falls back to logging to LOG when itmmenke@chromium.org2013-03-285-59/+83
| | | | | | | | | | | | | | fails to open a file. This fairly useless behavior. Also make NetLogLogger take a FILE on creation, so the caller is responsible for handling the fail-to-open case gracefully. BUG=none Review URL: https://chromiumcodereview.appspot.com/12975004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191145 0039d316-1c4b-4281-b951-d872f2087c98
* LoadTiming in net part 7: Hooking it all upmmenke@chromium.org2013-03-277-971/+599
| | | | | | | | | | | | | Use the new load timing implementation in net/ to replace LoadTimingObserver. This should fix reported times when using a SPDY proxy, and results in more heavily tested and (hopefully) less regression-prone code. BUG=77446 Review URL: https://chromiumcodereview.appspot.com/12094085 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190955 0039d316-1c4b-4281-b951-d872f2087c98
* base/prefs: Remove the public/ directory and move the files to //base/prefs.tfarina@chromium.org2013-03-218-9/+9
| | | | | | | | | | BUG=155525 R=joi@chromium.org TBR=darin@chromium.org Review URL: https://codereview.chromium.org/12789006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189513 0039d316-1c4b-4281-b951-d872f2087c98
* net: move host_resolver files from net/base to net/dnsphajdan.jr@chromium.org2013-03-218-11/+11
| | | | | | | | BUG=70818 Review URL: https://codereview.chromium.org/12518036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189485 0039d316-1c4b-4281-b951-d872f2087c98
* Convert http; into http: (and other valid schemes).grt@chromium.org2013-03-202-73/+107
| | | | | | | | | | | | Also: * Use the unnamed namespace instead of static functions. * Make ordering of functions in .cc file match that in .h file. BUG=176106 Review URL: https://chromiumcodereview.appspot.com/12393047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189213 0039d316-1c4b-4281-b951-d872f2087c98
* Tracking received data amounts on a daily basisbengr@chromium.org2013-03-191-0/+88
| | | | | | | | | | | | Maintain a window of the last 60 days of the amount of HTTP data received. BUG=174531 Review URL: https://chromiumcodereview.appspot.com/12664006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189127 0039d316-1c4b-4281-b951-d872f2087c98
* [Net] Separate out priority field from HttpRequestInfoakalin@chromium.org2013-03-191-3/+3
| | | | | | | | | | | | | | This is in preparation for supporting reprioritization; HttpRequestInfo is assumed to be an unchanging struct, so priority can't live in it if it is something that can change. Also add DEFAULT_PRIORITY value and replace some uses of LOWEST with it. BUG=166689 Review URL: https://codereview.chromium.org/12833008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189099 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 188912 "Removed static factories for data, ftp, file, and..."kbr@chromium.org2013-03-193-5/+5
| | | | | | | | | | | | | | | | | | | | | Broke layout tests userscripts/user-script-plugin-document.html and plugins/plugin-document-back-forward.html on all platforms. > Removed static factories for data, ftp, file, and about jobs. > Instead add corresponding ProtocolHandlers as needed. > Remove URLRequestContext members used by these static > factories. Bake FtpAuthCache into FtpProtocolHandler as it > was already unique per FtpProtocolHandler. > This is a revived version of http://crrev.com/10836206 > > BUG=142945 > > > Review URL: https://chromiumcodereview.appspot.com/11931024 TBR=pauljensen@chromium.org Review URL: https://codereview.chromium.org/12605011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188927 0039d316-1c4b-4281-b951-d872f2087c98
* Removed static factories for data, ftp, file, and about jobs.pauljensen@chromium.org2013-03-193-5/+5
| | | | | | | | | | | | | | | Instead add corresponding ProtocolHandlers as needed. Remove URLRequestContext members used by these static factories. Bake FtpAuthCache into FtpProtocolHandler as it was already unique per FtpProtocolHandler. This is a revived version of http://crrev.com/10836206 BUG=142945 Review URL: https://chromiumcodereview.appspot.com/11931024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188912 0039d316-1c4b-4281-b951-d872f2087c98
* Change ProxyRules to handle ProxyLists rather than just single ProxyServer ↵marq@google.com2013-03-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | instances. - All of the ProxyRules members that used to just be ProxyServers are now ProxyLists. - ParseFromString will now accept multiple proxy specifications per scheme. - ProxyRules::Apply now sets the ProxyInfo result to use a PAC string if any proxying will be done. - ProxyList now has an AddProxyServer method. - In general, beacuse ProxyList checks for the validity of its contents before adding new entries, IsEmpty() is used as a validity test where is_valid() used to be. - Writing ProxyRules into a dictionary will write out each constituent ProxyList as a PAC string. - Slight functional change to proxy_info: Calling UsePacString() now invokes Reset(), in line with the other Use* methods. - Updated proxy_config_unittest to compare PAC strings of proxy rules components. BUG= Review URL: https://chromiumcodereview.appspot.com/12315019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188604 0039d316-1c4b-4281-b951-d872f2087c98
* Stop sending Accept-Charset HTTP header as its not relevant anymore. Remove ↵pauljensen@chromium.org2013-03-154-39/+8
| | | | | | | | | | it from HttpUserAgentSettings as well as this is no longer needed. BUG=112804 Review URL: https://chromiumcodereview.appspot.com/12463021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188237 0039d316-1c4b-4281-b951-d872f2087c98