summaryrefslogtreecommitdiffstats
path: root/net/http
Commit message (Collapse)AuthorAgeFilesLines
* net: (*.)logotype.se to HSTS preloaded.agl@chromium.org2013-06-112-0/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205547 0039d316-1c4b-4281-b951-d872f2087c98
* Update includes of message_loop_proxy.brettw@chromium.org2013-06-101-1/+1
| | | | | | | | | | | This keeps the forwarding header, just updates all current callers. BUG= R=avi@chromium.org Review URL: https://codereview.chromium.org/16514006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205306 0039d316-1c4b-4281-b951-d872f2087c98
* net: add (*.)conformal.com, (*.)cyphertite.com to HSTS preloaded.agl@chromium.org2013-06-102-0/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205215 0039d316-1c4b-4281-b951-d872f2087c98
* Generate constants for HTTP status codes and reason phrases using macro.tyoshino@chromium.org2013-06-104-68/+97
| | | | | | Review URL: https://chromiumcodereview.appspot.com/16622002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205202 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of utf_string_conversions.h in net/.avi@chromium.org2013-06-0722-22/+22
| | | | | | | | | | BUG=none TEST=none TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/15995039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204876 0039d316-1c4b-4281-b951-d872f2087c98
* net: add carezone.com to HSTS preloaded list.agl@chromium.org2013-06-072-0/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204855 0039d316-1c4b-4281-b951-d872f2087c98
* Factor out HTTP status code and reason phrase in Blob and Stream ↵tyoshino@chromium.org2013-06-072-0/+48
| | | | | | | | | | | | | infrastructure into net/. TEST= out/Debug/content_unittests --gtest_filter='*Stream*' out/Debug/content_unittests --gtest_filter='*Blob*' out/Debug/net_unittests Review URL: https://chromiumcodereview.appspot.com/16120005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204797 0039d316-1c4b-4281-b951-d872f2087c98
* Make some more code use "if (weak_ptr)" styleakalin@chromium.org2013-06-071-2/+2
| | | | | | | | | | | This is a revert of r204036 and part of r203996. BUG=245942 TBR=darin@chromium.org Review URL: https://chromiumcodereview.appspot.com/16571012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204773 0039d316-1c4b-4281-b951-d872f2087c98
* net: add (*.)inertianetworks.com to HSTS preloaded list.agl@chromium.org2013-06-062-0/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204527 0039d316-1c4b-4281-b951-d872f2087c98
* Expose the HttpResponseInfo's ConnectionInfo in window.chrome.loadTimes()rch@chromium.org2013-06-062-6/+32
| | | | | | Review URL: https://chromiumcodereview.appspot.com/12792010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204393 0039d316-1c4b-4281-b951-d872f2087c98
* Preload HSTS for paypal.com.palmer@chromium.org2013-06-063-2/+6
| | | | | | | | | | | | Not just www.paypal.com. BUG=245148 TEST=Navigating to http://paypal.com causes no HTTP traffic, only HTTPS traffic. Review URL: https://chromiumcodereview.appspot.com/16261002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204373 0039d316-1c4b-4281-b951-d872f2087c98
* Fix even more remaining uses of WeakPtr<T>'s operator T* conversionakalin@chromium.org2013-06-041-2/+2
| | | | | | | | | | | | These cases weren't caught by the automated pass and/or needed to be solved in another way than using .get(). BUG=245942 TBR=darin@chromium.org Review URL: https://codereview.chromium.org/16226028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204036 0039d316-1c4b-4281-b951-d872f2087c98
* Change --origin-port-to-force-quic-on to --origin-to-force-quic-on.rch@chromium.org2013-06-043-5/+4
| | | | | | | | Instead of forcing QUIC on for all origins with the specified port, this will allow QUIC to be forced for a particular origin. The old flag made it challenging to test QUIC to servers on non-unique ports (like 80 or 443). Review URL: https://chromiumcodereview.appspot.com/15896025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203842 0039d316-1c4b-4281-b951-d872f2087c98
* We don't need DomainState::Equals.palmer@chromium.org2013-06-022-9/+0
| | | | | | | | | | | | It never gets called in the current implementation, and the concept of DomainState is changing to better support HPKP and TACK. BUG=171025 TBR=cbentzel,agl Review URL: https://chromiumcodereview.appspot.com/16236007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203639 0039d316-1c4b-4281-b951-d872f2087c98
* Update net/ to use WeakPtr<T>::get() instead of implicit "operator T*"akalin@chromium.org2013-06-023-20/+20
| | | | | | | | BUG=245942 Review URL: https://chromiumcodereview.appspot.com/15881011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203633 0039d316-1c4b-4281-b951-d872f2087c98
* Update net/ to use scoped_refptr<T>::get() rather than implicit "operator T*"rsleevi@chromium.org2013-06-0132-610/+645
| | | | | | | | | | | Linux fixes BUG=110610 TBR=darin Review URL: https://chromiumcodereview.appspot.com/15829004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203535 0039d316-1c4b-4281-b951-d872f2087c98
* Implement TLS 1.2.wtc@chromium.org2013-05-302-0/+30
| | | | | | | | | | | | Patch by Adam Langley. R=agl@chromium.org BUG=90392 TEST=net_unittests Review URL: https://chromiumcodereview.appspot.com/14772023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203090 0039d316-1c4b-4281-b951-d872f2087c98
* Remove "--hsts-hosts" so we don't have to maintain it during upcoming ↵unsafe@trevp.net2013-05-292-23/+0
| | | | | | | | | | | | | changes to the TransportSecurityState data structures and JSON format. The "--hsts-hosts" feature is likely unused, is redundant with net-internals, and is dangerous since it fails silently. Also it exposes the internal JSON format to the user. BUG=156152 R=rsleevi,palmer Review URL: https://chromiumcodereview.appspot.com/15711007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202957 0039d316-1c4b-4281-b951-d872f2087c98
* net: don't process truncated headers on HTTPS connections.agl@chromium.org2013-05-294-15/+139
| | | | | | | | | | | This change causes us to not process any headers unless they are correctly terminated with a \r\n\r\n sequence. BUG=244260 Review URL: https://chromiumcodereview.appspot.com/15688012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202927 0039d316-1c4b-4281-b951-d872f2087c98
* net: HSTS preloading for several linode.com domainsagl@chromium.org2013-05-282-0/+18
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202652 0039d316-1c4b-4281-b951-d872f2087c98
* [SPDY] Add a SpdyStreamType enum and use it for SpdyStreamakalin@chromium.org2013-05-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | Use SpdyStreamType to enforce stream and stream delegate semantics instead of trying to infer it from various parameters and return values. Remove now-redundant return value of SpdyStream::Delegate::OnSendRequestHeadersComplete(). Comment expected semantics of SpdyStream::Delegate member functions and related SpdyStream member functions. Enforce some restrictions on push streams. Namely, set send_status_ to NO_MORE_DATA_TO_SEND immediately for them, and make sure its entry point is SpdyStream::OnResponseReceived(). Also clarify how push streams interact with the stream histograms. BUG=243643 Review URL: https://chromiumcodereview.appspot.com/15701009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202401 0039d316-1c4b-4281-b951-d872f2087c98
* Have HttpSecurityHeaders return the 'raw' max_age for HPKP/HSTS headers, ↵unsafe@trevp.net2013-05-254-221/+196
| | | | | | | | | | | | | | | rather than computing the expiration internally. This makes it easier for the caller to handle the special max-age=0. BUG=156152 R=rsleevi,palmer Review URL: https://chromiumcodereview.appspot.com/15962009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202272 0039d316-1c4b-4281-b951-d872f2087c98
* Preload strict HSTS for security.google.com.palmer@chromium.org2013-05-242-0/+2
| | | | | | | | | BUG=243385 R=rsleevi@chromium.org Review URL: https://codereview.chromium.org/15755015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202117 0039d316-1c4b-4281-b951-d872f2087c98
* Merge ConstructSpdyConnectttuttle@chromium.org2013-05-244-38/+40
| | | | | | | | BUG=226192 Review URL: https://chromiumcodereview.appspot.com/15784005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202099 0039d316-1c4b-4281-b951-d872f2087c98
* net: Use base::MessageLoop.xhwang@chromium.org2013-05-2314-138/+137
| | | | | | | | | BUG=236029 R=agl@chromium.org Review URL: https://chromiumcodereview.appspot.com/14021017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201882 0039d316-1c4b-4281-b951-d872f2087c98
* Merge ConstructSpdyGet into SpdyTestUtilttuttle@chromium.org2013-05-232-113/+130
| | | | | | | | BUG=226192 Review URL: https://chromiumcodereview.appspot.com/15259003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201744 0039d316-1c4b-4281-b951-d872f2087c98
* Fix bug in handling QUIC connections that error out early.rch@chromium.org2013-05-221-0/+4
| | | | | | Review URL: https://chromiumcodereview.appspot.com/14951008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201639 0039d316-1c4b-4281-b951-d872f2087c98
* net: Fix GetLoadState of a stream request when it's waitingmmenke@chromium.org2013-05-182-3/+26
| | | | | | | | | | | on a connection to be established. The state of the connection was not being queried, due to a old regression. BUG=118136 Review URL: https://chromiumcodereview.appspot.com/15322002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200985 0039d316-1c4b-4281-b951-d872f2087c98
* ChannelID-less Connections in Chrome should be more granular.mef@chromium.org2013-05-1713-73/+222
| | | | | | | | | | | | | | | | 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
* Grab bag of clang fixes for Windows codernk@chromium.org2013-05-172-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These should hopefully be uncontroversial, so I'm sending them to Darin because he has global OWNERS approval on src/*. Let me know if you want to split this up and farm it out to individual components. R=darin@chromium.org CC=thakis@chromium.org BUG=82385 Fix some -Wdeprecated-writable-strings warnings for wide string literals. net/dns/dns_config_service_win_unittest.cc net/http/http_auth_sspi_win.cc net/http/http_auth_sspi_win.h ui/shell_dialogs/select_file_dialog_win_unittest.cc Use reinterpret_cast<> to convert from void * to a function pointer. chrome/browser/policy/policy_loader_win.cc content/browser/gamepad/gamepad_platform_data_fetcher_win.cc Remove "public" from a typedef. It's not clear that that really means. chrome/browser/enumerate_modules_model_unittest_win.cc Escape an unescaped backslash in a wide string iteral to prevent it from being interpreted as a unicode literal ("\uXXX"). chrome/browser/storage_monitor/test_portable_device_watcher_win.cc Use base::UTF8ToUTF16() over ATL::CA2W() and avoid an unnecessary c_str(). Clang can't convert from CA2WEX<> to string16. chrome/browser/ui/views/external_tab_container_win.cc Fix a -Wenum-compare warning when asserting that two enum values are equal. sandbox/win/src/policy_params.h Don't define va_copy for clang. It provides one in <stdarg.h>. third_party/leveldatabase/port/port_chromium.h Review URL: https://chromiumcodereview.appspot.com/15200005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200814 0039d316-1c4b-4281-b951-d872f2087c98
* net: remove include_subdomains for square.comagl@chromium.org2013-05-162-2/+2
| | | | | | They realised that they can't do that yet. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200637 0039d316-1c4b-4281-b951-d872f2087c98
* net: add (*.)square.com to HSTS preloaded.agl@chromium.org2013-05-162-0/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200569 0039d316-1c4b-4281-b951-d872f2087c98
* Add HttpCache.ReadError* histograms.gavinp@chromium.org2013-05-151-0/+10
| | | | | | | | | | | | | | | Use sparse histograms to track causes of errors in cache reads. At the same time, expand error reporting in SimpleCache. This is intended to help track down transient read errors in the simple cache, but may be useful on other backends as well. R=pasko@chromium.org,felipeg,rvargas BUG=239223 Review URL: https://chromiumcodereview.appspot.com/14750008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200363 0039d316-1c4b-4281-b951-d872f2087c98
* net: Return LoadTiming information in the case of a cache hit.mmenke@chromium.org2013-05-1510-91/+335
| | | | | | | | | | | | | 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
* Merge framer-based Construct* functions to SpdyTestUtilttuttle@chromium.org2013-05-154-26/+40
| | | | | | | | | | | Merge several of the Construct* functions that just call through into the framer into SpdyTestUtil. BUG=226192 Review URL: https://chromiumcodereview.appspot.com/15112006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200353 0039d316-1c4b-4281-b951-d872f2087c98
* [SPDY] Incorporate latest framing changes from HTTP2 into SPDY 4 as SPDY 4a2.akalin@chromium.org2013-05-154-20/+4
| | | | | | | | | | | | | | | | Removes support for SPDY 4a1. Remove --enable-spdy4 flag for now (until we get test coverage). This lands server change 45362310. BUG=230124 TBR=jam@chromium.org Review URL: https://chromiumcodereview.appspot.com/14189003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200342 0039d316-1c4b-4281-b951-d872f2087c98
* Bypass data reduction proxy on receipt of a 500 response codebengr@chromium.org2013-05-152-3/+94
| | | | | | | | BUG=238844 Review URL: https://chromiumcodereview.appspot.com/14865009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200153 0039d316-1c4b-4281-b951-d872f2087c98
* Merge ConstructSpdyControlFrame into SpdyTestUtil.ttuttle@chromium.org2013-05-144-78/+82
| | | | | | | | BUG=226192 Review URL: https://chromiumcodereview.appspot.com/14975006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200045 0039d316-1c4b-4281-b951-d872f2087c98
* Make SpdySessions implement LayeredPool and hook them upmmenke@chromium.org2013-05-142-2/+374
| | | | | | | | | | | to their parent socket pool as, so they can be closed when they're idle and the parent pool is stalled. BUG=92244 Review URL: https://chromiumcodereview.appspot.com/14473012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199880 0039d316-1c4b-4281-b951-d872f2087c98
* Override server-side simple-cache trial with commandline switches.pasko@google.com2013-05-132-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | FIXING broken about:flags for simple cache on Android. Until recently we used a trick to avoid dedicated global settings in net::disk_cache other than the objects belonging to the infrastructure of the trials. The commandline flag would change the experiment group on the chromium side, while one the net/ side we would check which group we belong to. Later we decided to switch to the server-controlled experiments. This went into a conflict with our approach: the server-controlled experiment would override the settings set by the command-line option. This is unfortunate. Stevet@ suggests that there are plans to avoid overriding the experiment groups by the server config, but in the meantime the trick stops working. Solve this by adding backend type enum provided at backend instantiation. TBR=jam@chromium.org BUG=239461 Review URL: https://chromiumcodereview.appspot.com/14828004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199708 0039d316-1c4b-4281-b951-d872f2087c98
* [SPDY] Make sure final SpdyStream references are held by SpdySessionakalin@chromium.org2013-05-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This will make it much easier to avoid use-after-free bugs when we make SpdyStream not ref-counted. Expose only WeakPtr<SpdyStream> objects outside of SpdySession and SpdyWriteQueue. Introduce SpdySession::DeleteStreamRefs, which takes a pointer to the last scoped_refptr to that stream and serves as its destructor. Fix a lot of dangling SpdyStream references in tests. Remove SpdyStream::cancelled(), as a stream now guaranteed to be deleted when cancelled. Split SpdyStreamRequest::OnRequestComplete() into OnRequestComplete{Success,Failure}(). BUG=178943 Review URL: https://chromiumcodereview.appspot.com/14812007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199688 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 199535 "Add GetFullRequestHeaders, from URLRequestJob to ..."ttuttle@chromium.org2013-05-109-566/+6
| | | | | | | | | | | | | | | | | | | | | > Add GetFullRequestHeaders, from URLRequestJob to HttpNetworkTransaction. > > Dev Tools displays the raw request and response headers. Right now, it gets > them by snarfing them out of the NetLog, which is bad, as the NetLog is for > huamn consumption only. I'm trying to refactor the DevToolsNetLogObserver > away; providing an alternate, supported path to get the request headers is the > first step. > > BUG=196304 > TEST=added to URLRequest, HttpTransaction, and HttpNetworkTransaction unittests > > Review URL: https://chromiumcodereview.appspot.com/12621011 TBR=ttuttle@chromium.org Review URL: https://codereview.chromium.org/15054003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199553 0039d316-1c4b-4281-b951-d872f2087c98
* Add GetFullRequestHeaders, from URLRequestJob to HttpNetworkTransaction.ttuttle@chromium.org2013-05-109-6/+566
| | | | | | | | | | | | | | | Dev Tools displays the raw request and response headers. Right now, it gets them by snarfing them out of the NetLog, which is bad, as the NetLog is for huamn consumption only. I'm trying to refactor the DevToolsNetLogObserver away; providing an alternate, supported path to get the request headers is the first step. BUG=196304 TEST=added to URLRequest, HttpTransaction, and HttpNetworkTransaction unittests Review URL: https://chromiumcodereview.appspot.com/12621011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199535 0039d316-1c4b-4281-b951-d872f2087c98
* Timeout HTTP proxy connect jobs faster on iOSbengr@chromium.org2013-05-101-2/+3
| | | | | | | | BUG=239514 Review URL: https://chromiumcodereview.appspot.com/14969011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199363 0039d316-1c4b-4281-b951-d872f2087c98
* Disable SSL3 fallback restriction on Google propertiesthaidn@google.com2013-05-091-3/+9
| | | | | | | | | | | 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
* Add a DeterministicMockUDPClientSocket. rch@chromium.org2013-05-081-1/+1
| | | | | | | | Factor out the shared code between the deterministic TCP and UDP client sockets into a DeterministicSocketHelper. Review URL: https://chromiumcodereview.appspot.com/14796009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198935 0039d316-1c4b-4281-b951-d872f2087c98
* net: add (www.)grc.com to HSTS preloaded list.agl@chromium.org2013-05-062-0/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198547 0039d316-1c4b-4281-b951-d872f2087c98
* net: add (*.)sah3.net to HSTS preloaded list.agl@chromium.org2013-05-062-0/+2
| | | | | | By request of Jorn Mineur. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198473 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r197164: Avoid crashing the browser on truncated reads [...]pasko@google.com2013-05-061-24/+2
| | | | | | | | | | | After a long discussion it was decided that the backend is the only proper place for this kind of correctness checks. All backends should do that. BUG=236384 Review URL: https://chromiumcodereview.appspot.com/14740016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198425 0039d316-1c4b-4281-b951-d872f2087c98
* Support optimistic Create and Write operations on the SimpleCache.felipeg@chromium.org2013-05-041-1/+3
| | | | | | | | | | | | | | | | | On CreateEntry we return net::OK immediately while issuing a WorkerPool thread to create the files. If the file creation fails, we will fail every next operation in the same entry. If another (read or write) operation is called in that entry before the completion of the creation, that entry is enqueued and we return IO_PENDING. The same happens to the WriteData operation. If the WriteData is called in an entry that does not have any operation in progress, we return buf_len immediately and issue a WorkerPool to write the data in the background. If the WriteData operation fails every next operation will fail. If we receive another Read/Write operation while the WriteData background operation did not complete, we always enqueue the operation and return IO_PENDING. BUG=173400 Review URL: https://chromiumcodereview.appspot.com/13907009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198286 0039d316-1c4b-4281-b951-d872f2087c98