summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* Remove assertion on correct NetworkChangeNotifierLinux cleanup.willchan@chromium.org2010-05-281-1/+2
| | | | | | | | BUG=36890 Review URL: http://codereview.chromium.org/2340002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48504 0039d316-1c4b-4281-b951-d872f2087c98
* view-cache: Refactor ViewCacheHelper and ViewHttpCacheJobFactoryrvargas@google.com2010-05-275-102/+556
| | | | | | | | | | | | to use asynchronous interfaces. BUG=26730 TEST=unittest Review URL: http://codereview.chromium.org/2168004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48438 0039d316-1c4b-4281-b951-d872f2087c98
* Change the proxy waiting-for message to:mbelshe@chromium.org2010-05-272-0/+9
| | | | | | | | | | | | | | "Waiting for proxy tunnel..." Add a message for waiting for the SSL Handshake to complete: "Establishing secure connection..." Also make the waiting messages work for SPDY connections. BUG=none TEST=none Review URL: http://codereview.chromium.org/2262003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48430 0039d316-1c4b-4281-b951-d872f2087c98
* Enable warning 4389 as an error on windows builds. This will make mbelshe@chromium.org2010-05-275-12/+16
| | | | | | | | | | | | windows builds more similar to linux/mac, which already treat signed/ unsigned equality comparisons as warnings (and hence errors). BUG=44471 TEST=none Review URL: http://codereview.chromium.org/2222002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48395 0039d316-1c4b-4281-b951-d872f2087c98
* HttpAuthHandlers hold onto a bound net log.cbentzel@chromium.org2010-05-2724-50/+83
| | | | | | | | | | | Although this doesn't have a behavioral impact in this CL, it is needed for additional logging which I'd like to add. BUG=34737 TEST=net_unittests Review URL: http://codereview.chromium.org/2288001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48391 0039d316-1c4b-4281-b951-d872f2087c98
* net-internals: use the async interface for displaying cache statistics.rvargas@google.com2010-05-272-0/+7
| | | | | | | | | BUG=26729 TEST=none Review URL: http://codereview.chromium.org/2279003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48344 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Another dependency the bbot missed!!!"rafaelw@chromium.org2010-05-265-16/+12
| | | | | | | | | | | | | | | | | | This reverts commit 161f7fd3bdd425167af9fe26fdc5373a2ff44c98. Revert "Missed a file as part of checkin for r48186" This reverts commit cff86beba5938209393a6c3bccced62a7f3ff36b. Revert "Enable warning 4389 as an error on windows builds. This will make" This reverts commit c78936bcfc65b98edf288191d927a495b0364621. TBR=mbelshe Review URL: http://codereview.chromium.org/2253001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48238 0039d316-1c4b-4281-b951-d872f2087c98
* Missed a file as part of checkin for r48186mbelshe@chromium.org2010-05-251-2/+2
| | | | | | | | | BUG=44471 TEST=none Review URL: http://codereview.chromium.org/2197001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48196 0039d316-1c4b-4281-b951-d872f2087c98
* Enable warning 4389 as an error on windows builds. This will makembelshe@chromium.org2010-05-254-10/+14
| | | | | | | | | | | | windows builds more similar to linux/mac, which already treat signed/ unsigned equality comparisons as warnings (and hence errors). BUG=44471 TEST=none Review URL: http://codereview.chromium.org/2081007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48186 0039d316-1c4b-4281-b951-d872f2087c98
* Increase the socket limit for proxy servers to 32.willchan@chromium.org2010-05-251-3/+3
| | | | | | | | BUG=44501 Review URL: http://codereview.chromium.org/2154005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48181 0039d316-1c4b-4281-b951-d872f2087c98
* Eliminate the establishing_tunnel_ internal state and move to explicitmbelshe@chromium.org2010-05-254-133/+222
| | | | | | | | | | | | | states in the state machine for proxy tunnel establishment. Original work from svandebo. BUG=none TEST=existing Review URL: http://codereview.chromium.org/2101014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48173 0039d316-1c4b-4281-b951-d872f2087c98
* Don't run SpdyNetworkTransactionTest.SynReplyHeadersVary under TSan/Wintimurrrr@chromium.org2010-05-251-0/+1
| | | | | | | TBR=glider Review URL: http://codereview.chromium.org/2089028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48154 0039d316-1c4b-4281-b951-d872f2087c98
* Address a TODO about not duplicating the name --> value mapping for ↵eroman@chromium.org2010-05-223-7/+19
| | | | | | | | NetLog::Source. Review URL: http://codereview.chromium.org/2131024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47977 0039d316-1c4b-4281-b951-d872f2087c98
* net-internals: Log the addresses that were attempted during a TCP connect, ↵eroman@chromium.org2010-05-218-52/+109
| | | | | | | | | | | | and any OS errors that attempts failed with (windows implementation) Note that this change is the same as r47764, but for the windows implementation. BUG=44488 Review URL: http://codereview.chromium.org/2127011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47956 0039d316-1c4b-4281-b951-d872f2087c98
* Always fallback to the next address when doing TCP connect (winsock impl). eroman@chromium.org2010-05-212-56/+100
| | | | | | | | | | | | | | Before it would only try the next address in the list, for specific OS errors. Also did a slight refactoring to use a state machine for Connect(). (This is the same patch as r47728, but for windows implementation). BUG=44490 Review URL: http://codereview.chromium.org/2099010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47932 0039d316-1c4b-4281-b951-d872f2087c98
* Fix locking in CookieMonster.rdsmith@chromium.org2010-05-211-5/+42
| | | | | | | | | | | | | | | | | | Specifically: * Added assertions in most private methods of CookieMonster that the instance lock is held. * Refactored locking out of FindCookiesForHostAndDomain and into DeleteCookie(url,cookie_name) and GetCookiesWithOptions (its callers) to protect DeleteCookie's call to InternalDeleteCookie. * Protected SetCookieableSchemes() (public method that modifies internal state directly). * Shifted calls to HasCookieableScheme() around so that they were protected by the instance lock. BUG=43188 TEST=Windows net_unittests ParsedCookieTest.*:CookieMonsterTest.* (Inserted assertions, confirmed crash in CookieMonsterTest.DeleteCookieByName, refactored, confirmed no failure). Windows net_perftests ParsedCookieTest.*:CookieMonsterTest.* run before and after change; noted minimal (but non-zero) performance degradation. Review URL: http://codereview.chromium.org/2131002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47928 0039d316-1c4b-4281-b951-d872f2087c98
* This change enables FieldTrial for SPDY. When --use-spdy=npn is used, field ↵lzheng@chromium.org2010-05-2110-19/+162
| | | | | | | | | | | | | | | | | test won't be enabled. However, when that flag is missing, A/B test is added to browser_main.cc. Trial A: use npn and spdy. B: use npn but no spdy. C: do nothing. A and B are set to zero for now The histograms we collect are: 1. Page begin to finish time when spdy is enabled/disabled across all sites; 2. Page begin to finish time when spdy is used on sites that support spdy and when spdy is intentionally ignored. BUG=43997 TEST=Don't use --use-spdy=npn, manually change _npn_nospdy and _npn_withspdy percentile and go to spdy supported sites. Review URL: http://codereview.chromium.org/2036012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47896 0039d316-1c4b-4281-b951-d872f2087c98
* Generate some histograms to see how well our compression is working.mbelshe@chromium.org2010-05-212-2/+109
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/2113015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47895 0039d316-1c4b-4281-b951-d872f2087c98
* Add more histograms for SPDY and settings.mbelshe@chromium.org2010-05-212-13/+62
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/2098013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47894 0039d316-1c4b-4281-b951-d872f2087c98
* Separate SPDY data-frame compression from the header compressors.mbelshe@chromium.org2010-05-215-139/+473
| | | | | | | | | BUG=none TEST=SpdyFramerTest.UnclosedStreamDataCompressors, SpdyFramerTest.DataCompression Review URL: http://codereview.chromium.org/2071009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47886 0039d316-1c4b-4281-b951-d872f2087c98
* SocketStream::Close() disconnect the socket after all pending data sent.ukai@chromium.org2010-05-213-3/+147
| | | | | | | | | | | | | | SocketStream::Close() immediately disconnected the socket even if it has some data to be sent. It is not desired behavior. Change to that Close() just requests to close the socket, and when all pending data have been processed, close the socket. BUG=none TEST=net_unittests passes Review URL: http://codereview.chromium.org/2066011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47880 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the TRACE_EVENT for network states. This is no longer needed, since ↵eroman@chromium.org2010-05-214-57/+0
| | | | | | | | most of these states are captured by the NetLog. Review URL: http://codereview.chromium.org/2105013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47878 0039d316-1c4b-4281-b951-d872f2087c98
* Track whether a resource was loaded via a proxy. I'm going to usembelshe@chromium.org2010-05-213-3/+18
| | | | | | | | | | | | this so I can more precisely refine some histograms and filter whether individual resources came through proxies or not. BUG=none TEST=none Review URL: http://codereview.chromium.org/2097012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47877 0039d316-1c4b-4281-b951-d872f2087c98
* Make ClientSocketPool histograms static so that they work properly.vandebo@chromium.org2010-05-2016-70/+177
| | | | | | | | | | | | Also change their names so that they appear all together on the histograms page. BUG=43375 TEST=none Review URL: http://codereview.chromium.org/2029004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47843 0039d316-1c4b-4281-b951-d872f2087c98
* Lazy initialization of URLSecurityManager to reduce start-up time.ahendrickson@chromium.org2010-05-2010-26/+25
| | | | | | | | | | | | | | | | This addresses XP perf bot regressions: http://build.chromium.org/buildbot/perf/xp-release-dual-core/startup/report.html?history=50&rev=44850&graph=warm http://build.chromium.org/buildbot/perf/xp-release-single-core/startup/report.html?history=80&rev=44930&graph=warm Had to remove const-ness from URLSecurityManager pointers. BUG=None. TEST=None. Review URL: http://codereview.chromium.org/2110016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47831 0039d316-1c4b-4281-b951-d872f2087c98
* Remove handler from HttpAuthCache.cbentzel@chromium.org2010-05-2024-86/+239
| | | | | | | | | | | This is part of a refactoring meant to simplify the connection phase of HttpNetworkTransaction. BUG=None TEST=net_unittests (which already includes unit tests for preemptive auth, as well as using values from cache). Review URL: http://codereview.chromium.org/2056003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47786 0039d316-1c4b-4281-b951-d872f2087c98
* net-internals: Log the addresses that were attempted during a TCP connect, ↵eroman@chromium.org2010-05-205-29/+114
| | | | | | | | | | and any OS errors that attempts failed with. This is only for the libevent implementation so far. BUG=44488 Review URL: http://codereview.chromium.org/2077012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47764 0039d316-1c4b-4281-b951-d872f2087c98
* Chromium side changes for enabling VP8 and WebM support.scherkus@chromium.org2010-05-203-11/+105
| | | | | | | | | | | Patches by Frank Galligan (fgalligan@google.com), Tom Finegan (tomfinegan@google.com) and James Zern (jzern@google.com). BUG=none TEST=none Review URL: http://codereview.chromium.org/2093007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47759 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r47395. Looks like it still crashes =/willchan@chromium.org2010-05-2019-182/+127
| | | | | | | | BUG=40455,40457 Review URL: http://codereview.chromium.org/2104013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47753 0039d316-1c4b-4281-b951-d872f2087c98
* Make TCPClientSocket* inherit from NonThreadSafe.willchan@chromium.org2010-05-194-2/+30
| | | | | | Review URL: http://codereview.chromium.org/2108022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47735 0039d316-1c4b-4281-b951-d872f2087c98
* Always fallback to the next address when doing TCP connect (libevent impl).eroman@chromium.org2010-05-192-99/+117
| | | | | | | | | | | | Before it would only try the next address in the list, for specific OS errors. Also did a slight refactoring to use a state machine for Connect(). BUG=44490 Review URL: http://codereview.chromium.org/2132014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47728 0039d316-1c4b-4281-b951-d872f2087c98
* chunk of straightforward ifdef/include changes for BSD portpvalchev@google.com2010-05-196-3/+9
| | | | | | | based on sprewell's patch Review URL: http://codereview.chromium.org/2069009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47687 0039d316-1c4b-4281-b951-d872f2087c98
* Prevent crash in test case where tests could overflow the index to the list ofmbelshe@chromium.org2010-05-191-6/+12
| | | | | | | | | | | | | | test socket types to create. The backup sockets fire at ~250ms. So, if the test takes longer than expected, it will end up creating more sockets than the test case expects, and we could overflow this list. We may need to do more work to make it so this never happens, but this will prevent the crash. BUG=43919 TEST=TCPClientSocketPoolTest.BackupSocketConnect Review URL: http://codereview.chromium.org/2072006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47669 0039d316-1c4b-4281-b951-d872f2087c98
* Disable HttpNetworkTransactionTest.StopsReading204 (net_unittests) under TSanglider@chromium.org2010-05-191-0/+3
| | | | | | | | | | | on Mac BUG=44570 TBR=timurrrr Review URL: http://codereview.chromium.org/2093006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47667 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r47583 for causing reliability bot crashes.willchan@chromium.org2010-05-194-172/+45
| | | | | | | | BUG=32817 Review URL: http://codereview.chromium.org/2105009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47616 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: Fix kde no_proxy environment variable handling.mattm@chromium.org2010-05-182-18/+96
| | | | | | | | | BUG=43176 TEST=net_unittests, manual Review URL: http://codereview.chromium.org/2115006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47592 0039d316-1c4b-4281-b951-d872f2087c98
* Reland my close on idle socket change.willchan@chromium.org2010-05-184-45/+172
| | | | | | | | | This reverts 44402 which reverted r44150 (fix for r43882) and r43882 (original change). These changes were suspected for causing the infinite loop on the IO thread and also a crash. It turned out that the backup socket was the cause. These should be able to be safely relanded. There's one minor change from the original, due to merging in the weeks of changes in between. BUG=32817 Review URL: http://codereview.chromium.org/2077004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47583 0039d316-1c4b-4281-b951-d872f2087c98
* Create a dedicated cache thread and use it to create thervargas@google.com2010-05-183-8/+11
| | | | | | | | | | | Http cache. BUG=26730 TEST=none Review URL: http://codereview.chromium.org/1989014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47564 0039d316-1c4b-4281-b951-d872f2087c98
* Adding gssapi.h to third_party.ahendrickson@google.com2010-05-184-0/+914
| | | | | | | | | | | Moved to net/third_party. BUG=None. TEST=None. Review URL: http://codereview.chromium.org/2011013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47563 0039d316-1c4b-4281-b951-d872f2087c98
* Annotate load flags and net errors with their symbolic name.eroman@chromium.org2010-05-183-69/+87
| | | | | | | | | | | | | | Here are some examples showing what it looks like now (the stuff in parenthesis is new): --> load_flags = 8240 (DISABLE_CACHE | DISABLE_INTERCEPT | DO_NOT_SAVE_COOKIES) --> net_error = -105 (NAME_NOT_RESOLVED) BUG=37421 Review URL: http://codereview.chromium.org/2115007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47552 0039d316-1c4b-4281-b951-d872f2087c98
* Adding some known mime types to the platform_mime_utils on linux. This ↵dhg@chromium.org2010-05-181-0/+29
| | | | | | | | | | might not be a perfect solution right now, but its a simple stopgap. BUG=chromium-os:3242 TEST=none Review URL: http://codereview.chromium.org/2077006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47549 0039d316-1c4b-4281-b951-d872f2087c98
* Digest Authentication: Test that "nc" is incremented for same "nonce".cbentzel@chromium.org2010-05-183-0/+150
| | | | | | | | | | | If the client generates multiple Authorization headers for the same server (or proxy) authenticate header the "nc" (nonce-count) field should be incremented. This tends to happen when preemptive Authentication headers are sent using the previous Authenticate challenge. BUG=NONE TEST=net_unittests --gtest_filter="HttpNetworkTransactionTest.DigestPreAuthNonceCount" Review URL: http://codereview.chromium.org/2112007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47514 0039d316-1c4b-4281-b951-d872f2087c98
* Trigger SSL fallback based on Bad MAC alert.agl@chromium.org2010-05-183-3/+11
| | | | | | | | | | | | We have found a server (www.virginia.edu) which fails at DEFLATE support in a new way: it returns a Bad MAC alert. Thus we add Bad MAC to the list of triggers for falling back to SSLv3. BUG=44251 http://codereview.chromium.org/2086008/show git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47513 0039d316-1c4b-4281-b951-d872f2087c98
* Update comments based on my new understanding of thewtc@chromium.org2010-05-181-2/+7
| | | | | | | | | | | CertGetCertificateChain Function. R=rvargas BUG=none TEST=none Review URL: http://codereview.chromium.org/2035010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47480 0039d316-1c4b-4281-b951-d872f2087c98
* Support speculative pre-connection to search URLsjar@chromium.org2010-05-181-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement several flavors of TCP/IP speculative preconnection under a command line flag (not yet on by default). The first area of preconnection takes place when a user types a query into the omnibox, as we preconnect to the search service when the omnibox suggests it is going to do a search. The second area involves subresources, such as images. When a navigation takes place, and we've seen navigations to that domain/port before, and the history-based probabability that we'll need to make a connection to a second site (host/port) is sufficiently large, then we preconnect to that second site while we are still connecting to the primary site (and before we've gotten content from the primary site. We also fall-back to mere DNS pre-resolution of subresource hostnames when the probability of a connection to the subresource is not high enough. BUG=42694 r=pkasting,willchan,mbelshe Review URL: http://codereview.chromium.org/1585029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47479 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the logging of URL_REQUEST_START, so the nesting is correct on redirects.eroman@chromium.org2010-05-172-11/+14
| | | | | | | | | (It was possible to get unmatched start/end before). Also renamed the event to URL_REQUEST_START_JOB, since it is really a superset of URLRequest::Start(). Review URL: http://codereview.chromium.org/2091009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47475 0039d316-1c4b-4281-b951-d872f2087c98
* This is roughly a reland of r43908, although I had to rewrite a fair chunk ↵willchan@chromium.org2010-05-1719-127/+182
| | | | | | | | | | since code's changed a lot. I've changed it so as not to flush the host resolver too. I suspect there might have been a bug there. I was unable to reproduce the crash here on network change, so I think either that fixed it or something else changed under the hood. In any case, I want to reland this and see if anyone encounters any problems with it. BUG=40455,40457 Review URL: http://codereview.chromium.org/2114004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47395 0039d316-1c4b-4281-b951-d872f2087c98
* Log the OS error that getaddrinfo() failed with.eroman@chromium.org2010-05-1611-48/+201
| | | | | | | | | - Display it on the about:net-internals page - Collect it in the histogram Net.OSErrorsForGetAddrinfo. Review URL: http://codereview.chromium.org/2134004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47386 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 47342.willchan@chromium.org2010-05-165-9/+104
| | | | | | | | | | | Fixes the merge issue this time. Also fixes a TODO in another change that was blocked on this one. Support SpdySession as a new NetLog source type. Start logging some more SPDY control frames. Original code review: http://codereview.chromium.org/2102003/show BUG=43237 Review URL: http://codereview.chromium.org/2114003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47376 0039d316-1c4b-4281-b951-d872f2087c98
* FTP: Fix an infinite loop in a rare condition.phajdan.jr@chromium.org2010-05-152-13/+15
| | | | | | | | | | | | | After issuing the PASS command, we should never issue earlier commands again. The code was sending USER when it received "503 Bad command sequence" error code. TEST=added to net_unittests BUG=38707 Review URL: http://codereview.chromium.org/2094002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47364 0039d316-1c4b-4281-b951-d872f2087c98