summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* Add targets for page_cycler_tests, perf_tests and startup_tests. Listedsgk@google.com2009-03-161-2/+1
| | | | | | | | | | minimal dependencies to build on Linux, Windows will need more. Make a 'test_support_base' library containing the .cc files used in common by perf tests in both net and chrome. Review URL: http://codereview.chromium.org/48021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11803 0039d316-1c4b-4281-b951-d872f2087c98
* LogBlockedTunnelResponse only needs the response code aswtc@chromium.org2009-03-162-7/+6
| | | | | | | | | input. R=abarth Review URL: http://codereview.chromium.org/46053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11772 0039d316-1c4b-4281-b951-d872f2087c98
* Add command line switch "--new-ftp" for new portable FTPwtc@chromium.org2009-03-168-6/+181
| | | | | | | | | | | | | | implementation. Add the (empty) URLRequestNewFtpJob class. Contributed by Ibrar Ahmed <ibrar.ahmad@gmail.com>. BUG=4965 R=darin,wtc Review URL: http://codereview.chromium.org/42197 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11768 0039d316-1c4b-4281-b951-d872f2087c98
* Removed unneeded includes of base/time.h.thestig@chromium.org2009-03-162-2/+8
| | | | | | Review URL: http://codereview.chromium.org/48019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11766 0039d316-1c4b-4281-b951-d872f2087c98
* Make sure that net_perftest doesn't leave temporary files.phajdan.jr@chromium.org2009-03-163-15/+39
| | | | | | | | BUG=8580 Review URL: http://codereview.chromium.org/48003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11753 0039d316-1c4b-4281-b951-d872f2087c98
* Add 'Generating' messages for rules.sgk@google.com2009-03-161-0/+1
| | | | | | Review URL: http://codereview.chromium.org/48015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11749 0039d316-1c4b-4281-b951-d872f2087c98
* Back out r11684, a temporary change for debugging issue 8325.wtc@chromium.org2009-03-161-4/+2
| | | | | | | | R=darin BUG=Issue 8325 Review URL: http://codereview.chromium.org/46074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11732 0039d316-1c4b-4281-b951-d872f2087c98
* Restoring net.sln lost in rollback of change 11688.bradnelson@google.com2009-03-141-0/+217
| | | | | | Review URL: http://codereview.chromium.org/46073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11693 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 11689 and 11690jar@chromium.org2009-03-141-1/+1
| | | | | | Review URL: http://codereview.chromium.org/46068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11691 0039d316-1c4b-4281-b951-d872f2087c98
* Removing extra {}s that got lost in restructuring a CL.bradnelson@google.com2009-03-141-1/+1
| | | | | | Review URL: http://codereview.chromium.org/42195 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11690 0039d316-1c4b-4281-b951-d872f2087c98
* Switching net to gyp on windows.bradnelson@google.com2009-03-131-217/+0
| | | | | | Review URL: http://codereview.chromium.org/42184 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11688 0039d316-1c4b-4281-b951-d872f2087c98
* Log an error message when we don't find anywtc@chromium.org2009-03-131-0/+20
| | | | | | | | | | | Proxy-Authenticate header that we support when establishing a tunnel. R=darin BUG=8771 Review URL: http://codereview.chromium.org/42193 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11685 0039d316-1c4b-4281-b951-d872f2087c98
* Temporarily use the Proxy-Connection header before thewtc@chromium.org2009-03-131-2/+4
| | | | | | | | | | | | Connection header in IsKeepAlive. This is an experiment to see if it allows us to do NTLM auth through Privoxy to a proxy. R=darin BUG=8325 Review URL: http://codereview.chromium.org/46061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11684 0039d316-1c4b-4281-b951-d872f2087c98
* Added yet one more histogram to help debug SDCH issues.jar@chromium.org2009-03-131-2/+4
| | | | | | | r=wtc Review URL: http://codereview.chromium.org/46060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11675 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: GYP fixesagl@chromium.org2009-03-131-2/+1
| | | | | | | | | This is the fix of tweaks to the GYP files needed to build test_shell. Review URL: http://codereview.chromium.org/42179 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11670 0039d316-1c4b-4281-b951-d872f2087c98
* wtc: please look at URL related code, and hooks and nitsjar@chromium.org2009-03-1313-197/+242
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | you might have commented on before. huanr: please look at sdch_filter code. The intent was no semantic change, and only change in histograms and stats gathered. I wanted to be sure I had better stats on several failure cases, as the turn-around time of adding stats to instrument such cases after they surface is just too long. The big feature is the mechanism for getting the total number of bytes passed to a filter. We use the filter context to achieve this, and then the SDCH filter can calculate compression ratio (from pre-gunzip vs post SDCH decompress). The number of bytes read was also histogrammed in a number of error scenarios, to better diagnose what is going on when these cases arrise (example: When some data is still buffered in the VCDIFF decoder). The sdch_filter destructor was getting long and hard to read with multiple if blocks, so I cleaned that up as well a bit (less indentation, and use of early returns). Nits not included in previous CL that earlier are listed as well. r=wtc,huanr Review URL: http://codereview.chromium.org/40319 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11665 0039d316-1c4b-4281-b951-d872f2087c98
* Highlights of changes:hclam@chromium.org2009-03-137-16/+42
| | | | | | | | | | | | | | | | | | | 1. Added entry to ResourceResponseHead so that it contains either a base::PlatformFile (OS_WIN) or base::FileDescriptor (OS_POSIX) for passing the file handle from browser to renderer process. 2. Also added IPC messages for reporting download progress and ACK message for it. ResourceLoaderBridge::Peer::OnDownloadProgress is added so that the peer is notified of the download progress in the renderer process. 3. Load flag to kick start the resource loading for media files. LOAD_MEDIA_RESOURCE is added so that ResourceDispatcherHost knows how to use a different ResourceHandler for handling media resource request. Review URL: http://codereview.chromium.org/27168 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11661 0039d316-1c4b-4281-b951-d872f2087c98
* Removed unneeded includes of base/scoped_ptr.h. Reduce usage from ~800 files ↵thestig@chromium.org2009-03-135-3/+2
| | | | | | | | to ~400. Review URL: http://codereview.chromium.org/46039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11651 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unneeded platform_thread.h includes. Reduces number of includes from ↵thestig@chromium.org2009-03-132-2/+0
| | | | | | | | 598 to 511. Review URL: http://codereview.chromium.org/42165 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11617 0039d316-1c4b-4281-b951-d872f2087c98
* Remove logging.h from cc files that don't use it.thestig@chromium.org2009-03-123-3/+0
| | | | | | Review URL: http://codereview.chromium.org/42155 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11593 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unneeded uses of logging.h in header files.thestig@chromium.org2009-03-128-1/+7
| | | | | | Review URL: http://codereview.chromium.org/43148 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11590 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up our fix for bug 7338 and bug 8473, which wentwtc@chromium.org2009-03-123-9/+16
| | | | | | | | | | through several iterations. R=abarth BUG=7338,8473 Review URL: http://codereview.chromium.org/42148 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11589 0039d316-1c4b-4281-b951-d872f2087c98
* Cleaning up Website junk in sln files.bradnelson@google.com2009-03-121-92/+0
| | | | | | Review URL: http://codereview.chromium.org/42143 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11573 0039d316-1c4b-4281-b951-d872f2087c98
* Pointing slns at generated vcprojs from base.bradnelson@google.com2009-03-121-66/+83
| | | | | | Review URL: http://codereview.chromium.org/42047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11520 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unneeded includes of googleurl/src/url_parse.h and url_canon.h.thestig@chromium.org2009-03-122-3/+0
| | | | | | Review URL: http://codereview.chromium.org/42102 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11502 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 11495 (since that reversion didn't heal plugin problem)jar@chromium.org2009-03-123-3/+74
| | | | | | | tbr=abarth Review URL: http://codereview.chromium.org/43112 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11500 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 11484 to try to heal plugin_test failurejar@chromium.org2009-03-113-74/+3
| | | | | | | tbr=abarth Review URL: http://codereview.chromium.org/42101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11495 0039d316-1c4b-4281-b951-d872f2087c98
* Add unit tests for NTLM authentication. This requireswtc@chromium.org2009-03-113-20/+295
| | | | | | | | | | | | overriding the functions that generate random bytes or get the local host name, so that the generated NTLM messages are reproducible. R=eroman BUG=6567,6824 Review URL: http://codereview.chromium.org/42052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11488 0039d316-1c4b-4281-b951-d872f2087c98
* Block reading unauthenticated bytes from the proxy when the user cancels a ↵abarth@chromium.org2009-03-113-3/+74
| | | | | | | | | | | 407 proxy auth request while we're trying to establish an SSL tunnel. BUG=8473 R=wtc Review URL: http://codereview.chromium.org/42065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11484 0039d316-1c4b-4281-b951-d872f2087c98
* Minor nits in IO bufferjar@chromium.org2009-03-112-2/+4
| | | | | | | | | | | | | | | | While doing restructuring work on filters, I read some of the IObuffer code, and it scared me a bit that there was a public constructor taking a data buffer that was then destroyed. After searching around for how this was used, I realized it is only used by the derived class, and thought that making it protected would save other folks from wondering/searching/checking. Since the size type in other constuctory was int rather than size_t, I also added a DCHECK (mostly out of paranoia). r=rvargas Review URL: http://codereview.chromium.org/43086 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11479 0039d316-1c4b-4281-b951-d872f2087c98
* NO CODE CHANGEdeanm@chromium.org2009-03-11187-188/+0
| | | | | | | | | Normalize end of file newlines in net/. All files end in a single newline. Review URL: http://codereview.chromium.org/43079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11442 0039d316-1c4b-4281-b951-d872f2087c98
* Unfork the code path for loading net resources on mac, ie-put it back inlinethomasvl@chromium.org2009-03-111-14/+1
| | | | | | | with win/linux. Review URL: http://codereview.chromium.org/43044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11439 0039d316-1c4b-4281-b951-d872f2087c98
* net_resources unforkthomasvl@chromium.org2009-03-111-37/+27
| | | | | | | | | | | | - bring the rules for grit all in align for common style/dir names. - make the mac build net:net_resource (was win/linux only) - ripple the mac dep upstream - merge net_resource into the chrome repack more work is needed on the mac side, we aren't really using the new resources yet, but this is a clean landing point. Review URL: http://codereview.chromium.org/45001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11438 0039d316-1c4b-4281-b951-d872f2087c98
* remove a bogus comment on thread safety.thomasvl@chromium.org2009-03-111-4/+1
| | | | | | Review URL: http://codereview.chromium.org/42034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11436 0039d316-1c4b-4281-b951-d872f2087c98
* Adding more guids (realized unit tests get included in slns up higher in the ↵bradnelson@google.com2009-03-101-0/+4
| | | | | | | | tree. Review URL: http://codereview.chromium.org/43050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11397 0039d316-1c4b-4281-b951-d872f2087c98
* Adding fixed guids to some modules to facilitate incremental switch to gyp.bradnelson@google.com2009-03-101-0/+2
| | | | | | Review URL: http://codereview.chromium.org/42044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11388 0039d316-1c4b-4281-b951-d872f2087c98
* Slight code change to make some global variables const.maruel@google.com2009-03-1020-115/+184
| | | | | | | Fix >80 cols lines. Review URL: http://codereview.chromium.org/42013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11342 0039d316-1c4b-4281-b951-d872f2087c98
* On some slow machines, like the virtual machine of Vista 64nsylvain@chromium.org2009-03-101-4/+3
| | | | | | | | | | | | and Windows 7, the ping always take more than 100 ms. And retrying 100 times the same operation is never a good idea. So i'm waiting 1 sec instead of 100ms, and i retry 10 times only. And there was extranous err checks, I'm not sure why they were there. Was there a line missing there? Review URL: http://codereview.chromium.org/40282 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11309 0039d316-1c4b-4281-b951-d872f2087c98
* Add filter_unittest.h to net/base modulejar@chromium.org2009-03-091-0/+1
| | | | | | | r=sgk Review URL: http://codereview.chromium.org/40305 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11261 0039d316-1c4b-4281-b951-d872f2087c98
* Add warning comment to FileStream::Truncateagl@chromium.org2009-03-091-0/+2
| | | | | | | Review URL: http://codereview.chromium.org/40299 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11258 0039d316-1c4b-4281-b951-d872f2087c98
* Fix tree: Purify noted I didn't init two bools in a mock-class constructor.jar@chromium.org2009-03-091-1/+5
| | | | | | | tbr=wtc Review URL: http://codereview.chromium.org/41001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11255 0039d316-1c4b-4281-b951-d872f2087c98
* Use FilterContext to allow filters to access URLRequestJob datajar@chromium.org2009-03-0928-154/+366
| | | | | | | r=wtc,darin,huanr Review URL: http://codereview.chromium.org/40138 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11248 0039d316-1c4b-4281-b951-d872f2087c98
* Adds truncate to FileStream.sky@google.com2009-03-094-0/+73
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/39301 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11245 0039d316-1c4b-4281-b951-d872f2087c98
* Landing again the CL that adds security info to canceled requests (last time ↵jcampan@chromium.org2009-03-083-6/+32
| | | | | | | | | it was causing sync XMLHttpRequests to hang, breaking many layout tests). TBR=darin Review URL: http://codereview.chromium.org/39321 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11221 0039d316-1c4b-4281-b951-d872f2087c98
* Revert change 11197 because it created 138 new layout testsnsylvain@chromium.org2009-03-073-32/+6
| | | | | | | | failures. Review URL: http://codereview.chromium.org/39311 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11201 0039d316-1c4b-4281-b951-d872f2087c98
* Landing again the CL that adds security info to canceled requests (it was ↵jcampan@chromium.org2009-03-073-6/+32
| | | | | | | | | | | breaking NPAPI tests on Vista due to an erroneuous commented line). TBR=darin Review URL: http://codereview.chromium.org/39309 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11197 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 11179.jcampan@chromium.org2009-03-073-32/+6
| | | | | | | Reverting CL as plugin UI tests fail on Vista Review URL: http://codereview.chromium.org/40260 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11187 0039d316-1c4b-4281-b951-d872f2087c98
* This CL adds a way to specify the security info when canceling a URLRequest.jcampan@chromium.org2009-03-073-6/+32
| | | | | | | | | | | This allows to tag a request on the renderer side with its security info. It is useful for the "frame info" dialog. When showing that dialog for blocked frames, the security info can be retrieved and users can see the cert details for the blocked frame. TEST=Open a page containing a frame served over bad HTTPS. The frame is blocked (replaced with a warning message). Right-click, select "Frame info". The dialog should have a "show cert" button which when pressed should show the frame's bad cert. BUG=2853 Review URL: http://codereview.chromium.org/7276 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11179 0039d316-1c4b-4281-b951-d872f2087c98
* New disk cache eviction algorithm (partial implementation).rvargas@google.com2009-03-0613-110/+638
| | | | | | | | | | | | | | | | | | | | | | | | Disabled by a #def. When enabled, file format 2.1 is used, with a possible update from ver 2.0. If a version with this code disabled is run after the upgrade, it will just discard the file and go back to 2.0. We now put some of those extra list to use! Entries are separated into various lists depending on how often are used, and we keep track of previously evicted entries. If the new algorithm is not enabled, most of the code just goes through a different path (with the old code instead of the new one). One notable exception is OpenFollowingEntry, used to enumerate the entries on the cache; the code changed significantly to support the new version of the "cache iterator", but functionally should do the same as the current code. Review URL: http://codereview.chromium.org/27345 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11145 0039d316-1c4b-4281-b951-d872f2087c98
* fixes for python 2.6 warnings in the testserver.thomasvl@chromium.org2009-03-061-7/+13
| | | | | | | BUG=8300 Review URL: http://codereview.chromium.org/40235 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11142 0039d316-1c4b-4281-b951-d872f2087c98