summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* Upstream X509Util and AndroidNetworkLibrary refactoring.acleung@google.com2012-08-212-89/+123
| | | | | | | | BUG=142348 Review URL: https://chromiumcodereview.appspot.com/10824337 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152636 0039d316-1c4b-4281-b951-d872f2087c98
* Split net::UploadData into two: for resource request IPC and for upload handlingkinuko@chromium.org2012-08-215-44/+23
| | | | | | | | | | | | | | | | | Introducing webkit_glue::ResourceRequestBody as a content-level abstraction corresponding to WebHTTPBody and as an alternative of net::UploadData in ResourceRequest. This interface can contain content-level objects like Blob (or FileSystem URL in later patches) while net::UploadData should NOT. This patch also removes Blob support in net::UploadData. BUG=110119 TEST=existing tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=152528 Review URL: https://chromiumcodereview.appspot.com/10834289 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152553 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 152528 - Split net::UploadData into two: for resource request IPC and ↵kinuko@chromium.org2012-08-215-21/+31
| | | | | | | | | | | | | | | | | | | | for upload handling Introducing webkit_glue::ResourceRequestBody as a content-level abstraction corresponding to WebHTTPBody and as an alternative of net::UploadData in ResourceRequest. This interface can contain content-level objects like Blob (or FileSystem URL in later patches) while net::UploadData should NOT. This patch also removes Blob support in net::UploadData. BUG=110119 TEST=existing tests Review URL: https://chromiumcodereview.appspot.com/10834289 TBR=kinuko@chromium.org Review URL: https://chromiumcodereview.appspot.com/10831402 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152529 0039d316-1c4b-4281-b951-d872f2087c98
* Split net::UploadData into two: for resource request IPC and for upload handlingkinuko@chromium.org2012-08-215-31/+21
| | | | | | | | | | | | | | | Introducing webkit_glue::ResourceRequestBody as a content-level abstraction corresponding to WebHTTPBody and as an alternative of net::UploadData in ResourceRequest. This interface can contain content-level objects like Blob (or FileSystem URL in later patches) while net::UploadData should NOT. This patch also removes Blob support in net::UploadData. BUG=110119 TEST=existing tests Review URL: https://chromiumcodereview.appspot.com/10834289 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152528 0039d316-1c4b-4281-b951-d872f2087c98
* Fix comments in websocket_stream.h.yutak@chromium.org2012-08-211-2/+2
| | | | | | | | | | BUG=none R=mmenke@chromium.org Review URL: https://chromiumcodereview.appspot.com/10828384 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152526 0039d316-1c4b-4281-b951-d872f2087c98
* Add a function that calculates the size of WebSocket frame header.yutak@chromium.org2012-08-212-17/+30
| | | | | | | | | | | | | This function will be used to determine the size of buffer needed for writing WebSocket frame header. BUG=116624 R=mmenke@chromium.org Review URL: https://chromiumcodereview.appspot.com/10825444 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152518 0039d316-1c4b-4281-b951-d872f2087c98
* [Coverity] Pass-by-ref instead of valuegroby@chromium.org2012-08-212-4/+5
| | | | | | | | | | | | | CID=104690,104691 CID_COUNT=2 R=jar@chromium.org BUG=none Review URL: https://chromiumcodereview.appspot.com/10857049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152515 0039d316-1c4b-4281-b951-d872f2087c98
* WebSocket over SPDY: unit test cleanuptoyoshim@chromium.org2012-08-2112-257/+219
| | | | | | | | | | | | | To prepare for new framing implementation and tests. - update test data to mimic real cases and follow the latest spec - reorganize utility functions for tests BUG=42320 TEST=net_unittests Review URL: https://chromiumcodereview.appspot.com/10832335 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152484 0039d316-1c4b-4281-b951-d872f2087c98
* When trying to identify when network data is received while thepauljensen@chromium.org2012-08-211-1/+2
| | | | | | | | | | | | NetworkChangeNotifier thinks we are offline, ignore cases when there is no data received or the data came from the cache. BUG=124069 Review URL: https://chromiumcodereview.appspot.com/10860045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152483 0039d316-1c4b-4281-b951-d872f2087c98
* net: Make UploadData::Element an independent classhashimoto@chromium.org2012-08-219-388/+425
| | | | | | | | | | | | | This is a part of the ongoing refactoring of net::UploadData. UploadData::Element is renamed to UploadElement and is moved from upload_data.cc/h to upload_element.cc/h. BUG=None TEST=net_unittests TBR=kinuko@chromium.org,darin@chromium.org Review URL: https://chromiumcodereview.appspot.com/10827425 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152481 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 151198 - Turn off TLS 1.1.wtc@chromium.org2012-08-204-3/+16
| | | | | | | | | | | | | | | | Review URL: https://chromiumcodereview.appspot.com/10828272 Bug 141629 has been fixed. We can turn on TLS 1.1 on the trunk. TBR=agl@chromium.org,rsleevi@chromium.org BUG=142172 TEST=Visit https://www.google.com/ and https://www.facebook.com/. Click the lock icon. The page info bubble should say "The connection uses TLS 1.1." Review URL: https://chromiumcodereview.appspot.com/10854212 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152404 0039d316-1c4b-4281-b951-d872f2087c98
* Add histograms for network activity, and total/cumulativetburkard@chromium.org2012-08-2012-65/+175
| | | | | | | | histograms for cache/network activity. R=rvargas@chromium.org, mmenke@chromium.org Review URL: https://chromiumcodereview.appspot.com/10834313 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152398 0039d316-1c4b-4281-b951-d872f2087c98
* Replaced static URLRequestFileJob factory with non-static protocol handler ↵shalev@chromium.org2012-08-205-20/+95
| | | | | | | | | | | | | for File jobs This is a refactor and shouldn't have any visible behavioral change. BUG=crbug.com/142945 TEST=browser_tests --single_process --gtest_filter=FullscreenControllerTest.FullscreenFileURL Review URL: https://chromiumcodereview.appspot.com/10700117 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152381 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 152360 - Disk cache: Disable checking the lists on start-up.rvargas@google.com2012-08-201-0/+3
| | | | | | | | | | | | | | This cl is intended for the beta channel. BUG=143743 TEST=none TBR=gavinp@chromium.org Review URL: https://chromiumcodereview.appspot.com/10837341 TBR=rvargas@google.com Review URL: https://chromiumcodereview.appspot.com/10854230 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152364 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Disable checking the lists on start-up.rvargas@google.com2012-08-201-3/+0
| | | | | | | | | | | This cl is intended for the beta channel. BUG=143743 TEST=none TBR=gavinp@chromium.org Review URL: https://chromiumcodereview.appspot.com/10837341 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152360 0039d316-1c4b-4281-b951-d872f2087c98
* net: Fix more clang warnings about missing virtual and OVERRIDE annotations.tfarina@chromium.org2012-08-1912-35/+37
| | | | | | | | | | BUG=115047 R=willchan@chromium.org Review URL: https://chromiumcodereview.appspot.com/10825437 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152296 0039d316-1c4b-4281-b951-d872f2087c98
* linux/clang: Disable the last two warnings, turn on -Werrorthakis@chromium.org2012-08-181-0/+7
| | | | | | | | | BUG=138571 TBR=tony Review URL: https://chromiumcodereview.appspot.com/10855238 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152242 0039d316-1c4b-4281-b951-d872f2087c98
* Disable SpdyCredentialBuilder tests with OpenSSL.pliard@chromium.org2012-08-171-6/+44
| | | | | | | | | | | | | | | These tests fail on Linux redux, that uses OpenSSL, due to ec_private_key_openssl.cc which is not implemented yet. They were already disabled on Android through an entry in build/android/gtest_filter/net_unittests_disabled. TEST=net_unittests BUG=142833,140991 Review URL: https://chromiumcodereview.appspot.com/10830354 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152163 0039d316-1c4b-4281-b951-d872f2087c98
* Move small c/b/extensions classes into extensions namespace no.1rdevlin.cronin@chromium.org2012-08-171-2/+2
| | | | | | | | | | | | | | | | | Since these classes are small, they can be all be moved in one cl without it becoming overly large. This one moves: - AppShortcutManager - AutoUpdateInterceptor - ConvertWebApp - ExtensionActivityLog (now extensions::ActivityLog) BUG=117261 TBR=jam@chromium.org, willchan@chromium.org Review URL: https://chromiumcodereview.appspot.com/10824198 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152159 0039d316-1c4b-4281-b951-d872f2087c98
* When renegotiating, continue to use the client_version used in thewtc@chromium.org2012-08-175-45/+242
| | | | | | | | | | | | | | | | | | initial ClientHello to work around a Windows SChannel bug. Cap the record layer version number to TLS 1.0 only for the initial ClientHello. The record layer version number of the ClientHello in a renegotiation should use the currently negotiated version number. R=agl@chromium.org,rsleevi@chromium.org BUG=141629 TEST=Visit https://solutionscenter.naradana.net/, an IIS server that requests (but doesn't require) client certificates over renegotiation. The page should be laid out correctly. Review URL: https://chromiumcodereview.appspot.com/10828269 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152116 0039d316-1c4b-4281-b951-d872f2087c98
* Do not perform online revocation checking when the user has explicitly ↵rsleevi@chromium.org2012-08-1711-193/+312
| | | | | | | | | | | | | disabled it, except for when verifying EV certificates where a CRLSet is not present or fresh. This changes how EVRootMetaData exposes the EV information when NSS is used, in order to efficiently detect when a leaf certificate may be an EV certificate. BUG=142815 TEST=Test modem enrollment on CrOS as described in chrome-os-partner:9087 Review URL: https://chromiumcodereview.appspot.com/10857020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152043 0039d316-1c4b-4281-b951-d872f2087c98
* Run the disk cache tests in scoped temporary directories instead of a fixed ↵jam@chromium.org2012-08-176-58/+12
| | | | | | | | | directory so that they can run in parallel. BUG=139272 Review URL: https://chromiumcodereview.appspot.com/10824336 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151999 0039d316-1c4b-4281-b951-d872f2087c98
* Replace hardcoded ssl_variant_stream with ss->protocolVariant.wtc@chromium.org2012-08-165-3/+61
| | | | | | | | | | R=rsleevi@chromium.org BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10836273 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151852 0039d316-1c4b-4281-b951-d872f2087c98
* net: cleanup code to disable ECDSAagl@chromium.org2012-08-161-34/+11
| | | | | | | | | r151845 was merge friendly for M21. But since we don't support OS X 10.5 for M22 and onwards, we can clean it up a bit for trunk. BUG=142782 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151846 0039d316-1c4b-4281-b951-d872f2087c98
* net: disable ECDSA ciphersuites on platforms where we can't support it.agl@chromium.org2012-08-162-0/+34
| | | | | | | | BUG=142782 https://chromiumcodereview.appspot.com/10830326/ git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151845 0039d316-1c4b-4281-b951-d872f2087c98
* net: preparatory patch for crbug.com/142782agl@chromium.org2012-08-161-0/+8
| | | | | | | | | This patch is needed so that we can have a clean patch to merge to M21. https://chromiumcodereview.appspot.com/10830326/ git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151842 0039d316-1c4b-4281-b951-d872f2087c98
* Added warning when URLRequestContextGetter leaks.atwilson@chromium.org2012-08-151-1/+7
| | | | | | | | | | | | | If URLRequestContextGetter's refcount drops to zero after the IO thread has already gone away, the object leaks. This can be tricky to track down, so now we emit a warning message to the logs. BUG=142702 Review URL: https://chromiumcodereview.appspot.com/10857008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151792 0039d316-1c4b-4281-b951-d872f2087c98
* Adding AndroidProxySelectorTest to ContentShellaurimas@chromium.org2012-08-152-0/+339
| | | | | | | | | | | | Adding AndroidProxySelectorTests to the ContentShellTest bundle. These tests are used to check if the proxy settings are functioning correctly. CRBUG=136719 Review URL: https://chromiumcodereview.appspot.com/10830287 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151779 0039d316-1c4b-4281-b951-d872f2087c98
* [net/dns] Resolve AF_UNSPEC on dual-stacked systems. Sort addresses ↵szym@chromium.org2012-08-1522-111/+1554
| | | | | | | | | | | | | according to RFC3484. Original review: http://codereview.chromium.org/10442098/ BUG=113993 TEST=./net_unittests --gtest_filter=AddressSorter*:HostResolverImplDnsTest.DnsTaskUnspec Review URL: https://chromiumcodereview.appspot.com/10855179 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151750 0039d316-1c4b-4281-b951-d872f2087c98
* [net/dns] Don't conflate all unhandled errors into DNS_SERVER_FAILED.szym@chromium.org2012-08-151-1/+1
| | | | | | | | | | | | We are seeing significant fraction of DnsTransactions failing with DNS_SERVER_FAILED but can't tell if it's a socket error or an actual response from the server. BUG=142918 Review URL: https://chromiumcodereview.appspot.com/10830338 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151748 0039d316-1c4b-4281-b951-d872f2087c98
* net: workaround compression leaksagl@chromium.org2012-08-155-56/+218
| | | | | | | | | | | | | | (This is a reland of r151502, which was reverted in r151517 because it broke the Linux Official build.) This may break the Official build for a brief window while a two-sided patch lands. BUG=139744 Review URL: https://chromiumcodereview.appspot.com/10837057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151720 0039d316-1c4b-4281-b951-d872f2087c98
* When measuring waste in the DNS resolver related to AF_UNSPEC lookups, alsopauljensen@chromium.org2012-08-151-40/+41
| | | | | | | | | | | measure when we could be combining jobs. BUG=139811 Review URL: https://chromiumcodereview.appspot.com/10824297 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151710 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY: WriteHeaders should invoke OnDataSent callbacktoyoshim@chromium.org2012-08-1514-30/+77
| | | | | | | | | | | | | Introduce a completion waiting list, and check which kind of frame is sent. OnDataSent() is invoked iff the frame wis data frame. BUG=42320 TEST=net_unittests Review URL: https://chromiumcodereview.appspot.com/10828129 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151647 0039d316-1c4b-4281-b951-d872f2087c98
* [net/dns] Hardcode DnsConfig.timeout to 1 second.szym@chromium.org2012-08-153-2/+9
| | | | | | | | | | | | | Currently, it is read from OS (if available) or set to 5 seconds (on Windows). In some cases the OS provides ridiculous values (30s on Mac). This change hard-codes the timeout to 1 second, which is the default used by getaddrinfo on Windows and Mac. BUG=124437 Review URL: https://chromiumcodereview.appspot.com/10826212 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151626 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 151586 - [net/dns] Resolve AF_UNSPEC on dual-stacked systems. Sort ↵brettw@chromium.org2012-08-1422-1536/+111
| | | | | | | | | | | | | | addresses according to RFC3484. BUG=113993 TEST=./net_unittests --gtest_filter=AddressSorter*:HostResolverImplDnsTest.DnsTaskUnspec Review URL: https://chromiumcodereview.appspot.com/10442098 TBR=szym@chromium.org Review URL: https://chromiumcodereview.appspot.com/10855163 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151603 0039d316-1c4b-4281-b951-d872f2087c98
* [net/dns] Resolve AF_UNSPEC on dual-stacked systems. Sort addresses ↵szym@chromium.org2012-08-1422-111/+1536
| | | | | | | | | | | according to RFC3484. BUG=113993 TEST=./net_unittests --gtest_filter=AddressSorter*:HostResolverImplDnsTest.DnsTaskUnspec Review URL: https://chromiumcodereview.appspot.com/10442098 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151586 0039d316-1c4b-4281-b951-d872f2087c98
* Exclude more files from Android buildwangxianzhu@chromium.org2012-08-141-0/+1
| | | | | | | | | | | | | | These files are not used on Android but were unnecessarily compiled. They didn't affect binary size because they were removed during linker GC, but excluding them may save build time, and help future modular exclusion. BUG=none TBR=ben,kbr,brettw,jar (An Android only change to gyps) Review URL: https://chromiumcodereview.appspot.com/10823291 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151529 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "net: workaround compression leaks"agl@chromium.org2012-08-145-218/+56
| | | | | | This reverts r151502. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151517 0039d316-1c4b-4281-b951-d872f2087c98
* net: workaround compression leaksagl@chromium.org2012-08-145-56/+218
| | | | | | | | BUG=139744 Review URL: https://chromiumcodereview.appspot.com/10837057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151502 0039d316-1c4b-4281-b951-d872f2087c98
* Sort includes in cookie_monster.h.pliard@chromium.org2012-08-141-1/+1
| | | | | | | | | | | | | This is part of Chrome for Android upstreaming. This was causing an unnecessary diff with downstream. BUG=136750 Review URL: https://chromiumcodereview.appspot.com/10828302 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151474 0039d316-1c4b-4281-b951-d872f2087c98
* WebSocket over SPDY: handshake support for both of SPDY/2 and SPDY/3toyoshim@chromium.org2012-08-149-170/+445
| | | | | | | | | | | | | If negotiated protocol is SPDY/3 or later, well defined name of SYN_STREAM and SYN_REPLY must be colon prefixed name. BUG=42320 TEST=net_uinttests Review URL: https://chromiumcodereview.appspot.com/10843050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151453 0039d316-1c4b-4281-b951-d872f2087c98
* Set TCP_KEEPALIVE idle and interval on Android.pliard@chromium.org2012-08-141-1/+1
| | | | | | | | | | | | | | | This is part of Chrome for Android upstreaming. It affects how long our side of an idle TCP socket can know the other end has closed the connection. The default value is 2 hours which is too long. We should use the same values on Linux. BUG=136750 Review URL: https://chromiumcodereview.appspot.com/10831286 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151447 0039d316-1c4b-4281-b951-d872f2087c98
* Tweak the tests to match the original intention.wtc@chromium.org2012-08-131-0/+7
| | | | | | | | | | R=rsleevi@chromium.org BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10830272 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151355 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "TLS channel id field trial."mattm@chromium.org2012-08-132-11/+0
| | | | | | | | | | | This reverts commit 145978. BUG=136462,142388 TBR=rch@chromium.org Review URL: https://chromiumcodereview.appspot.com/10826284 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151347 0039d316-1c4b-4281-b951-d872f2087c98
* Make jars build from a single ant .xml templatecjhopman@chromium.org2012-08-131-16/+0
| | | | | | | | | | | | | | The ant build files for each of the jars that we create consisted of only fairly straightforward boilerplate. With the recent changes to java.gypi and java_aidl.gypi we can now build these correctly from a single .xml with GYP passing in defines for the minor differences. BUG=136756 Review URL: https://chromiumcodereview.appspot.com/10831227 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151334 0039d316-1c4b-4281-b951-d872f2087c98
* Removed checks that verify URLRequest has a Contextshalev@chromium.org2012-08-135-45/+32
| | | | | | | | | | | | | Due to a recent cl, URLRequest must get a non-NULL context in the constructor. This means that if-statements and DCHECKs that verify the existence of context are no longer needed. BUG=None Review URL: https://chromiumcodereview.appspot.com/10830124 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151326 0039d316-1c4b-4281-b951-d872f2087c98
* Add histograms to NetworkChangeNotifier to identify ways to improve interfacepauljensen@chromium.org2012-08-133-0/+142
| | | | | | | | | | | and narrow down offline false-positives. BUG=124069 Review URL: https://chromiumcodereview.appspot.com/10837123 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151325 0039d316-1c4b-4281-b951-d872f2087c98
* Measure DNS resolution waste from not always performing AF_UNSPEC lookups.pauljensen@chromium.org2012-08-131-2/+40
| | | | | | | | | BUG=139811 Review URL: https://chromiumcodereview.appspot.com/10829191 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151312 0039d316-1c4b-4281-b951-d872f2087c98
* [net] Use only DnsConfigService to detect DNS changes in HostResolverImplszym@chromium.org2012-08-132-34/+19
| | | | | | | | | | | | | The signals coming currently via DNSObserver are too noisy. DnsConfigService can weed out false positives, so switch to using it exclusively. BUG=142138 TEST=network requests work after network changes Review URL: https://chromiumcodereview.appspot.com/10830271 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151278 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unnecessary assignment in transport_client_socket_unittest.cc.pliard@chromium.org2012-08-131-1/+1
| | | | | | | | | | | | | | | | | This is part of Chrome for Android upstreaming. This line was introduced by r137387 which turned |sock| into a scoped_refptr rather than a raw pointer (that needed to be initialized). This assignment is obviously not needed anymore. Internally we don't have this extra '= NULL' which causes an unnecessary diff. BUG=136750 Review URL: https://chromiumcodereview.appspot.com/10855123 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151276 0039d316-1c4b-4281-b951-d872f2087c98