summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* TTF: Reenable some disabled tests.vandebo@chromium.org2010-06-181-3/+3
| | | | | | | | | | | | | | DevToolsSanityTest.TestConsoleLog seems to work ProxyResolverV8Test.FAILS_ReturnUnicode DepTest.FAILS_TestDepDisable VectorCanvasTest.FAILS_Matrix TEST=none BUG=disabled tests Review URL: http://codereview.chromium.org/2819011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50258 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor SpdyStream to get HTTP specific out of the interface and members.ukai@chromium.org2010-06-1811-427/+591
| | | | | | | | | | | | | | | | Add SpdyStream::Delegate interface and SpdyHttpStream implements SpdyStream::Delegate. SpdyHeaderBlock<->HTTP request/response conversion functions moved from spdy_session.cc to spdy_http_stream.cc. All interface between SpdySession and SpdyStream uses SpdyHeaderBlock instead of HttpRequestInfo,HttpResponseInfo. BUG=42320 TEST=none Review URL: http://codereview.chromium.org/2667002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50215 0039d316-1c4b-4281-b951-d872f2087c98
* Fix crash in SpdySession::DeleteStream.ukai@chromium.org2010-06-181-2/+2
| | | | | | | | | | | Erase iterator before calling OnClose BUG=46765 TEST=none Review URL: http://codereview.chromium.org/2847015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50198 0039d316-1c4b-4281-b951-d872f2087c98
* Disk Cache: Remove deprecated methods from the disk cache interface.rvargas@google.com2010-06-1716-191/+168
| | | | | | | | | | | BUG=26730 TEST=current tests Review URL: http://codereview.chromium.org/2869005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50147 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unfixable test.vandebo@chromium.org2010-06-171-15/+0
| | | | | | | | | BUG=disabled test TEST=none Review URL: http://codereview.chromium.org/2868006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50144 0039d316-1c4b-4281-b951-d872f2087c98
* Disable caching of failed DNS lookups.eroman@chromium.org2010-06-171-1/+1
| | | | | | | | | | | | This is causing problems on network changes, since we don't have a reliable signal for telling when DNS is back up (so we aren't able to flush the cache properly). This will regress bug 1672, filed 46821 to address that. BUG=46821 Review URL: http://codereview.chromium.org/2873003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50141 0039d316-1c4b-4281-b951-d872f2087c98
* Implement a TODO: Move "NonThreadSafe" inheritance from ↵pkasting@chromium.org2010-06-178-49/+82
| | | | | | | | | | | | NetworkChangeNotifier interface to implementations. Also add CalledOnValidThread() DCHECKs in as many places as possible. Some minor style changes. BUG=none TEST=none Review URL: http://codereview.chromium.org/2813019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50139 0039d316-1c4b-4281-b951-d872f2087c98
* Assert SetCookieableScheme called before first use.rdsmith@google.com2010-06-172-0/+5
| | | | | | | | | BUG=44476 TEST=Linux CookieMonster.SetCookieableSchemes (as modified) Review URL: http://codereview.chromium.org/2869002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50105 0039d316-1c4b-4281-b951-d872f2087c98
* HttpNetworkTransaction handles asynchronous auth token generation.cbentzel@chromium.org2010-06-177-110/+604
| | | | | | | | | BUG=21050,42222 TEST=net_unittests Review URL: http://codereview.chromium.org/2722009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50088 0039d316-1c4b-4281-b951-d872f2087c98
* Check state in SocketStream delegate methods.ukai@chromium.org2010-06-171-0/+11
| | | | | | | | | | | I suspect flaky failure in reload-crash.html was OnSentData is called when state_ has been changed to CLOSED while sending handshake message. BUG=45720 TEST=none Review URL: http://codereview.chromium.org/2845012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50087 0039d316-1c4b-4281-b951-d872f2087c98
* Check proxy_info_.is_empty()ukai@chromium.org2010-06-171-2/+11
| | | | | | | | | | | | In case proxy_info_.is_empty(), we can't access proxy_info_.proxy_server() or so. BUG=46750 TEST=none Review URL: http://codereview.chromium.org/2803010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50078 0039d316-1c4b-4281-b951-d872f2087c98
* Fix TestConnectJob::kMockAdvancingLoadStateJob to be less flaky.vandebo@chromium.org2010-06-172-13/+14
| | | | | | | | | TEST=none BUG=46638 Review URL: http://codereview.chromium.org/2864005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50061 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: fix possible library leak in GSSAPISharedLibrary::LoadSharedLibrary.mattm@chromium.org2010-06-161-4/+6
| | | | | | | | | | CID=10899 BUG=none TEST=builds Review URL: http://codereview.chromium.org/2854004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50014 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 49982 - patchthakis@chromium.org2010-06-161-2/+1
| | | | | | | TBR=thakis@chromium.org Review URL: http://codereview.chromium.org/2825006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50002 0039d316-1c4b-4281-b951-d872f2087c98
* patchthakis@chromium.org2010-06-161-1/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49982 0039d316-1c4b-4281-b951-d872f2087c98
* Working towards -Wextrathomasvl@chromium.org2010-06-162-6/+6
| | | | | | | | | | | | - Make loops use {} instead of a ';' to make it clear there is no body to the loop. - Remove checks of unsigned values for <0 - coordinates should be CGFloat, not NSUInteger. BUG=34160 TEST=none Review URL: http://codereview.chromium.org/2865003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49939 0039d316-1c4b-4281-b951-d872f2087c98
* Don't run DiskCacheBackendTests under ThreadSanitizer on Windowstimurrrr@chromium.org2010-06-161-2/+1
| | | | | | | | BUG=46647 TBR=glider Review URL: http://codereview.chromium.org/2848008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49925 0039d316-1c4b-4281-b951-d872f2087c98
* Fix crash in DeleteStream.ukai@chromium.org2010-06-161-2/+3
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/2860004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49923 0039d316-1c4b-4281-b951-d872f2087c98
* Don't run some DiskCacheBackendTests under TSan on Windowstimurrrr@chromium.org2010-06-161-0/+4
| | | | | | | | BUG=46647 TBR=glider Review URL: http://codereview.chromium.org/2836003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49917 0039d316-1c4b-4281-b951-d872f2087c98
* Don't run ClientSocketPoolBaseTest.LoadState under Valgrindtimurrrr@chromium.org2010-06-161-0/+3
| | | | | | | | BUG=46638 TBR=glider,vandebo Review URL: http://codereview.chromium.org/2806008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49904 0039d316-1c4b-4281-b951-d872f2087c98
* In addition to the logging the IP address that a TCP connect is made to, ↵eroman@chromium.org2010-06-167-35/+83
| | | | | | | | | | also include the port number. This helps when debugging situations where the port has been changed. Review URL: http://codereview.chromium.org/2808008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49893 0039d316-1c4b-4281-b951-d872f2087c98
* Add DISABLE_RUNNABLE_METHOD_REFCOUNT to make disabling refcounts in ↵ajwong@chromium.org2010-06-161-5/+1
| | | | | | | | | | | RunnableMethods easier. BUG=none TEST=none Review URL: http://codereview.chromium.org/2830006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49887 0039d316-1c4b-4281-b951-d872f2087c98
* TTF: Fix and enable disabled test: ClientSocketPoolBaseTest.LoadStatevandebo@chromium.org2010-06-161-4/+3
| | | | | | | | | Test=Seems to run ok with modified message posting BUG=disabled test Review URL: http://codereview.chromium.org/2831006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49864 0039d316-1c4b-4281-b951-d872f2087c98
* cleaned up the way that streams close so that all of them use DeleteStreamerikchen@google.com2010-06-155-192/+52
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/2764005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49856 0039d316-1c4b-4281-b951-d872f2087c98
* Improve error messages for bad SocketParams.willchan@chromium.org2010-06-154-14/+31
| | | | | | | | | | Make it a compile-time error instead of link-time. Add a check to make sure you don't try to use it with a pointer. BUG=41016 Review URL: http://codereview.chromium.org/1604042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49823 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Update the disk cache tools and tests to uservargas@google.com2010-06-1515-191/+414
| | | | | | | | | | | | the new interface (provide a cache thread and callback). BUG=26730 TEST=unit tests Review URL: http://codereview.chromium.org/2739007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49819 0039d316-1c4b-4281-b951-d872f2087c98
* Add Keynectis to EV listdavidben@chromium.org2010-06-151-0/+6
| | | | | | | | | BUG=43954 TEST=verify https://www.keynectis.com cert is recognized as EV on Windows and Linux Review URL: http://codereview.chromium.org/2865001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49816 0039d316-1c4b-4281-b951-d872f2087c98
* Add a net::HttpNetworkDelegate and a ChromeNetworkDelegate.willchan@chromium.org2010-06-1518-6/+70
| | | | | | | | | net::HttpNetworkDelegate is an interface for providing hooks into http network activity. ChromeNetworkDelgate implements this interface in chrome/ code. In the future, it might also implement other interfaces. My only current intended consumer for this would be extensions. There's no actual behavior change, this is all just plumbing for now. BUG=29314 Review URL: http://codereview.chromium.org/2749015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49804 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a regression that accesses file system synchronouslyhuanr@chromium.org2010-06-144-44/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in URLRequestFileJob::Factory. This regression came from revision 5944. In addition to performance penalty, the change in 5944 introduced a new issue: the FileJob -> FileDirJob redirection code was not hit for directory path without trailing slash. Revision 5999 tried to fix that with a questionable approach. The meat of this change is reverting the relevant code in 5944 and 5999. Due to the reverting, this change also need to have the following code changes: (1) revision 10408 fixes a bug on "file:///". We don't regress the fix but the scenario goes through a different code part. Some comments are changed accordingly and a unit test is added. (2) revision 23944 fixes a related crash. The code change in 23944 is still valid but the unit test needs to be rewritten. BUG=43116,1474,18686 TEST=URLRequestTest.FileDir* Review URL: http://codereview.chromium.org/2748004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49737 0039d316-1c4b-4281-b951-d872f2087c98
* Introduced artificial processing delay to work around the issue of proxy ↵zelidrag@chromium.org2010-06-142-2/+35
| | | | | | | | | | | | | initialization before name resolving is functional in ChromeOS. This should be removed once this bug chromium-os:3996 is properly fixed. BUG=chromium-os:3996 TEST=check the bug for repro steps Review URL: http://codereview.chromium.org/2796007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49716 0039d316-1c4b-4281-b951-d872f2087c98
* Changed the return error code if the GSSAPI library cannot be initialized.ahendrickson@google.com2010-06-141-1/+1
| | | | | | | | | BUG=33033 Test=None Review URL: http://codereview.chromium.org/2824003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49711 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 49600 - Http cache: Remove deprecated code.rvargas@google.com2010-06-143-84/+16
| | | | | | | | | | | | | BUG=26729 TEST=current tests Review URL: http://codereview.chromium.org/2776007 TBR=rvargas@google.com Review URL: http://codereview.chromium.org/2809004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49706 0039d316-1c4b-4281-b951-d872f2087c98
* Implement KDE ReversedException setting in Chromedavidben@chromium.org2010-06-148-27/+143
| | | | | | | | | | R=wtc,eroman BUG=45199 TEST=Added unit tests, can also verify with steps in bug report Review URL: http://codereview.chromium.org/2725009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49701 0039d316-1c4b-4281-b951-d872f2087c98
* Improved library loading to bypass libraries that don't contain all the ↵ahendrickson@google.com2010-06-143-57/+129
| | | | | | | | | | | | | | | function symbols we need. Warnings on GSSAPI load failure. Fixed potential memory leak. BUG=33033. TEST=None. Review URL: http://codereview.chromium.org/2706003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49678 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor SpdyStream.ukai@chromium.org2010-06-1413-348/+510
| | | | | | | | | | | | | | | Split SpdyStream into two parts: base SpdyStream and SpdyHttpStream. SpdyStream is an interface to SpdySession and provides base implementation as spdy stream. SpdyHttpStream is derived class of SpdyStream and used for [Spdy|Http]NetworkTransaction. BUG=42320 TEST=none Review URL: http://codereview.chromium.org/2564001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49667 0039d316-1c4b-4281-b951-d872f2087c98
* Add metrics for measuring spdy transaction latency.mbelshe@chromium.org2010-06-132-8/+30
| | | | | | | | | | BUG=none TEST=none TBR=lzheng Review URL: http://codereview.chromium.org/2811001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49656 0039d316-1c4b-4281-b951-d872f2087c98
* Add dependency on libevent where required.phajdan.jr@chromium.org2010-06-121-0/+6
| | | | | | | | | | | | | Otherwise some portions of the code try to use bundled libevent headers instead of the system-provided ones if -Duse_system_libevent=1 is used. TEST=none BUG=none Review URL: http://codereview.chromium.org/2729012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49634 0039d316-1c4b-4281-b951-d872f2087c98
* Use KDEHOME variable instead of KDE_HOME for locating KDE directorydavidben@chromium.org2010-06-122-21/+21
| | | | | | | | | | | | KDE uses the former, not the latter. R=mdm,wtc BUG=none TEST=unit tests updated, change KDE proxy settings with custom KDEHOME and verify Chrome picks it up Review URL: http://codereview.chromium.org/2779015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49620 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 49600 - Http cache: Remove deprecated code.rvargas@google.com2010-06-113-16/+84
| | | | | | | | | | | | BUG=26729 TEST=current tests Review URL: http://codereview.chromium.org/2776007 TBR=rvargas@google.com Review URL: http://codereview.chromium.org/2779020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49613 0039d316-1c4b-4281-b951-d872f2087c98
* Http cache: Remove deprecated code.rvargas@google.com2010-06-113-84/+16
| | | | | | | | | BUG=26729 TEST=current tests Review URL: http://codereview.chromium.org/2776007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49600 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY: Minor code cleanup.willchan@chromium.org2010-06-111-1/+3
| | | | | | Review URL: http://codereview.chromium.org/2776008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49590 0039d316-1c4b-4281-b951-d872f2087c98
* Http Cache: Remove blocking calls to GetAvailableRange.rvargas@google.com2010-06-1113-64/+293
| | | | | | | | | | | | | This seems to be the last piece of the http cache code that should be upgraded to non-blocking APIs. BUG=26729 TEST=unittests Review URL: http://codereview.chromium.org/2663003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49542 0039d316-1c4b-4281-b951-d872f2087c98
* Second attempt to land r49489. wtc@chromium.org2010-06-115-11/+88
| | | | | | | | | | | | | | | | | | | | Use NSS for SSL by default on Mac OS X. To use Mac OS X Secure Transport in Chromium, specify the --use-system-ssl command-line switch, which also replaced the --use-schannel command-line switch for Windows. All other programs are hardcoded to use NSS for SSL. If SSL client authentication is requested, fall back on Mac OS X Secure Transport for now. Original review URL: http://codereview.chromium.org/2747002/show R=mark,mbelshe BUG=30689 TEST=none Review URL: http://codereview.chromium.org/2769012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49540 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 49489 - Use NSS for SSL by default on Mac OS X.hayato@chromium.org2010-06-115-88/+11
| | | | | | | | | | | | | | | | | | | To use Mac OS X Secure Transport in Chromium, specify the --use-system-ssl command-line switch, which also replaced the --use-schannel command-line switch for Windows. All other programs are hardcoded to use NSS for SSL. If SSL client authentication is requested, fall back on Mac OS X Secure Transport for now. R=mark,mbelshe BUG=30689 TEST=none Review URL: http://codereview.chromium.org/2747002 TBR=wtc@chromium.org Review URL: http://codereview.chromium.org/2775005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49496 0039d316-1c4b-4281-b951-d872f2087c98
* Use NSS for SSL by default on Mac OS X.wtc@chromium.org2010-06-115-11/+88
| | | | | | | | | | | | | | | | To use Mac OS X Secure Transport in Chromium, specify the --use-system-ssl command-line switch, which also replaced the --use-schannel command-line switch for Windows. All other programs are hardcoded to use NSS for SSL. If SSL client authentication is requested, fall back on Mac OS X Secure Transport for now. R=mark,mbelshe BUG=30689 TEST=none Review URL: http://codereview.chromium.org/2747002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49489 0039d316-1c4b-4281-b951-d872f2087c98
* A couple of style mods in proxy_config_service_linux.ccziadh@chromium.org2010-06-111-11/+11
| | | | | | | | | | | Relates to argument passing and iterating over an STL container. r=eroman Review URL: http://codereview.chromium.org/2735012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49478 0039d316-1c4b-4281-b951-d872f2087c98
* Download filename encoding fix [try2]:estade@chromium.org2010-06-112-4/+37
| | | | | | | | | | | | | Fall back on other charsets when using the URL to suggest a filename. The URL should be escaped UTF-8, but may use another encoding instead. Check for empty string in DecodeWord (avoids crash). BUG=44301 TEST=see bug. Also, net_unittests. Review URL: http://codereview.chromium.org/2733005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49475 0039d316-1c4b-4281-b951-d872f2087c98
* Track whether a page was loaded via a proxy so that we canmbelshe@chromium.org2010-06-101-0/+5
| | | | | | | | | | | evaluate performance. BUG=none TEST=none Review URL: http://codereview.chromium.org/2764004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49468 0039d316-1c4b-4281-b951-d872f2087c98
* Return NULL instead of false when appropriate.evan@chromium.org2010-06-101-1/+1
| | | | | | | | (Found by clang.) Review URL: http://codereview.chromium.org/2725010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49466 0039d316-1c4b-4281-b951-d872f2087c98
* Adding flushing of files on chromeos, so that when something is downloaded, ↵dhg@chromium.org2010-06-103-0/+41
| | | | | | | | | | its written out ot disk shortly after finish downloading. BUG=chromium-os:2661 TEST=none Review URL: http://codereview.chromium.org/2770002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49461 0039d316-1c4b-4281-b951-d872f2087c98