summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* Added auto-enrollment request support to the device_management_backend.joaodasilva@chromium.org2011-12-051-0/+39
| | | | | | | | | | | | | Also extended the testserver's device_management.py handler to serve these requests. BUG=chromium-os:23063 TEST=unit_tests and browser_tests all pass Review URL: http://codereview.chromium.org/8741014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113009 0039d316-1c4b-4281-b951-d872f2087c98
* Store session cookies and restore them if chrome crashes or autorestarts.marja@chromium.org2011-12-053-5/+68
| | | | | | | | | | | | The feature is behind a command line flag --enable-restore-session-state. BUG=1870 TEST=CookieMonsterTest.PersistSessionCookies, SQLitePersistentCookieStoreTest.Test(Dont)?LoadOldSessionCookies, SQLitePersistentCookieStoreTest.PersistHasExpiresAndIsPersistent Review URL: http://codereview.chromium.org/8533013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112970 0039d316-1c4b-4281-b951-d872f2087c98
* Make SpdyFrame::size a constant instead of a static method so gcc can ↵thakis@chromium.org2011-12-049-63/+68
| | | | | | | | | | | | | | | | | | optimize the call away. Manual changes to spdy_protocol.h and spdy_framer.cc, rest of the CL generated by running: perl -pi -e "s/SpdyFrame::size\(\)/SpdyFrame::kHeaderSize/" $(git grep -l SpdyFrame::size) This is the same as the google-internal CL 25917366 and 25938381 BUG=94125 TEST=none TBR=willchan Review URL: http://codereview.chromium.org/8790015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112929 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Convert SSLHostInfo::WaitForDataReady.jhawkins@chromium.org2011-12-037-55/+47
| | | | | | | | | | BUG=none TEST=none R=csilv Review URL: http://codereview.chromium.org/8784003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112899 0039d316-1c4b-4281-b951-d872f2087c98
* Fix crash bug in SpdyProxyClientSocket.GetPeerAddress whererch@chromium.org2011-12-033-21/+24
| | | | | | | | | | | | spdy_stream_ was used when NULL. We now copy the peer address and local address from spdy_stream_ when we connect. BUG=106073 TEST=SpdyProxyClientSocket.GetPeerAddressReturnsCorrectValue Review URL: http://codereview.chromium.org/8771012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112871 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Convert ServerSocket::Accept.jhawkins@chromium.org2011-12-037-31/+29
| | | | | | | | | | BUG=none TEST=none R=csilv Review URL: http://codereview.chromium.org/8771030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112863 0039d316-1c4b-4281-b951-d872f2087c98
* Add a preference for enabling the TLS origin-bound certificates extension.wtc@chromium.org2011-12-032-17/+3
| | | | | | | | | | | | The preference is controlled by the command line and enterprise policy. R=mattm@chromium.org,mnissler@chromium.org BUG=106077 TEST=Existing policy unit tests are updated. Review URL: http://codereview.chromium.org/8772014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112848 0039d316-1c4b-4281-b951-d872f2087c98
* ReReland: Allow signing EC certs and creating EC origin-bound certs.mattm@chromium.org2011-12-026-98/+231
| | | | | | | | | BUG=88782 TEST=X509UtilNSSTest Review URL: http://codereview.chromium.org/8537025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112780 0039d316-1c4b-4281-b951-d872f2087c98
* Make SDCH classes IO-thread-only. Remove TSan suppression.joi@chromium.org2011-12-022-3/+19
| | | | | | | | | BUG=105579 Review URL: http://codereview.chromium.org/8749016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112677 0039d316-1c4b-4281-b951-d872f2087c98
* Parse individual X.509 name components on Windows, rather than parsing the ↵rsleevi@chromium.org2011-12-026-91/+309
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | stringified form On Windows, rather than converting the entire certificate name to a string and attempting to parse out the components and values, iterate through the relativeDistinguishedName and AttributeTypeAndValue pairs to extract each name component. This is to ensure that: 1) When multiple AVAs are present in an RDN, ALL AVAs are parsed. 2) When converting an AVA to a string, no extra escaping is applied. This also fixes domainComponent parsing on OS X, so that unittests with a domainComponent can pass. BUG=101009, 102839 TEST=net_unittests:X509CertificateTest has two new regression tests. Additionally, sample a variety of SSL sites and ensure no regressions, paying attention to internationalized domains. Review URL: http://codereview.chromium.org/8608003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112650 0039d316-1c4b-4281-b951-d872f2087c98
* On OS X, when accessing a certificate field (subject, issuer, extension, ↵rsleevi@chromium.org2011-12-021-154/+231
| | | | | | | | | | | | | | etc), rather than parsing the entire certificate and converting all known fields to their CSSM equivalents, just parse the desired field. Additionally, when parsing multiple fields, instead of parsing the certificate multiple times, parse it once and cache the internal parse results. While the cached handle cannot reliably be used across threads, it can reduce the amount of parsing for the common case, where constructing an X509Certificate on OS X requires parsing three fields. BUG=101231 TEST=net_unittests passes on OS X 10.5, 10.6, and 10.7 Review URL: http://codereview.chromium.org/8470012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112636 0039d316-1c4b-4281-b951-d872f2087c98
* Fix shared library build in net.simonjam@chromium.org2011-12-021-1/+1
| | | | | | | | | BUG=None TEST=Build on Win Shared Review URL: http://codereview.chromium.org/8770031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112585 0039d316-1c4b-4281-b951-d872f2087c98
* BookmarkModel cleanup. synced_node is now mobile_node and I'm nukingsky@chromium.org2011-12-011-0/+2
| | | | | | | | | | | | IsVisible as it's no longer needed. This cl resulted in a ton of changes, the majority are renames though. BUG=102714 TEST=covered by tests Review URL: http://codereview.chromium.org/8759017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112558 0039d316-1c4b-4281-b951-d872f2087c98
* Slow start pipelining.simonjam@chromium.org2011-12-0119-426/+1288
| | | | | | | | | | | | | | | | | | | | | We need to wait for an HTTP/1.1 keep-alive response before we try to pipeline. Notably, this fixes wordpress.com and techcrunch.com. Remember which hosts clearly support, or don't support pipelining. If pipelining is supported, skip the slow start. If it's not, fall back to HttpBasicStreams. A site is judged not to support pipelining if we see an old HTTP version or encounter a socket error. A site does support pipelining if it successfully handles 3 requests. There's obviously room for improvement here, but this is a start. Related changes: - In the spirit of CHECK() failing. Use CHECK(false) instead of NOTREACHED(). - HttpPipelinedHost is now an interface with a corresponding Impl. This is to help unit test HttpPipelinedHostPool. BUG=None TEST=net_unittests Review URL: http://codereview.chromium.org/8586015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112557 0039d316-1c4b-4281-b951-d872f2087c98
* Remove all 192 static initializers from transport_security_state.ccthakis@chromium.org2011-12-011-19/+19
| | | | | | | | | | | | | This is necessary for gcc 4.4.3, see the comments on http://codereview.chromium.org/8687014 BUG=94925 TEST=none TBR=willchan Review URL: http://codereview.chromium.org/8776012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112537 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Convert net::NetworkDelegate.jhawkins@chromium.org2011-12-0110-51/+54
| | | | | | | | | | R=groby BUG=none TEST=none Review URL: http://codereview.chromium.org/8743019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112534 0039d316-1c4b-4281-b951-d872f2087c98
* Replace OldCompletionCallbacks and TestOldCompletionCallbacks in ↵yutak@chromium.org2011-12-011-31/+31
| | | | | | | | | | | | SocketStreamTest. BUG=105683 TEST=none Review URL: http://codereview.chromium.org/8757016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112442 0039d316-1c4b-4281-b951-d872f2087c98
* Convert TestOldCompletionCallback in WebSocketJobTest.yutak@chromium.org2011-12-011-3/+3
| | | | | | | | | | BUG=105683 TEST=none Review URL: http://codereview.chromium.org/8763024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112433 0039d316-1c4b-4281-b951-d872f2087c98
* Replace OldCompletionCallback in SocketStream::Delegate.yutak@chromium.org2011-12-017-66/+78
| | | | | | | | | | BUG=105683 TEST=none Review URL: http://codereview.chromium.org/8747013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112414 0039d316-1c4b-4281-b951-d872f2087c98
* export IsPortAllowedByDefault()toyoshim@chromium.org2011-12-011-6/+5
| | | | | | | | | BUG=n/a TEST=n/a Review URL: http://codereview.chromium.org/8747004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112413 0039d316-1c4b-4281-b951-d872f2087c98
* Replace NewRunnableMethod in SocketStream.yutak@chromium.org2011-12-011-5/+5
| | | | | | | | | | BUG=105683 TEST=none Review URL: http://codereview.chromium.org/8741012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112406 0039d316-1c4b-4281-b951-d872f2087c98
* Ensure HttpResponseHeaders::raw_headers_ always ends with 2 '\0' characters.mpcomplete@chromium.org2011-12-012-5/+16
| | | | | | | | | | BUG=105971 TEST=no Review URL: http://codereview.chromium.org/8760010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112401 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 112385 - Reland: Allow signing EC certs and creating EC origin-bound ↵rbyers@chromium.org2011-12-016-228/+98
| | | | | | | | | | | | | | | certs. BUG=88782 TEST=X509UtilNSSTest Review URL: http://codereview.chromium.org/8537025 TBR=mattm@chromium.org Review URL: http://codereview.chromium.org/8764017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112391 0039d316-1c4b-4281-b951-d872f2087c98
* Reland: Allow signing EC certs and creating EC origin-bound certs.mattm@chromium.org2011-12-016-98/+228
| | | | | | | | | | BUG=88782 TEST=X509UtilNSSTest Review URL: http://codereview.chromium.org/8537025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112385 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: More random cleanups.jhawkins@chromium.org2011-12-013-39/+29
| | | | | | | | | | | BUG=none TEST=none R=groby@chromium.org Review URL: http://codereview.chromium.org/8734017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112362 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Add a hash to the entry's internal data.rvargas@google.com2011-11-3020-192/+38
| | | | | | | | | | | | EntryStore and RankingsNode now have a new member that verifies that whatever we read from disk is what we wrote before. BUG=100125 TEST=none Review URL: http://codereview.chromium.org/8658001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112336 0039d316-1c4b-4281-b951-d872f2087c98
* Implement Drain() on HttpPipelinedStream.simonjam@chromium.org2011-11-3011-13/+247
| | | | | | | | | | BUG=102385 TEST=net_unittests Review URL: http://codereview.chromium.org/8591037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112289 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Implement a 1-arity CancelableCallback and use this to implementjhawkins@chromium.org2011-11-301-0/+3
| | | | | | | | | | | | | net::CancelableCompletionClosure. BUG=none TEST=none R=ajwong@chromium.org Review URL: http://codereview.chromium.org/8662047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112279 0039d316-1c4b-4281-b951-d872f2087c98
* SSL Host info: Make sure that we can update certificate chains inrvargas@chromium.org2011-11-305-17/+111
| | | | | | | | | | | the cache. BUG=102554 TEST=net_unittests Review URL: http://codereview.chromium.org/8670009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112271 0039d316-1c4b-4281-b951-d872f2087c98
* net: add toto-dream.com to the False Start blacklist during their transition.agl@chromium.org2011-11-302-0/+3
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112227 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind fixesgroby@chromium.org2011-11-302-30/+16
| | | | | | | | | | | R=jhawkins@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/8735014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112153 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 112130 - Close idle connections / SPDY sessions when needed.sail@chromium.org2011-11-3017-660/+47
| | | | | | | | | | | | | | | | | 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. BUG=62364,92244, 105839 TEST=none Review URL: http://codereview.chromium.org/8340012 TBR=willchan@chromium.org Review URL: http://codereview.chromium.org/8745007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112134 0039d316-1c4b-4281-b951-d872f2087c98
* Close idle connections / SPDY sessions when needed.willchan@chromium.org2011-11-3017-47/+660
| | | | | | | | | | | | | | 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. BUG=62364,92244 TEST=none Review URL: http://codereview.chromium.org/8340012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112130 0039d316-1c4b-4281-b951-d872f2087c98
* Change SpdyProxyClientSocket::OnClose to not call the write callback if this ↵rch@chromium.org2011-11-293-2/+103
| | | | | | | | | | | has been deleted. BUG=105285 TEST=SpdyProxyClientSocket.Rst\* Review URL: http://codereview.chromium.org/8729007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112068 0039d316-1c4b-4281-b951-d872f2087c98
* ake string_util::WriteInto() DCHECK() that the supplied |length_with_null| > ↵pkasting@chromium.org2011-11-295-59/+59
| | | | | | | | | | | | 1, meaning that the without-'\0' string is non-empty. This replaces the conditional code added recently that makes this case return NULL. It's easier to understand if it's simply an error to call WriteInto() in this case at all. Add DCHECK()s or conditionals as appropriate to callers in order to ensure this assertion holds. BUG=none TEST=none Review URL: http://codereview.chromium.org/8418034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112005 0039d316-1c4b-4281-b951-d872f2087c98
* net: make interstitials fatal for pinned sitesagl@chromium.org2011-11-298-465/+388
| | | | | | | | | | BUG=105582 TEST=net_unittests Review URL: http://codereview.chromium.org/8727003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112003 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Update the remove/insert data files.rvargas@google.com2011-11-2967-17/+18
| | | | | | | | | | | | It's been 2 years and three months since the pointer member of RankingsNode was deprecated. These test files were saved before that. BUG=100125 TEST=none Review URL: http://codereview.chromium.org/8637022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111979 0039d316-1c4b-4281-b951-d872f2087c98
* Replace Callback0::Type and NewCallback() in WebSocketJobTest.yutak@chromium.org2011-11-291-33/+36
| | | | | | | | | | BUG=105683 TEST=none Review URL: http://codereview.chromium.org/8729021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111918 0039d316-1c4b-4281-b951-d872f2087c98
* Convert ScopedRunnableMethodFactory in WebSocketJob.yutak@chromium.org2011-11-292-6/+9
| | | | | | | | | | BUG=105683 TEST=none Review URL: http://codereview.chromium.org/8728025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111915 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Convert the following files.jhawkins@chromium.org2011-11-291-2/+2
| | | | | | | | | | | | | | | | | * automation_provider_win.cc * chrome_browser_main.cc * web_socket_proxy_controller.cc * cookie_policy_browsertest.cc * profile_sync_service_autofill_unittest.cc BUG=none TEST=none R=csilv@chromium.org Review URL: http://codereview.chromium.org/8727018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111876 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY changes from server.rtenneti@chromium.org2011-11-297-97/+573
| | | | | | | R=willchan Review URL: http://codereview.chromium.org/8473007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111854 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 111850 - base::Bind: Convert the following files.jhawkins@chromium.org2011-11-291-2/+2
| | | | | | | | | | | | | | | | | | | | * automation_provider_win.cc * chrome_browser_main.cc * web_socket_proxy_controller.cc * cookie_policy_browsertest.cc * profile_sync_service_autofill_unittest.cc BUG=none TEST=none R=csilv@chromium.org Review URL: http://codereview.chromium.org/8727018 TBR=jhawkins@chromium.org Review URL: http://codereview.chromium.org/8729019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111851 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Convert the following files.jhawkins@chromium.org2011-11-291-2/+2
| | | | | | | | | | | | | | | | | * automation_provider_win.cc * chrome_browser_main.cc * web_socket_proxy_controller.cc * cookie_policy_browsertest.cc * profile_sync_service_autofill_unittest.cc BUG=none TEST=none R=csilv@chromium.org Review URL: http://codereview.chromium.org/8727018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111850 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Convert ASCIIToUTF16("") to string16().jhawkins@chromium.org2011-11-281-2/+3
| | | | | | | | | | | | | Inspired by r111713. BUG=none TEST=none R=gbillock@chromium.org Review URL: http://codereview.chromium.org/8687002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111768 0039d316-1c4b-4281-b951-d872f2087c98
* Remove cozi.com from the False Start blacklist at their request.agl@chromium.org2011-11-281-1/+0
| | | | | | | BUG=96637 TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111702 0039d316-1c4b-4281-b951-d872f2087c98
* Fix python scripts in src/netmaruel@chromium.org2011-11-278-8/+2
| | | | | | | | | | | | | | | | | | Make sure that: - shebang is only present for executable files - shebang is #!/usr/bin/env python - __main__ is only present for executable files - file's executable bit is coherent Also fix EOF LF to be only one. TBR=akalin@chromium.org BUG=105108 TEST= Review URL: http://codereview.chromium.org/8669012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111662 0039d316-1c4b-4281-b951-d872f2087c98
* Extract similar code into SetJobObjectAsKillOnJobClose()toyoshim@chromium.org2011-11-231-5/+2
| | | | | | | | | | | | | For now, Chromium have five same code in various place to handle JobObject as KILL_ON_JOB_CLOSE. This change provide a common utility function to be used by them. BUG=n/a TEST=n/a; run existing unit tests because this is just a refactoring change Review URL: http://codereview.chromium.org/8667006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111441 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Convert view_http_cache_job_factory.cc.jhawkins@chromium.org2011-11-233-24/+23
| | | | | | | | | | | | | Had to convert ViewCacheHelper at the same time. BUG=none TEST=none R=csilv@chromium.org Review URL: http://codereview.chromium.org/8680015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111409 0039d316-1c4b-4281-b951-d872f2087c98
* Add OVERRIDE to net/.avi@chromium.org2011-11-2318-220/+259
| | | | | | | | | BUG=104314 TEST=no change Review URL: http://codereview.chromium.org/8648001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111366 0039d316-1c4b-4281-b951-d872f2087c98
* Fix backoff_server.py python scripts in src/netmaruel@chromium.org2011-11-231-114/+114
| | | | | | | | | | | | | | | | | | | | backoff_server.py wasn't using LF EOL so the CQ couldn't be used. Make sure that: - shebang is only present for executable files - shebang is #!/usr/bin/env python - __main__ is only present for executable files - file's executable bit is coherent Also fix EOF LF to be only one. TBR=akalin@chromium.org BUG=105108 TEST= Review URL: http://codereview.chromium.org/8678013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111356 0039d316-1c4b-4281-b951-d872f2087c98