summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* Add a call to MemoryDebug::MarkAsInitialized to the new network code to avoidpamg@google.com2008-12-161-0/+9
| | | | | | | | | | | | | false UMR reports from Purify due to asynchronous filling of memory from the socket. BUG=5297 TEST=run test_shell.exe http://localhost:8080/multipart/invalid-image-data-standalone.html in Purify, see no UMRs in net code. Or watch the layout-test Purify buildbot running http/tests/invalid-image-data{-standalone}.html Review URL: http://codereview.chromium.org/13331 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7028 0039d316-1c4b-4281-b951-d872f2087c98
* I fail at reading code review comments. Second try at getting the white ↵abarth@chromium.org2008-12-161-2/+2
| | | | | | | | | | space right. R=wtc Review URL: http://codereview.chromium.org/14445 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7022 0039d316-1c4b-4281-b951-d872f2087c98
* Comments and white space changes requested by Wan-Teh.abarth@chromium.org2008-12-161-1/+1
| | | | | | | | | TBR=wtc Review URL: http://codereview.chromium.org/14444 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7018 0039d316-1c4b-4281-b951-d872f2087c98
* message_pump_libevent refactor:jeremy@chromium.org2008-12-154-51/+71
| | | | | | | | | | * Unify WatchSocket & WatchFileHandle. * Better encapsulate libevent. * Fix a bug with blocking writes in ipc_posix.cc Review URL: http://codereview.chromium.org/13757 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7010 0039d316-1c4b-4281-b951-d872f2087c98
* Command line switch for the ultra security concious: --force-https!abarth@chromium.org2008-12-151-1/+11
| | | | | | | | | | If you set this switch, the browser refuses to talk HTTP and refuses to permit certificate errors. For best results, use with a dedicated profile. R=jar Review URL: http://codereview.chromium.org/14421 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6979 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 6977.ericroman@google.com2008-12-152-8/+8
| | | | | | | TBR=erikkay Review URL: http://codereview.chromium.org/14111 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6978 0039d316-1c4b-4281-b951-d872f2087c98
* Test re-enable some tests to get more data from purify buildbot. This will ↵ericroman@google.com2008-12-152-8/+8
| | | | | | | | | probably be rolled-back after the bot does a run. TBR=erikkay Review URL: http://codereview.chromium.org/14418 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6977 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 6966.ericroman@google.com2008-12-1318-138/+154
| | | | | | | this failed UI tests catastrophically Review URL: http://codereview.chromium.org/14103 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6968 0039d316-1c4b-4281-b951-d872f2087c98
* Use automatic memory management for URLRequestContext's members.ericroman@google.com2008-12-1318-154/+138
| | | | | | | | Also make ProxyService refcounted so the sharing between profiles is explicit. Review URL: http://codereview.chromium.org/13701 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6966 0039d316-1c4b-4281-b951-d872f2087c98
* Add back proxy_script_fetcher[_unittest.cc] to the build -- mark the tests ↵ericroman@google.com2008-12-126-8/+22
| | | | | | | | as DISABLED_ instead, until have resolved the purify builder error. Review URL: http://codereview.chromium.org/14081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6949 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 6911.ojan@google.com2008-12-124-51/+47
| | | | | | Review URL: http://codereview.chromium.org/14068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6916 0039d316-1c4b-4281-b951-d872f2087c98
* message_pump_libevent refactor:jeremy@chromium.org2008-12-124-47/+51
| | | | | | | | | | * Unify WatchSocket & WatchFileHandle. * Better encapsulate libevent. * Fix a bug with blocking writes in ipc_posix.cc Review URL: http://codereview.chromium.org/13757 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6911 0039d316-1c4b-4281-b951-d872f2087c98
* Remove overly aggressive assertjar@google.com2008-12-121-9/+0
| | | | | | | | | | I was seeing this assertion when a filter translated broken data into a meta-refresh (in the experimental SDCH filter decode). r=mbelshe Review URL: http://codereview.chromium.org/13771 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6895 0039d316-1c4b-4281-b951-d872f2087c98
* Port flush_cache tool and perf_tests.phajdan.jr@chromium.org2008-12-121-83/+18
| | | | | | | | | BUG=4160,4263 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=6815 Review URL: http://codereview.chromium.org/9639 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6886 0039d316-1c4b-4281-b951-d872f2087c98
* 307 redirects of POST should generate POSTs instead of GETs.abarth@chromium.org2008-12-124-10/+24
| | | | | | | | | BUG=4875 R=darin Review URL: http://codereview.chromium.org/13334 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6879 0039d316-1c4b-4281-b951-d872f2087c98
* Don't append tlslite to PYTHONPATH more than oncemark@chromium.org2008-12-121-15/+20
| | | | | | Review URL: http://codereview.chromium.org/14037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6876 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Set up an experiment to measure the effect ofrvargas@google.com2008-12-115-28/+96
| | | | | | | | | | | | | | | | increasing the maximum cache size. There will be three groups on the experiment, each group with 10% of the users (Dev Channel). Each group will have the max cache size increased by a factor from 2 to 4 times the current size, and we'll measure the age of evicted entries. I'm also adding a few metrics of reliability, to detect how often we're not getting to do proper cleanup. Review URL: http://codereview.chromium.org/14013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6847 0039d316-1c4b-4281-b951-d872f2087c98
* Build a few more files on the Mac:mark@chromium.org2008-12-111-3/+13
| | | | | | | | | | | | | - base/watchdog.cc - base/watchdog_unittests.cc - net/base/directory_lister.cc - net/base/directory_lister_unittest.cc - net/base/filter_unittest.cc - net/http/http_auth_cache_unittest.cc - net/http/http_util_unittest.cc Review URL: http://codereview.chromium.org/13804 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6829 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 6815.phajdan.jr@chromium.org2008-12-111-18/+83
| | | | | | Review URL: http://codereview.chromium.org/14006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6816 0039d316-1c4b-4281-b951-d872f2087c98
* Port flush_cache tool and perf_tests.phajdan.jr@chromium.org2008-12-111-83/+18
| | | | | | | BUG=4160,4263 Review URL: http://codereview.chromium.org/9639 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6815 0039d316-1c4b-4281-b951-d872f2087c98
* Don't require tlslite to be installed, just use what's in the treemark@chromium.org2008-12-111-4/+23
| | | | | | Review URL: http://codereview.chromium.org/13745 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6794 0039d316-1c4b-4281-b951-d872f2087c98
* Missed a spot during the FilePathing.avi@google.com2008-12-111-1/+1
| | | | | | Review URL: http://codereview.chromium.org/13386 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6786 0039d316-1c4b-4281-b951-d872f2087c98
* Move file enumeration to filepaths.avi@google.com2008-12-113-6/+8
| | | | | | Review URL: http://codereview.chromium.org/13315 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6784 0039d316-1c4b-4281-b951-d872f2087c98
* Remove proxy_script_fetcher from the scons files too to try and green purify ↵ericroman@google.com2008-12-102-2/+0
| | | | | | | | | | builder. TBR=erikkay Review URL: http://codereview.chromium.org/13340 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6704 0039d316-1c4b-4281-b951-d872f2087c98
* Remove proxy_script_fetcher_unittest.cc as it seems to be triggering a UMR.ericroman@google.com2008-12-102-12/+0
| | | | | | | | | | I cannot repro this locally, so doing a quick change to green the purify builder. TBR=erikkay Review URL: http://codereview.chromium.org/13704 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6702 0039d316-1c4b-4281-b951-d872f2087c98
* no-op style change.ericroman@google.com2008-12-101-4/+4
| | | | | | | | TBR=wtc@chromium.org Review URL: http://codereview.chromium.org/13703 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6701 0039d316-1c4b-4281-b951-d872f2087c98
* Add a ProxyScriptFetcher class for doing asynch downloads of PAC ↵ericroman@google.com2008-12-1024-3/+717
| | | | | | | | scripts.This object will be owned by ProxyService. It will be used to manage the fetching of PAC scripts (on the IO thread, using the primary URLRequestContext).BUG=74,2764 (partial) Review URL: http://codereview.chromium.org/13251 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6699 0039d316-1c4b-4281-b951-d872f2087c98
* no-op style change.ericroman@google.com2008-12-101-4/+4
| | | | | | | | TBR=wtc@chromium.org Review URL: http://codereview.chromium.org/13335 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6694 0039d316-1c4b-4281-b951-d872f2087c98
* Misc proxy service changes.ericroman@google.com2008-12-1016-213/+308
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (1) Changed the proxy service ownership model -- rather than being a detail of the HTTP stack, it is now a dependency owned by UrlRequestContext. - ProxyService is owned by UrlRequestContext (before was HttpNetworkSession) - ProxyResolver is owned by ProxyService (before was HttpNetworkSession) Being able to share the proxy service is needed in several places, including incognito mode http context (http://crbug.com/3564), and for proxy resolving in the new FTP stack. (2) Added an IPC for getting of the ProxyResolverWinHttp dependency in the plugin process. Not hooked up yet, but intent is to route the proxy resolve requests through the browser process. (3) Changed some unit tests which were depending on the system proxy settings (this was a sideffect of their calling HttpNetworkLayer::CreateFactory(NULL)). (4) Moved the first-time ProxyService::UpdateConfig out of the constructor and into the initial request. Done to avoid startup perf regressions, since the ProxyService construction is now done earlier (on the startup critical path). BUG=3564 Review URL: http://codereview.chromium.org/12938 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6693 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Avoid using a block file to full capacity if there isrvargas@google.com2008-12-091-3/+17
| | | | | | | | | | | | another file already chained to this one. The second timer of DiskCacheTest.BlockFilesPerformance (net_perftests) is reduced by ~60% (YMMV). Review URL: http://codereview.chromium.org/13677 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6660 0039d316-1c4b-4281-b951-d872f2087c98
* If a server answers a cache validation request with 304 and ↵rvargas@google.com2008-12-092-1/+49
| | | | | | | | | | | | | | | cache-control:no-store, we return the cached entry to the requestor but doom the entry so it's not used in the future. B=b/1363355 R=darin TEST=unit test. Review URL: http://codereview.chromium.org/13273 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6605 0039d316-1c4b-4281-b951-d872f2087c98
* Fix some crashes by handling an NSS result value more carefully and revertingevanm@google.com2008-12-091-6/+13
| | | | | | | | | a bit of Linux SSL code. Review URL: http://codereview.chromium.org/13649 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6591 0039d316-1c4b-4281-b951-d872f2087c98
* Third time's a charm?dkegel@google.com2008-12-0712-46/+579
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fix part of http://code.google.com/p/chromium/issues/detail?id=4510 and improve https support in test shell on linux. This is the same as the earlier ssl cert cl (see http://codereview.chromium.org/11249), but with the certs moved so net can use them without reaching over into chrome's pants and causing test failure on the 'modules' Windows build server, which is set up to test net and base but not chrome. For this to pass, we will need to install the certs on the windows module and try servers. (And make sure tlslite is present.) (A later CL will finish implementing SSLInfo for Linux, and probably reference net/base/ssl_test_util.cc from all three vcproj files that need it, even though that's ugly, because that's less ugly that referencing it from net.lib's vcproj.) Review URL: http://codereview.chromium.org/12930 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6495 0039d316-1c4b-4281-b951-d872f2087c98
* Correctly handle (and log) receipt of gzip response to SDCH encode proposaljar@google.com2008-12-053-2/+29
| | | | | | | | | | | | | | | | | | | When the only response to a SDCH encoding proposal (including a statement of an Avail-Dict) is a gzip response, the filtering infrastructure needs to add in a missing "sdch" sniffing filter. This filter should enter into pass-through mode if the content does not have a valid SDCH header. This functionality is critical to the latency experiment, which will signal the fact that a session is in the control group by doing exactly the above pattern (only using gzip, despite the dictionary). This is a blocker for the Chrome SDCH latency experiment. bug = 1520081 reviewers= huanr,openvcdiff,kmixter Review URL: http://codereview.chromium.org/12964 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6415 0039d316-1c4b-4281-b951-d872f2087c98
* Record network latency stats for Win HTTP in a histogramjar@google.com2008-12-052-1/+12
| | | | | | | r=wtc Review URL: http://codereview.chromium.org/12972 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6414 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Add support for an extra data stream for each cache entry.rvargas@google.com2008-12-04140-75/+527
| | | | | | | | | | | | This is the first step to allow the http cache to store additional metadata for certain entries. The cache file format changes to version 2.0 so an effect of this cl is that the borwser will discard the old cache files. Review URL: http://codereview.chromium.org/12880 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6392 0039d316-1c4b-4281-b951-d872f2087c98
* Get rid of kPathSeparator on windows. Port some wstring function to take ↵estade@chromium.org2008-12-042-12/+18
| | | | | | | | FilePaths. Re-enable relevant posix unit tests. Review URL: http://codereview.chromium.org/12893 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6387 0039d316-1c4b-4281-b951-d872f2087c98
* Changed svn:eol-style of all .sln and .vcproj files to CRLFscherkus@chromium.org2008-12-047-2260/+2260
| | | | | | Review URL: http://codereview.chromium.org/13133 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6372 0039d316-1c4b-4281-b951-d872f2087c98
* upgrade cache tool: Improve the handling of errors so thatrvargas@google.com2008-12-031-3/+14
| | | | | | | | | | we ignore as much as possible without aborting the whole process. R=nsylvain Review URL: http://codereview.chromium.org/12925 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6334 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused x-SDCH header from get requestsjar@google.com2008-12-031-7/+0
| | | | | | | | | | | | | | | | | | This was originally in place to allow the server folks to filter out (disable) a specific client. Given that it is no big deal if chrome support for SDCH is disabled in GWS, this is really not needed (and it accounts for a large number of bytes in ALL get requests. If we have a problem with SDCH support in chrome, we'd roll a new version IMO, if server needs to disable this feature for a specific version, they should filter on the actual user agent string, and not require a redundant copy of it here. r=openvcdiff,huanr,kmixter Review URL: http://codereview.chromium.org/13071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6259 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r6233, need to move the cert, there is a policy against dkegel@google.com2008-12-028-389/+28
| | | | | | | | net depending on chrome Review URL: http://codereview.chromium.org/13059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6237 0039d316-1c4b-4281-b951-d872f2087c98
* For http://code.google.com/p/chromium/issues/detail?id=4510dkegel@google.com2008-12-028-28/+389
| | | | | | | | | | | | | | | | | | | Extract some UI SSL test code into new class SSLTestUtil to avoid duplication. Point nss at root certs so test_shell can talk to mail.google.com without warnings. Support ciphers needed to talk to testserver.py. Load temporary testing cert needed to run unit tests. Implement part of GetSSLInfo. Change URL in developer error message to point to chromium.org. Re-enable url_request_unittest.cc, which seems to have been disabled by mistake. Later changesets will implement x509 certificates for nss, finish GetSSLInfo support, and update chrome/browser/ssl_uitest.cc to use SSLTestUtil. Earlier version was committed as r6063, but was rolled back. Review URL: http://codereview.chromium.org/11249 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6233 0039d316-1c4b-4281-b951-d872f2087c98
* * Cleanup: move base/platform_test.h -> testing/jeremy@chromium.org2008-12-0214-26/+13
| | | | | | | | * Add support for "Debug On Start" switch to MultiprocessTest::SpawnChild Review URL: http://codereview.chromium.org/13052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6227 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Add a tool to upgrade a set of cache files from one version torvargas@google.com2008-12-0211-54/+1550
| | | | | | | | | another. Also moves crash_cache project to the "tools folder" on the solution. Review URL: http://codereview.chromium.org/12851 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6226 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: fix layout test crash for security/block-test.html.agl@chromium.org2008-12-021-0/+2
| | | | | | | | | | | | If a connection fails without EINPROGRESS then we don't close the socket right away, but wait until the destructor calls Disconnect(). However, Disconnect assumes that we managed to setup the libevent handle, which is that case we didn't, and crashes on an assert. Review URL: http://codereview.chromium.org/12648 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6223 0039d316-1c4b-4281-b951-d872f2087c98
* Minor refactorings:ericroman@google.com2008-12-024-6/+5
| | | | | | | | | | | | - Change scheme from a (const char*) to a (std::string). This is in response to an earlier comment. Background: It used to be a (const char*) to avoid allocating a string object since all the callers initialize it with a string literal. - Change the initial value of nonce_count_ from 1 to 0. This doesn't functionally change anything (we just change to a pre-increment rather than post-increment), but I prefer the the start-at-zero style. Review URL: http://codereview.chromium.org/12846 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6208 0039d316-1c4b-4281-b951-d872f2087c98
* Refactoring: replace some raw strings with GURL.ericroman@google.com2008-12-0210-44/+57
| | | | | | | | Also address a TODO about stripping references from proxy resolve requests. Review URL: http://codereview.chromium.org/13029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6207 0039d316-1c4b-4281-b951-d872f2087c98
* Add instrumentation to and tighten SDCH implementationjar@google.com2008-12-022-3/+12
| | | | | | | r=huanr,kmixter,openvcdiff Review URL: http://codereview.chromium.org/12699 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6193 0039d316-1c4b-4281-b951-d872f2087c98
* Remove file_util::kPathSeparator from posix.estade@chromium.org2008-11-272-8/+6
| | | | | | Review URL: http://codereview.chromium.org/12489 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6099 0039d316-1c4b-4281-b951-d872f2087c98
* Roll back r6063. TBR.dank@chromium.org2008-11-266-374/+23
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6067 0039d316-1c4b-4281-b951-d872f2087c98