summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* Add DNS configuration information to about:net-internals#dns,mmenke@chromium.org2012-03-296-27/+70
| | | | | | | | | | including log dumps, when Chrome's DNS resolver is enabled. BUG=117258 Review URL: http://codereview.chromium.org/9854026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129545 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 122908 - Limited user feedback following the addition of this means ↵rsleevi@chromium.org2012-03-291-2/+0
| | | | | | | | | | | | | | | | | | | | | | we're spamming the LOG needlessly. net: log the number of certificates from NSS. (Temporary change that should be reverted once the bug in question has been tracked down.) BUG=114709 TEST=none Review URL: http://codereview.chromium.org/9429010 TBR=agl@chromium.org NOTRY=true Review URL: http://codereview.chromium.org/9892007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129541 0039d316-1c4b-4281-b951-d872f2087c98
* Add base::HostToNetXX() & NetToHostXX(), and use them to replace htonX() & ↵wez@chromium.org2012-03-2816-51/+50
| | | | | | | | | | | | | | ntohX() in Chrome. This primarily addresses issues with code using the OS-provided htonX() & ntohX() functions from within the Chrome sandbox. Under Windows these functions are provided by ws2_32.dll, which is no longer available within Chrome's sandbox. The new base::HostToNetXX() and NetToHostXX() functions are safe for use by sandboxed code on Windows, and provide a single place where future fixes for other platforms can be made. BUG=117252 Review URL: http://codereview.chromium.org/9716020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129476 0039d316-1c4b-4281-b951-d872f2087c98
* Rename hsts_preloaded.h to transport_security_state_static.h.agl@chromium.org2012-03-281-0/+0
| | | | | | | | | This is a complete no-op as neither filename is actually used. This is just to make a future change easier to review. (Not reviewed.) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129413 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused variable 'use_alt_protocols' in http_network_layer.ccbenchan@chromium.org2012-03-281-3/+0
| | | | | | | | | | | | Related CL: http://src.chromium.org/viewvc/chrome?view=rev&revision=129335 BUG=120600 TEST=try servers Review URL: https://chromiumcodereview.appspot.com/9873019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129379 0039d316-1c4b-4281-b951-d872f2087c98
* Disallowed a NULL pointer from being passed as the second argument to ↵khorimoto@chromium.org2012-03-281-3/+5
| | | | | | | | | | | | | memcpy(), which is undefined behavior. CID=103649 BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/9872001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129346 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a few warnings that -Wnull-conversion of a future clang will complain about.thakis@chromium.org2012-03-281-5/+5
| | | | | | | | | | | BUG=none TEST=none TBR=OWNERS NOTRY=true Review URL: http://codereview.chromium.org/9845017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129337 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY - add command line options - enable-npn and enable-npn-httprtenneti@chromium.org2012-03-283-27/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the following command line options: --enable-npn Enables npn and spdy. In case server supports spdy, browser will use spdy. --enable-npn-http Enables NPN with http. It means npn is enabled but spdy won't be used. Http is still used for all requests. Retire the following command line options (which were the same as above) --use-spdy=npn --use-spdy=npn-http BUG=119849 R=willchan TEST=browser tests with command line options enable-npn and enable-npn-http. In chrome://net-internals when --enable-npn command line option is specified, we should see http/1.1 and spdy/2 as supported protocols under SPDY tab. When --enable-npn-http option is specified, we should see http/1.1 and http1.1 as supported protocols. Review URL: http://codereview.chromium.org/9837066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129335 0039d316-1c4b-4281-b951-d872f2087c98
* Checked that |entry| and |entry->backend_| are non-NULL.khorimoto@chromium.org2012-03-281-0/+1
| | | | | | | | | | | CID=103629 BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/9864055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129334 0039d316-1c4b-4281-b951-d872f2087c98
* Return false if CreateDirectory failstbreisacher@chromium.org2012-03-281-1/+2
| | | | | | | | | | | CID=15982 BUG=none TEST=none Review URL: http://codereview.chromium.org/9860046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129325 0039d316-1c4b-4281-b951-d872f2087c98
* Disable EV/CRLSet tests when USE_OPENSSL is defined.rsleevi@chromium.org2012-03-271-4/+10
| | | | | | | | | | | | | | The experimental OpenSSL stack in Chromium does not yet support EV status, OCSP, or CRLs, so disable these tests for now. BUG=117478 TEST=linux_redux is green Review URL: http://codereview.chromium.org/9861024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129231 0039d316-1c4b-4281-b951-d872f2087c98
* Add a DCHECK on having headers in HttpNetworkTransaction::DoReadHeadersComplete.gavinp@chromium.org2012-03-271-0/+1
| | | | | | | | | | | | My hope is that future generations will understand when we have ruled out all errors that don't result in headers; making for faster coding. BUG=None Review URL: http://codereview.chromium.org/9843002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129195 0039d316-1c4b-4281-b951-d872f2087c98
* Remove BackoffEntry TODO that was wrong.joi@chromium.org2012-03-271-8/+6
| | | | | | | | | | Clarify comment to illustrate why the current behavior is correct. BUG=None Review URL: https://chromiumcodereview.appspot.com/9773032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129177 0039d316-1c4b-4281-b951-d872f2087c98
* Reject streams with transfer-encoding headers.rch@chromium.org2012-03-274-0/+222
| | | | | | | | | | BUG=118398 TEST=\*Reset\*WithTransferEncoding Review URL: http://codereview.chromium.org/9836050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129136 0039d316-1c4b-4281-b951-d872f2087c98
* Normalize download file name on chromeostbarzic@chromium.org2012-03-272-1/+21
| | | | | | | | | | | | | ChromeOS file manager cannot handle non NFC encoded utf8 file names (because of file path normalization done in webkit layer), so let's ensure we normalize downloaded file names. BUG=chromium-os:26028 TEST=downloaded file with nfd encoded names and made sure they can be handled by file manager Review URL: https://chromiumcodereview.appspot.com/9854011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129128 0039d316-1c4b-4281-b951-d872f2087c98
* SocketStream failed to resume the state machine after SSLManager decisiontoyoshim@chromium.org2012-03-271-0/+4
| | | | | | | | | | | | | SocketStream should hold its state as next_state_ before suspending with ERR_IO_PENDING. This information is required to resume the state machine. BUG=119793, 53836 TEST=manual test with TLS-enabled pywebsocket console page Review URL: http://codereview.chromium.org/9809019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129106 0039d316-1c4b-4281-b951-d872f2087c98
* Add Net.HttpResponseCode_Nxx_MainFrame histogram.gavinp@chromium.org2012-03-271-0/+7
| | | | | | | | | BUG=None Review URL: http://codereview.chromium.org/9834031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129078 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 129018 - Revert 128993 - Refactor BaseTimer to avoid spamming the ↵jbates@chromium.org2012-03-272-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | MessageLoop with orphaned tasks. This change maintains the same API promises*, but instead of orphaning tasks when they are stopped, the BaseTimer_Helper class holds on to the task until either (1) it expires or (2) the user requests a delay that would arrive earlier than the pending task. If the user requests a longer delay than the pending task, a followup task will be posted when the pending task fires to span the remaining time. * The one change of usage is related to threading. The threading requirements are now more strict. It is not allowed to destruct a timer on a different thread than the one used to post tasks. A thread ID DCHECK is now in place that will help catch misuse. Some existing instances are changed as part of this CL. A side effect of this change is that the BaseTimer and DelayTimer are simplified to use features of BaseTimer_Helper (which is now called Timer). As suggested in timer.h, I ran the disabled TimerTest tests from linux, and they pass consistently. I also added some new tests to verify correct run states. BUG=117451,103667,119714,119750 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=128412 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=128506 Review URL: https://chromiumcodereview.appspot.com/9655006 TBR=jbates@chromium.org Review URL: https://chromiumcodereview.appspot.com/9791009 TBR=aa@chromium.org Review URL: https://chromiumcodereview.appspot.com/9860014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129062 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting this feature, once again. *sigh*rch@chromium.org2012-03-2621-1375/+37
| | | | | | | | | | | | | | | | | | | | Revert 127893 -Revert 127730 - Revert 127717 - Revert 118788 - Revert 113405 - Revert 113305 - Revert 113300 - Revert 112134 - Revert 112130 - Close idle connections / SPDY sessions when needed Due to the idle connection state being held by different socket pools, it's possible for one socket pool to hold an idle socket in a lower layer socket pool. From the lower level socket pool's perspective, the socket is being "actively" used. From the higher socket pool's (including SpdySession, which is more of a connection manager) perspective, the connection is idle and can be closed if we have hit a limit. Normally this isn't a big deal, except when we have a lot of idle SPDY connections and are connecting via a proxy, so we have low connection limits through the proxy server. We address this problem by allowing lower-level socket pools to tell higher level socket pools to close a socket. Fixed ASAN test failures by removing .Times(1) and .Times(2) from CloseMultipleIdleSocketsHeldByLayeredPoolWhenNeeded unittest (this removes the tests relying on the order of std::set in CloseOneIdleConnectionInLayeredPool). ASAN is prob ably causing the memory allocator to allocate the pools differently. The std::set is ordered by LayeredPool* which is the address of the LayeredPool (willchan). Added NET_EXPORT for layered_pool class defintion to fix windows shared compile. BUG=62364, 92244, 109876, 110368, 119847 TEST= Review URL: http://codereview.chromium.org/9809033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129034 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 128993 - Refactor BaseTimer to avoid spamming the MessageLoop with ↵aa@chromium.org2012-03-262-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | orphaned tasks. This change maintains the same API promises*, but instead of orphaning tasks when they are stopped, the BaseTimer_Helper class holds on to the task until either (1) it expires or (2) the user requests a delay that would arrive earlier than the pending task. If the user requests a longer delay than the pending task, a followup task will be posted when the pending task fires to span the remaining time. * The one change of usage is related to threading. The threading requirements are now more strict. It is not allowed to destruct a timer on a different thread than the one used to post tasks. A thread ID DCHECK is now in place that will help catch misuse. Some existing instances are changed as part of this CL. A side effect of this change is that the BaseTimer and DelayTimer are simplified to use features of BaseTimer_Helper (which is now called Timer). As suggested in timer.h, I ran the disabled TimerTest tests from linux, and they pass consistently. I also added some new tests to verify correct run states. BUG=117451,103667,119714,119750 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=128412 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=128506 Review URL: https://chromiumcodereview.appspot.com/9655006 TBR=jbates@chromium.org Review URL: https://chromiumcodereview.appspot.com/9791009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129018 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor BaseTimer to avoid spamming the MessageLoop with orphaned tasks.jbates@chromium.org2012-03-262-4/+5
| | | | | | | | | | | | | | | | | | | | This change maintains the same API promises*, but instead of orphaning tasks when they are stopped, the BaseTimer_Helper class holds on to the task until either (1) it expires or (2) the user requests a delay that would arrive earlier than the pending task. If the user requests a longer delay than the pending task, a followup task will be posted when the pending task fires to span the remaining time. * The one change of usage is related to threading. The threading requirements are now more strict. It is not allowed to destruct a timer on a different thread than the one used to post tasks. A thread ID DCHECK is now in place that will help catch misuse. Some existing instances are changed as part of this CL. A side effect of this change is that the BaseTimer and DelayTimer are simplified to use features of BaseTimer_Helper (which is now called Timer). As suggested in timer.h, I ran the disabled TimerTest tests from linux, and they pass consistently. I also added some new tests to verify correct run states. BUG=117451,103667,119714,119750 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=128412 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=128506 Review URL: https://chromiumcodereview.appspot.com/9655006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128993 0039d316-1c4b-4281-b951-d872f2087c98
* Manually merge some broken lines in hsts_preloaded.hagl@chromium.org2012-03-261-136/+68
| | | | | | | | | This change merges some > 80-char lines together. hsts_preloaded.h is a dummy file to make a future CL easier to review. (Not reviewed) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128985 0039d316-1c4b-4281-b951-d872f2087c98
* Add hsts_preloaded.hagl@chromium.org2012-03-261-0/+2904
| | | | | | | | | | | This CL is the result of: % cat public_key_hashes.h transport_security_state.cc > hsts_preloaded.h This is purely to make a future CL easier to review. (Not reviewed) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128984 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the Throttling.HttpResponseCode histogram.gavinp@chromium.org2012-03-252-11/+2
| | | | | | | | | | | The experiment is over, let's get rid of the (big) histogram. BUG=None Review URL: http://codereview.chromium.org/9826043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128831 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 128753 - Add full support for filesystem URLs.ericu@google.com2012-03-242-6/+5
| | | | | | | | | | | | BUG=114484 TEST=existing filesystem tests don't break Review URL: https://chromiumcodereview.appspot.com/7811006 TBR=ericu@google.com Review URL: https://chromiumcodereview.appspot.com/9808101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128757 0039d316-1c4b-4281-b951-d872f2087c98
* Add full support for filesystem URLs.ericu@google.com2012-03-242-5/+6
| | | | | | | | | BUG=114484 TEST=existing filesystem tests don't break Review URL: https://chromiumcodereview.appspot.com/7811006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128753 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a crash in SpdySession::WriteStreamData which can happen if the ↵rch@chromium.org2012-03-241-1/+1
| | | | | | | | | | | specified stream_id is not active. BUG=116825 Review URL: http://codereview.chromium.org/9808083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128747 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY - persist SPDY settings.rtenneti@chromium.org2012-03-2416-721/+637
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | HttpServerProperties stores SPDY settings in SettingsMap whose key is settings ID and value is a (flags, value) pair (SettingsFlagsAndValue). The format of the persisted data is same as before (restored the old code that persisted the data). Verified it with an older version of the Preferences file that is very large. Verified that we have sent the right data (sorted and unique settings) to the server and that duplicates were removed from the file. Changed all the code above SpdyFramer to use the above spdy::SettingsMap and spdy::SettingsFlagsAndValue data structures. When chrome sends Spdy Settings to the server, it uses the current SpdyFramer's API calls to create Settings frame. TODO: 1) Delete spdy::SpdySettings and spdy::SpdySetting and replace them with SettingsMap, SpdySettingsIds, SpdySettingsFlags and value. 2) Add version to the persisted data. BUG=117760 R=rch, willchan TEST=network unit tests and browser unit tests. Review URL: http://codereview.chromium.org/9802003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128737 0039d316-1c4b-4281-b951-d872f2087c98
* [net/dns] Don't abort Jobs on hosts-only change.szym@chromium.org2012-03-241-6/+11
| | | | | | | | | BUG=119604 Review URL: http://codereview.chromium.org/9839027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128720 0039d316-1c4b-4281-b951-d872f2087c98
* [net/dns] Don't bind to random ports on Windows to keep the firewall happy.szym@chromium.org2012-03-241-1/+9
| | | | | | | | | | BUG=107413 TEST=Run with --enable-async-dns on Windows. Experience no firewall warning. Review URL: http://codereview.chromium.org/9836041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128713 0039d316-1c4b-4281-b951-d872f2087c98
* Implement correct v3 CREDENTIAL frame support.rch@chromium.org2012-03-2416-113/+211
| | | | | | | | | | BUG=106103 TEST=SpdyCredentialStateTest.*,SpdyFramerTest.*Credential*,SpdyHttpStreamTest.*Credential*,SpdySessionTest.*Credential* Review URL: http://codereview.chromium.org/9535019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128707 0039d316-1c4b-4281-b951-d872f2087c98
* sync: Count and report reflected updatesrlarocque@chromium.org2012-03-241-2/+4
| | | | | | | | | | | | | | | | | | | Many of the updates a sync client receives are echoes of its own changes. This patch attempts to count how often these updates are received by comparing the version of downloaded updates against the local version. These counts are exposed locally through AllStatus/about:sync. We also upload this information to the server through the ClientDebugInfo mechanism. BUG=117565 TEST= Review URL: http://codereview.chromium.org/9702083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128659 0039d316-1c4b-4281-b951-d872f2087c98
* Minor fixes to BackoffEntry.sergeyu@chromium.org2012-03-242-6/+11
| | | | | | | | | 1. maximum_backoff_ms and entry_lifetime_ms now are int64. 2. Protection from integer overflow when calculating delay. Review URL: https://chromiumcodereview.appspot.com/9838069 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128617 0039d316-1c4b-4281-b951-d872f2087c98
* Additional DCHECK for InFlightIO::InvokeCallback.gavinp@chromium.org2012-03-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | I'm interested in InFlightIO::io_list_, which is of type std::set<scoped_refptr<BackgroundIO> >, so it holds refs to the underlying objects. On the primary/callback thread, the erase call in InFlightIO::InvokeCallback can delete the operation if the list holds the last reference. This typically can't happen because the pending tasks hold a reference to the operation; this is good: it means that operations are deleted/newed on the background thread, I believe. This DCHECK() is useful for when you make changes that can delete an operation in the primary thread, like we found with some of the posix races in http://codereview.chromium.org/9702059/ Question: for debugging I like the use of scoped_refptr<BackgroundIO>; but since we never want to delete here, wouldn't a set<BackgroundIO*> on non-debug builds be more in line with our use? BUG=None Review URL: http://codereview.chromium.org/9758002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128593 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache. Fix style on some missing files.rvargas@google.com2012-03-232-22/+20
| | | | | | | | | | No real code change. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9839040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128540 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Refactor BaseTimer to avoid spamming the MessageLoop with orphaned ↵rnk@chromium.org2012-03-232-5/+4
| | | | | | | | | | | | | | tasks." This reverts commit r128412, which is causing DCHECKs in thread destruction in media unittests. BUG=119714,119750 TBR=sky@chromium.org,petermayo@chromium.org Review URL: https://chromiumcodereview.appspot.com/9839059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128506 0039d316-1c4b-4281-b951-d872f2087c98
* [net/dns] Removes locking from DnsConfigServiceWin and adds local computer name.szym@chromium.org2012-03-2312-129/+326
| | | | | | | | | | | | Also adds hostname normalization to lower case when resolving from HOSTS. BUG=112907, 118412, 118995 TEST=./net_unittests --gtest_filter=DnsConfigService* Review URL: http://codereview.chromium.org/9721002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128498 0039d316-1c4b-4281-b951-d872f2087c98
* Retry the auto-enrollment check when the server asks for a smaller modulus.joaodasilva@chromium.org2012-03-231-0/+6
| | | | | | | | | | BUG=chromium-os:28062 TEST=Send more bits with --enterprise-enrollment-initial-modulus than the server expects. AE still succeeds. Review URL: http://codereview.chromium.org/9835021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128475 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY - Added enabling of SPDY/3 and SPDY flow control tortenneti@chromium.org2012-03-233-20/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | about:flags. Added command line switches --enable-spdy3 to enable SPDY/3 and --enable-spdy-flow-control to enable flow control (SPDY/2.1). Added Field Trials for SPDY/2.1 and SPDY/3. The FieldTrials are enabled when SPDY/3 and flow control command line options are not chosen. Removed --use-spdy=v3 and --use-spdy=flow-control options. BUG=118440,119205 R=willchan TEST=Netowrk unit tests and browser tests. Enable SPDY/3 in about:flags and see in chrome://net-internals that SPDY/2, SPDY/2.1 and SPDY/3 are displayed as the protocols supported. Enable SPDY FLow Control in about:flags and see in chrome://net-internals that SPDY/2 and SPDY/2.1 are displayed as the protocols supported. Review URL: http://codereview.chromium.org/9766021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128420 0039d316-1c4b-4281-b951-d872f2087c98
* Disable OCSP tests on Androidrsleevi@chromium.org2012-03-232-0/+12
| | | | | | | | | | | | | The on-demand OCSP test server is not supported on Android. Disable these tests. BUG=119642 TEST=green bots Review URL: http://codereview.chromium.org/9837027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128414 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor BaseTimer to avoid spamming the MessageLoop with orphaned tasks.jbates@chromium.org2012-03-232-4/+5
| | | | | | | | | | | | | | | | This change maintains the same API promises*, but instead of orphaning tasks when they are stopped, the BaseTimer_Helper class holds on to the task until either (1) it expires or (2) the user requests a delay that would arrive earlier than the pending task. If the user requests a longer delay than the pending task, a followup task will be posted when the pending task fires to span the remaining time. * The one change of usage is related to threading. The threading requirements are now more strict. It is not allowed to destruct a timer on a different thread than the one used to post tasks. A thread ID DCHECK is now in place that will help catch misuse. Some existing instances are changed as part of this CL. A side effect of this change is that the BaseTimer and DelayTimer are simplified to use features of BaseTimer_Helper (which is now called Timer). As suggested in timer.h, I ran the disabled TimerTest tests from linux, and they pass consistently. I also added some new tests to verify correct run states. BUG=117451,103667 Review URL: http://codereview.chromium.org/9655006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128412 0039d316-1c4b-4281-b951-d872f2087c98
* Land SpdyFramer (et. al.) changes to support setting the credential slot id ↵rch@chromium.org2012-03-2314-37/+145
| | | | | | | | | | | in SYN_STREAM. Add credential_slot to BufferedSpdyFramer::CreateSynStream Review URL: http://codereview.chromium.org/9839013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128382 0039d316-1c4b-4281-b951-d872f2087c98
* Move SpdyFramer::compression_default_ to a g_enable_compression_default in ↵rch@chromium.org2012-03-232-6/+3
| | | | | | | | spdy_framer.cc to be consisten with style. Review URL: http://codereview.chromium.org/9835019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128375 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Fix style and extra net:: specification.rvargas@google.com2012-03-239-180/+168
| | | | | | | | | | No real code change. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9812031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128364 0039d316-1c4b-4281-b951-d872f2087c98
* Rename origin_bound_cert files to server_bound_cert.mattm@chromium.org2012-03-2216-33/+33
| | | | | | | | | BUG=115348 TEST=try bots Review URL: https://chromiumcodereview.appspot.com/9814028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128323 0039d316-1c4b-4281-b951-d872f2087c98
* Move all objects from the spdy:: namespace to net::rch@chromium.org2012-03-2271-3016/+2932
| | | | | | Review URL: http://codereview.chromium.org/9815028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128310 0039d316-1c4b-4281-b951-d872f2087c98
* [net/dns] Added AsyncDNS histogram for success rate, transaction duration ↵szym@chromium.org2012-03-222-5/+44
| | | | | | | | | | | | and address parse result. BUG=114833, 117770 TEST=Find AsyncDNS.Result in chrome://histograms Review URL: http://codereview.chromium.org/9794001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128280 0039d316-1c4b-4281-b951-d872f2087c98
* Add a few owners for net/tools/testserver.pastarmovj@chromium.org2012-03-221-0/+5
| | | | | | | | | | | | For device_management.py only BUG=none TEST=none Review URL: http://codereview.chromium.org/9839002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128256 0039d316-1c4b-4281-b951-d872f2087c98
* Rename enterprise policy proto fields from KIOSK to RETAIL.pastarmovj@chromium.org2012-03-221-1/+1
| | | | | | | | | | | R=mnissler@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/9814011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128226 0039d316-1c4b-4281-b951-d872f2087c98
* Don't throttle unless origin schema is chrome-extension.joi@chromium.org2012-03-221-0/+6
| | | | | | | | | BUG=83775 Review URL: http://codereview.chromium.org/9819001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128196 0039d316-1c4b-4281-b951-d872f2087c98