summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* DevTools & WebTiming : Migrate from PassiveLogCollector to dedicated ↵pfeldman@chromium.org2010-07-161-0/+4
| | | | | | | | LoadTimingObserver. Review URL: http://codereview.chromium.org/2909016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52634 0039d316-1c4b-4281-b951-d872f2087c98
* base: Return bool instead of void in EnvVarGetter::SetEnv.tfarina@chromium.org2010-07-161-1/+3
| | | | | | | | | | | | | | | Returning bool instead of void in this function is better, because with that we can know if we had succeeded when tried to set an environment variable or not. Also it makes this function more testable. BUG=None TEST=out/Debug/base_unittests --gtest_filter=EnvVarTest.* Signed-off-by: Thiago Farina <tfarina@chromium.org> Review URL: http://codereview.chromium.org/2891024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52602 0039d316-1c4b-4281-b951-d872f2087c98
* Make Objective-C++ compiler happy with net/socket/ssl_test_util.hsuzhe@chromium.org2010-07-161-1/+1
| | | | | | | | | BUG=49136 chrome/test/in_process_browser_test.h can not be included in *.mm files. TEST=none Review URL: http://codereview.chromium.org/3009004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52580 0039d316-1c4b-4281-b951-d872f2087c98
* Http Cache: chain GetLoadState from transactions waiting forrvargas@google.com2010-07-156-6/+60
| | | | | | | | | | | | | | | | | | access to an entry to the transaction that has exclusive access to that entry. This means that requests that are blocked on the single writer lock of the http cache will report the load state of the request that has the lock, and WAITING_FOR_CACHE is reserved for requests that are actually waiting for the entry to be created by the cache. BUG=43582 TEST=net_unittests Review URL: http://codereview.chromium.org/2892010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52557 0039d316-1c4b-4281-b951-d872f2087c98
* On multi-round authentication schemes, the info_ field in the ↵cbentzel@chromium.org2010-07-154-2/+122
| | | | | | | | | | | HttpAuthController should be cleared (the user should only be prompted for username/password on the first round). BUG=48752 TEST=net_unittests --gtest_filter="*MultiRoundAuth*" Review URL: http://codereview.chromium.org/2941006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52550 0039d316-1c4b-4281-b951-d872f2087c98
* Increase npn_spdy to 50%, npn_http 25%. lzheng@chromium.org2010-07-151-1/+3
| | | | | | | | | | | | | Disable alternate protocol for npn_http case so browser don't need to fallback to http (extra overhead) in this case. Keep default group at 25% so we could use it to compare performance against alternate protocol with spdy case. BUG=48967 TEST=none Review URL: http://codereview.chromium.org/2904012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52537 0039d316-1c4b-4281-b951-d872f2087c98
* Move implementation from header to source.erg@chromium.org2010-07-154-26/+82
| | | | | | | | | | | | | | | | | | | | This is an effort to speed up compile and link time, and also minimizing the size of the intermediary .o files on disk. For example, just moving the constructor/destructor from the classes in chrome/browser/pref_member.{cc,h} netted a 368k drop in total .o file size. In aggregate, this shrinks libbrowser.a by 10 megabytes, and a few odd megabytes on most other chrome .a files. A lot of this was done before I started harvesting what the most included symbols were across all of chrome's code. Most of them are in webkit, but there's plenty in base/ that are used everywhere to keep me busy for several patches to come. BUG=none TEST=none Review URL: http://codereview.chromium.org/3012001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52528 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Code cleanup after the last cl.rvargas@google.com2010-07-156-364/+316
| | | | | | | | | | BUG=26730 TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52527 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor how ClientSocketPoolBaseHelper avoids re-entrancy.willchan@chromium.org2010-07-1517-128/+164
| | | | | | | | | Specifically, we defer asynchronous user callbacks to tasks. BUG=48861 Review URL: http://codereview.chromium.org/2994003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52509 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Read the index and data_0 files in a singlervargas@google.com2010-07-158-86/+174
| | | | | | | | | | | | | | | | operation to reduce multiple IO operations generated by on-demand paging. Also, generate extra histograms and improve the scale of some others. BUG=none TEST=net_unittests Review URL: http://codereview.chromium.org/2891022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52506 0039d316-1c4b-4281-b951-d872f2087c98
* net: add commentsagl@chromium.org2010-07-152-3/+9
| | | | | | | | | | | This is a follow up change to add some requested comments from r52079's review. TEST=none BUG=27507 http://codereview.chromium.org/2943001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52497 0039d316-1c4b-4281-b951-d872f2087c98
* Attempt four at landing the "histogram.h removed from message_loop.h" patch.erg@chromium.org2010-07-1516-8/+25
| | | | | | | | | | | | | | Previously committed as r52349 and r52336. Related commits: r52367, r52364 and r52343. Rerunning trybots due to previous trybot breakage. TEST=none BUG=none Review URL: http://codereview.chromium.org/2965015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52496 0039d316-1c4b-4281-b951-d872f2087c98
* FTP: add more detailed error codes based on RFC 959.phajdan.jr@chromium.org2010-07-154-106/+154
| | | | | | | | | | | This does not handle all cases yet, for simplicity. TEST=net_unittests BUG=none Review URL: http://codereview.chromium.org/2985012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52495 0039d316-1c4b-4281-b951-d872f2087c98
* Fix bad merge in ClientSocketPoolBaseHelper.vandebo@chromium.org2010-07-151-6/+0
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/3013001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52490 0039d316-1c4b-4281-b951-d872f2087c98
* TTF: enable HTTPS* tests on mac.dmuir@chromium.org2010-07-151-37/+3
| | | | | | | | These tests appear to be working now. Review URL: http://codereview.chromium.org/2967009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52453 0039d316-1c4b-4281-b951-d872f2087c98
* Mark the "StartCom Certification Authority" root CA as EV.wtc@chromium.org2010-07-151-0/+6
| | | | | | | | | | R=davidben,ian BUG=31646 TEST=https://www.startssl.com/ should be displayed with EV status. Review URL: http://codereview.chromium.org/2984001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52425 0039d316-1c4b-4281-b951-d872f2087c98
* Mark KeygenHandlerTest.ConcurrencyTest no longer flakey.davidben@chromium.org2010-07-151-8/+1
| | | | | | | | | | | r51734 added the relevant locks. BUG=48006 TEST=KeygenHandlerTest.ConcurrencyTest Review URL: http://codereview.chromium.org/2978007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52423 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 52334 - Http Cache: chain GetLoadState from transactions waiting forrvargas@google.com2010-07-146-55/+6
| | | | | | | | | | | | | | | | | | | | | | access to an entry to the transaction that has exclusive access to that entry. This means that requests that are blocked on the single writer lock of the http cache will report the load state of the request that has the lock, and WAITING_FOR_CACHE is reserved for requests that are actually waiting for the entry to be created by the cache. BUG=43582 TEST=net_unittests Review URL: http://codereview.chromium.org/2976004 TBR=rvargas@google.com Review URL: http://codereview.chromium.org/2921010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52405 0039d316-1c4b-4281-b951-d872f2087c98
* Revert everything related to the relanding.erg@chromium.org2010-07-1416-22/+5
| | | | | | Review URL: http://codereview.chromium.org/2982009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52367 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 52352 - SPDY: Initial support for handling WINDOW_UPDATE frames and ↵cbentzel@chromium.org2010-07-1411-250/+13
| | | | | | | | | | | | | | | | some cleanup. BUG=48100 TEST=net_unittests --gtest_filter="SpdyProtocolTest.ControlFrameStructs:SpdyNetworkTransactionTest.WindowSizeChange:SpdyNetworkTransactionTest.WindowSizeOverflow" Contributed by: agayev@google.com Review URL: http://codereview.chromium.org/2807042 TBR=cbentzel@chromium.org Review URL: http://codereview.chromium.org/2908010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52362 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY: Initial support for handling WINDOW_UPDATE frames and some cleanup.cbentzel@chromium.org2010-07-1411-13/+250
| | | | | | | | | | | BUG=48100 TEST=net_unittests --gtest_filter="SpdyProtocolTest.ControlFrameStructs:SpdyNetworkTransactionTest.WindowSizeChange:SpdyNetworkTransactionTest.WindowSizeOverflow" Contributed by: agayev@google.com Review URL: http://codereview.chromium.org/2807042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52352 0039d316-1c4b-4281-b951-d872f2087c98
* Converted CanonicalCookies over to containing a domain.rdsmith@google.com2010-07-144-32/+175
| | | | | | | | | | | Added perftest for getters in nested subdomains. BUG=8850 TEST=[Linux] net_unittests --gtest_filter=CookieMonsterTest.*:ParsedCookieTest.*, net_perftests --gtest_filter=CookieMonsterTest.* Review URL: http://codereview.chromium.org/2847046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52350 0039d316-1c4b-4281-b951-d872f2087c98
* Reland r52336.erg@chromium.org2010-07-1416-5/+22
| | | | | | | | | | | | | | (I accidentally committed a previous version of the patch (the fixed version was in codereview since I had switched to my mac to address this exact compile failure.) BUG=none TEST=none TBR=evan Review URL: http://codereview.chromium.org/2937010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52349 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 52336 - More header cleanup:erg@chromium.org2010-07-1416-22/+5
| | | | | | | | | | | | | | | | - Some cleanup to url_request.h - Remove task.h from headers that don't need it. - Remove histogram.h from message_loop.h BUG=none TEST=none Review URL: http://codereview.chromium.org/2986002 TBR=erg@chromium.org Review URL: http://codereview.chromium.org/2969006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52343 0039d316-1c4b-4281-b951-d872f2087c98
* Init GSSAPI library in HttpAuthHandlerNegotiate.cbentzel@chromium.org2010-07-141-0/+6
| | | | | | | | | BUG=33033 TEST=net_unittests Review URL: http://codereview.chromium.org/2909012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52340 0039d316-1c4b-4281-b951-d872f2087c98
* More header cleanup:erg@chromium.org2010-07-1416-5/+22
| | | | | | | | | | | | | - Some cleanup to url_request.h - Remove task.h from headers that don't need it. - Remove histogram.h from message_loop.h BUG=none TEST=none Review URL: http://codereview.chromium.org/2986002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52336 0039d316-1c4b-4281-b951-d872f2087c98
* Http Cache: chain GetLoadState from transactions waiting forrvargas@google.com2010-07-146-6/+55
| | | | | | | | | | | | | | | | | | | access to an entry to the transaction that has exclusive access to that entry. This means that requests that are blocked on the single writer lock of the http cache will report the load state of the request that has the lock, and WAITING_FOR_CACHE is reserved for requests that are actually waiting for the entry to be created by the cache. BUG=43582 TEST=net_unittests Review URL: http://codereview.chromium.org/2976004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52334 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: provide network log details to the WebCore's InspectorController.pfeldman@chromium.org2010-07-141-0/+3
| | | | | | Review URL: http://codereview.chromium.org/2645006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52310 0039d316-1c4b-4281-b951-d872f2087c98
* Update effective-TLD data files using the latest data from Mozilla.pam@chromium.org2010-07-143-4749/+4789
| | | | | | | | | | This data file is their changeset 43173:ac1ed3f6b2e7, from 2010-06-05 21:23 -0400. BUG=37436 TEST=none Review URL: http://codereview.chromium.org/2935007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52304 0039d316-1c4b-4281-b951-d872f2087c98
* Exclude one test from TSan/Win runtimurrrr@chromium.org2010-07-141-0/+1
| | | | | | | | TBR=glider TEST=TSan/Win bot should stop failing on net tests Review URL: http://codereview.chromium.org/2892008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52301 0039d316-1c4b-4281-b951-d872f2087c98
* Implement SSLClientSocketPool.vandebo@chromium.org2010-07-1439-465/+2253
| | | | | | | | | | | | To support SSLClientSocketPool, ClientSocketPoolBase and ClientSocketHandle require a notion of additional error state reported from the pool. Overtime the error handling may get become more integrated, alleviating the need for some of the additional error state. To support getting Http Proxy credentials from the user, the SSLClientSocketPool will release unauthenticated HttpProxyClientSocket's into the pool as idle. However, it checks their authentication status when receiving one, completing the authentication once the user has provided the credentials. BUG=30357 TEST=existing unit tests, ClientSocketPoolBaseTest.AdditionalErrorState*, SSLClientSocketPoolTest.* Review URL: http://codereview.chromium.org/2870030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52275 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up FTP code a bit:phajdan.jr@chromium.org2010-07-143-78/+12
| | | | | | | | | | | | | | - remove unneeded states - minor style and error handling improvements This change removes ACCT command support. It was really untested, and I think it wouldn't work in case it was needed. We may add it back when we get a good test case. However, people are unlikely to use a web browser to access servers that require usage of ACCT command. TEST=net_unittests BUG=none Review URL: http://codereview.chromium.org/2985004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52266 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY incorrectly DCHECKed that the SYN_REPLY headers could never be an empty ↵erikchen@google.com2010-07-142-1/+2
| | | | | | | | | | | list. TEST=net_unittests BUG=47991 Review URL: http://codereview.chromium.org/2987002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52264 0039d316-1c4b-4281-b951-d872f2087c98
* Display the proxy PAC javascript errors in the NetLog.eroman@chromium.org2010-07-1415-142/+547
| | | | | | | | BUG=47226 TEST=Configure chrome with a PAC script that throws errors. Load a URL and should see the javascript error displayed on about:net-internals. Review URL: http://codereview.chromium.org/2978001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52253 0039d316-1c4b-4281-b951-d872f2087c98
* Remove |net_log_| as a class member and pass it in where needed and a little ↵vandebo@chromium.org2010-07-136-47/+42
| | | | | | | | | | | cleanup. BUG=42795 TEST=existing unit tests Review URL: http://codereview.chromium.org/2806052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52214 0039d316-1c4b-4281-b951-d872f2087c98
* Rewrite X509Certificate::SupportsSSLClientAuth to be more accuratedavidben@chromium.org2010-07-131-12/+39
| | | | | | | | | | | | | | We take the intersection of key usage and extended key usage and treat as an allow if missing. Also, support the "Any" purpose. Removed support for the Netscape-specific ns-cert-type extension. Internet Explorer doesn't seem to support it anyway. BUG=45353 TEST=SSL client auth displays correct certificates on Mac (e.g. on foaf.me) Review URL: http://codereview.chromium.org/2899005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52189 0039d316-1c4b-4281-b951-d872f2087c98
* Add the URLRequest's priority to the net-log.eroman@chromium.org2010-07-133-6/+20
| | | | | | | | BUG=NONE TEST=open about:net-internals, look at a request dump. there should be a "priority" field. Review URL: http://codereview.chromium.org/2905007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52186 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Switch the disk cache to use the cache_thread.rvargas@google.com2010-07-1321-240/+1543
| | | | | | | | | | | | | Add an InFlightBackendIO class that handles posting of cacheoperations back and forth between the IO thread and the cachethread. BUG=26730 TEST=unit tests Review URL: http://codereview.chromium.org/2945002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52185 0039d316-1c4b-4281-b951-d872f2087c98
* My fix didn't work. No idea why tsan is unhappy.mbelshe@chromium.org2010-07-131-0/+3
| | | | | | | | | | BUG=47836 TEST=none TBR=timurrr@chromium.org Review URL: http://codereview.chromium.org/2981002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52154 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Add a few more histograms.rvargas@google.com2010-07-123-2/+42
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/2863039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52140 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes a crash when xdg_mime library is unable to handle a long file path.inferno@chromium.org2010-07-121-0/+5
| | | | | | | | | BUG=48733 TEST=None Review URL: http://codereview.chromium.org/2980002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52130 0039d316-1c4b-4281-b951-d872f2087c98
* Remove hex frames from spdy_session_unittest.ccmlloyd@chromium.org2010-07-121-27/+10
| | | | | | | | | BUG=None TEST=net_unittests pass Review URL: http://codereview.chromium.org/2896004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52118 0039d316-1c4b-4281-b951-d872f2087c98
* TBR: reverting broken commiterikchen@google.com2010-07-129-263/+47
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52113 0039d316-1c4b-4281-b951-d872f2087c98
* Annotate some network classes as non-threadsafe.eroman@chromium.org2010-07-125-5/+13
| | | | | | | | | | This is a defensive change to catch attempts to delete them on a different thread than where they were created (when in Debug mode). Although most classes in net are not thread safe and could be annotated, I chose to annotate these specific ones since they are frequently the top-level objects held by embedders. Review URL: http://codereview.chromium.org/1812007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52111 0039d316-1c4b-4281-b951-d872f2087c98
* Make the various SocketParams reference counted.vandebo@chromium.org2010-07-1220-341/+357
| | | | | | | | | | | This is so that the SSLSocketParam can hold one of any of the existing SocketParams. BUG=30357 TEST=existing unit tests Review URL: http://codereview.chromium.org/2848029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52107 0039d316-1c4b-4281-b951-d872f2087c98
* Streams send a Rst frame upon being closed by client. Some minor editorial ↵erikchen@google.com2010-07-129-47/+263
| | | | | | | | | | | | | fixes. TEST=net_unittests BUG=46589 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=51007 Review URL: http://codereview.chromium.org/2804008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52106 0039d316-1c4b-4281-b951-d872f2087c98
* Put HttpProxyClientSocket into a pool.vandebo@chromium.org2010-07-1221-270/+1105
| | | | | | | | | | | | | | | This CL requires http://codereview.chromium.org/2799036 - Cleanup the HttpProxyClientSocket interface a touch. - Make HttpAuthController reference counted. - Enable ClientSocketPool to return recoverable connections. BUG=42795 TEST=existing unit tests Review URL: http://codereview.chromium.org/2817033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52104 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a race condition in the unit test. The MockPending jobs actuallymbelshe@chromium.org2010-07-122-4/+8
| | | | | | | | | | | | | induce a slight delay between the time the connect is called and when the posted task can complete. We weren't waiting for the 2ms to elapse before expecting that it had completed. BUG=47836 TEST=self Review URL: http://codereview.chromium.org/2893010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52101 0039d316-1c4b-4281-b951-d872f2087c98
* Implement HttpProxyClientSocket: Http proxie setup is now done in it's own ↵vandebo@chromium.org2010-07-1211-284/+780
| | | | | | | | | | | class (refactor). BUG=42795 TEST=existing unit tests Review URL: http://codereview.chromium.org/2799036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52100 0039d316-1c4b-4281-b951-d872f2087c98
* Plumb SSL connection information into the PageInfo model.agl@chromium.org2010-07-127-3/+72
| | | | | | | | | | | | | | | | | This plumbs two bits of information into the PageInfo model (the dialog which results from clicking on the padlock icon): whether or not we performed SSLv3 fallback and whether or not the server supported the renegotiation extension. It doesn't actually do anything with this information yet (except to add histograms of them), pending future CLs. BUG=none TEST=none http://codereview.chromium.org/2943001/show git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52079 0039d316-1c4b-4281-b951-d872f2087c98