summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Mark DigiNotar Root CA as EV.wtc@chromium.org2009-03-061-0/+7
| | | | | | | | R=ian BUG=7527 Review URL: http://codereview.chromium.org/40200 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11140 0039d316-1c4b-4281-b951-d872f2087c98
* Add the proxy resolver perftest to GYP.ericroman@google.com2009-03-062-2/+3
| | | | | | | | BUG=2764 Review URL: http://codereview.chromium.org/39239 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11082 0039d316-1c4b-4281-b951-d872f2087c98
* Add performance tests for the proxy resolver implementations.ericroman@google.com2009-03-065-0/+1565
| | | | | | | | | I downloaded the test data "no-ads.pac" from <http://ap.coova.org/wpad.dat>. BUG=2764 Review URL: http://codereview.chromium.org/40149 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11066 0039d316-1c4b-4281-b951-d872f2087c98
* Mark the "SwissSign Gold CA - G2" root CA as EV.wtc@chromium.org2009-03-061-0/+6
| | | | | | | | R=ian BUG=4150 Review URL: http://codereview.chromium.org/39213 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11064 0039d316-1c4b-4281-b951-d872f2087c98
* Don't read message-body for HEAD responses.ericroman@google.com2009-03-053-25/+106
| | | | | | | | BUG=3828 Review URL: http://codereview.chromium.org/40161 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11055 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up HttpResponseHeaders::IsKeepAlive. Use the parsedwtc@chromium.org2009-03-052-8/+27
| | | | | | | | | | HTTP version in the http_version_ member. Pass NULL to EnumerateHeader. R=eroman Review URL: http://codereview.chromium.org/40137 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11045 0039d316-1c4b-4281-b951-d872f2087c98
* Only tune SO_SNDBUF/SO_RCVBUF sizes for pre-Vista systems.mbelshe@google.com2009-03-051-15/+24
| | | | | | Review URL: http://codereview.chromium.org/40168 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11001 0039d316-1c4b-4281-b951-d872f2087c98
* Revert change 10975 and 10972 because it broke the purify nsylvain@chromium.org2009-03-054-20/+0
| | | | | | | | | | | | | | | | | | | | | | | tests, and it might have caused a unit tests failure. purify error : UMR in URLRequest::response_data_file failing test: URLFetcherHeadersTest.Headers: c:\b\slave\chromium-rel-builder\build\src\chrome\browser\net\url_fetcher_unittest.cc(222): error: Value of: source->response_headers()->GetNormalizedHeader("cache-control", &header) Actual: false Expected: true c:\b\slave\chromium-rel-builder\build\src\chrome\browser\net\url_fetcher_unittest.cc(223): error: Value of: header Actual: "" Expected: "private" c:\b\slave\chromium-rel-builder\build\src\chrome\browser\net\url_fetcher_unittest.cc(181): error: Value of: response_code Actual: 404 Expected: 200 Release only. Review URL: http://codereview.chromium.org/39191 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10988 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes CRLF and trailing white spaces.maruel@chromium.org2009-03-0553-238/+238
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10982 0039d316-1c4b-4281-b951-d872f2087c98
* Highlights of changes:hclam@chromium.org2009-03-054-0/+20
| | | | | | | | | | | | | | | | | | | 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@10972 0039d316-1c4b-4281-b951-d872f2087c98
* Log an error message if the auth scheme is connection-basedwtc@chromium.org2009-03-041-0/+30
| | | | | | | | | | but the connection is not marked as keep-alive. R=eroman BUG=8325 Review URL: http://codereview.chromium.org/40093 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10925 0039d316-1c4b-4281-b951-d872f2087c98
* net.gyp changes for the Linux build (and some Windows fixing):sgk@google.com2009-03-041-43/+23
| | | | | | | | | | | | * Add a net_test_support library to hold the disk_cache_test_util.* object file used by several of the test executables. * Generate the net_resources.h file by re-using the existing net_resources 'grit' rule defined for Windows, not by rolling our own flavor. * Give the grit.py rule all of its generated output files (*.h, *.rc, *.pak). * Fix the path of the grit-generated *.h file (it's in a grit/ subdir). Review URL: http://codereview.chromium.org/40083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10898 0039d316-1c4b-4281-b951-d872f2087c98
* Move the main entry point *.scons files in the key remaining componentssgk@google.com2009-03-041-0/+0
| | | | | | | | | (net, webkit, chrome) to *_main.scons, so we can use GYP=1 on the command line to switch between old and new while tracking down the remaining inconsistencies. Review URL: http://codereview.chromium.org/39080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10882 0039d316-1c4b-4281-b951-d872f2087c98
* Fix error being thrown in isInNet() PAC js.ericroman@google.com2009-03-042-20/+175
| | | | | | | | | | | | | | | | | | | Mozilla is using notation which treats regexp like a function: var regex = /foo/; var result = regex("str"); However v8 does not allow this (nor does IE), so we rewrite it in standard form: var regex = /foo/; var result = regex.exec("str") Also finishes off the tests in pac_library_unittest.js. I didn't test every single permutation of dateRange() and timeRange() as there are way too many; but did hit most common flavors. BUG=2764 Review URL: http://codereview.chromium.org/40006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10843 0039d316-1c4b-4281-b951-d872f2087c98
* Add a command line flag --v8-proxy-resolver, to select the new PAC ↵ericroman@google.com2009-03-032-3/+51
| | | | | | | | | | | | | | | | | | implementation. When running in single process mode, this flag has no effect (since we can't run side by side with the renderer's V8). In regular mode, the v8 resolver is currently running in the browser process. This means it has to share with the v8 debugger shell. Added locking around the debugger shell so they can peacefully co-exist. When this flag is enabled, PAC scripts are downloaded through the browser. BUG=74,2764 Review URL: http://codereview.chromium.org/27365 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10827 0039d316-1c4b-4281-b951-d872f2087c98
* Implement the PAC js-binding for "myIpAddress()".ericroman@google.com2009-03-035-7/+52
| | | | | | | BUG=2764 Review URL: http://codereview.chromium.org/38001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10824 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes to gyp files to get test_shell building on windows from a gyp project ↵bradnelson@google.com2009-03-031-15/+0
| | | | | | | | | | (doesn't run correctly yet). Switched all uses of windows system libraries that assumed they were in the include path to use -l (which will be supported on windows in a separate change). Review URL: http://codereview.chromium.org/27362 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10781 0039d316-1c4b-4281-b951-d872f2087c98
* Add proxy_resolver_v8 to SCONS build.ericroman@google.com2009-03-032-0/+5
| | | | | | Review URL: http://codereview.chromium.org/28346 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10769 0039d316-1c4b-4281-b951-d872f2087c98
* Proposed change to support resource loading for media files.hclam@chromium.org2009-03-0211-15/+398
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Highlights of changes: - Added methods to disk_cache::Entry: - Entry::PrepareTargetAsExternalFile(int index) Prepare a stream in an entry to use external file for storage. - Entry::GetExternalFile(int index) Get the external file backing the stream in the entry. - Added a property "CacheType type_" to HttpCache, along with setter and getter. There shall be two cache types, COMMON_CACHE and MEDIA_CACHE for distinguishing between different purpose of HttpCache. We have this property to trigger special behavior for caching needs of media files. - Added static methods to ChromeURLRequestContext - ChromeURLRequestContext::CreateOriginalForMedia Create a URLRequestContext for media files for the original profile. - ChromeURLRequestContext::CreateOffTheRecordForMedia Create a URLRequestContext for media files for off the record profile. - Added method to Profile interface. - GetRequestContextForMedia To get the request context for media files from the context. Design decissions: - Enforce writing to external file by calling methods to Entry rather than construct Backend by a different flag. Since we only want a valid and full response to go into an external file rather than redirection response or erroneous response, we should let HttpCache::Transaction to decide when to have an external file for response data. We eliminate a lot of useless external cache files. - Adding the CacheType enum and property to HttpCache, we could allow possible (?) future extensions to HttpCache to handle other different caching needs. And there's no need to add change constructors of HttpCache, but maybe we should add a specific constructor to accomodate a media HttpCache? - Adding Profile::GetRequestContextForMedia() Since we will need to use this new request context in ResourceDispatcherHost, I think the best place to keep it is in the profile. Also we will expose to user that there's a separate cache for media, so it's better to expose it in the Profile level to allow settings to the media cache, e.g. max file size, etc. Review URL: http://codereview.chromium.org/19747 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10745 0039d316-1c4b-4281-b951-d872f2087c98
* Add missing header (breaks on linux).ericroman@google.com2009-03-021-0/+1
| | | | | | | | TBR=wtc@chromium.org Review URL: http://codereview.chromium.org/27356 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10741 0039d316-1c4b-4281-b951-d872f2087c98
* split up proxy_service into several files (one per class).ericroman@google.com2009-03-0228-456/+677
| | | | | | Review URL: http://codereview.chromium.org/28278 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10739 0039d316-1c4b-4281-b951-d872f2087c98
* Add js bindings layer for ProxyResolverV8 {"alert()", "dnsResolve()", ↵ericroman@google.com2009-03-027-62/+627
| | | | | | | | | | | "myIpAddress" <-- [partial]}. Also adds a utility function to net_util for turning a addrinfo into an IP address string. BUG=2764 Review URL: http://codereview.chromium.org/31009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10730 0039d316-1c4b-4281-b951-d872f2087c98
* Add missing tests to the GYP+Xcode build.mark@chromium.org2009-03-021-0/+2
| | | | | | Review URL: http://codereview.chromium.org/28309 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10695 0039d316-1c4b-4281-b951-d872f2087c98
* GYP it, GYP it good.mark@chromium.org2009-03-021-2018/+0
| | | | | | | | Convert the Mac build to the new GYP-based Xcode build, and remove the old Xcode projects. Review URL: http://codereview.chromium.org/28305 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10693 0039d316-1c4b-4281-b951-d872f2087c98
* Bring net.gyp up to date with Chromium r10667mark@chromium.org2009-02-281-0/+7
| | | | | | Review URL: http://codereview.chromium.org/27303 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10672 0039d316-1c4b-4281-b951-d872f2087c98
* Implement the NTLM authentication scheme by portingwtc@chromium.org2009-02-2822-42/+1786
| | | | | | | | | | Mozilla's implementation. R=darin,eroman BUG=6567,6824 Review URL: http://codereview.chromium.org/28144 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10667 0039d316-1c4b-4281-b951-d872f2087c98
* Distinguish a few more SDCH cases via problem codesjar@chromium.org2009-02-273-5/+25
| | | | | | | r=huanr Review URL: http://codereview.chromium.org/27284 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10649 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Mac build - update project files after merge and jscre library removal.dimich@google.com2009-02-271-31/+1
| | | | | | Review URL: http://codereview.chromium.org/27270 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10601 0039d316-1c4b-4281-b951-d872f2087c98
* Don't let an active network attacker play tricks with CONNECT tunnels throgh ↵abarth@chromium.org2009-02-274-45/+273
| | | | | | | | | | | proxy servers. R=darin,wtc,eroman BUG=7338 Review URL: http://codereview.chromium.org/27198 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10595 0039d316-1c4b-4281-b951-d872f2087c98