summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Http cache: When adding a transaction to a cache entry,rvargas@google.com2009-02-272-4/+91
| | | | | | | | | | | | don't post a dummy task to ProcessPendingQueue (with a writer). BUG=4731 TEST=unittest. Review URL: http://codereview.chromium.org/27149 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10551 0039d316-1c4b-4281-b951-d872f2087c98
* Update a WARNING with a bug URL.evan@chromium.org2009-02-271-5/+5
| | | | | | Review URL: http://codereview.chromium.org/28228 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10547 0039d316-1c4b-4281-b951-d872f2087c98
* Fix minor error it SDCH filter code (hidden by filter control code)jar@chromium.org2009-02-271-0/+1
| | | | | | | | | | | | | | | The controlling code in filter.cc doesn't significantly distinguish FILTER_OK and FILTER_NEEDS_MORE_DATA, but we *should* transition to a semantic where FILTER_OK becomes instead "FILTER_NEEDS_OUTPUT_SPACE" and then we'd need to do this uniformly for all filter code. We *could* then improve the driving filter code (for example, not have to sniff output buffer usage to deduce that the filter wanted to be called again to emit more data). r=huanr Review URL: http://codereview.chromium.org/28193 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10544 0039d316-1c4b-4281-b951-d872f2087c98
* Add ERR_OUT_OF_MEMORY to make it more straightforward towtc@chromium.org2009-02-261-1/+4
| | | | | | | | | | port third-party code that reports memory allocation failures. R=darin,eroman Review URL: http://codereview.chromium.org/28216 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10534 0039d316-1c4b-4281-b951-d872f2087c98
* Add some missing files to net.gyp.ericroman@google.com2009-02-261-0/+5
| | | | | | | | | This corresponds with <http://codereview.chromium.org/28049>. BUG=2764 Review URL: http://codereview.chromium.org/28220 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10526 0039d316-1c4b-4281-b951-d872f2087c98
* net links v8, but didn't have a dep on it, so clean builds failed.thomasvl@chromium.org2009-02-261-0/+26
| | | | | | Review URL: http://codereview.chromium.org/27207 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10461 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 10251.ericroman@google.com2009-02-255-3/+136
| | | | | | | | | | | This re-lands the dependency on v8 by net (http://codereview.chromium.org/28049) It was rolled back before because of failure compiling on submodule buildbot. Marc-Antoine has updated those builders to checkout v8, so this should work now. Review URL: http://codereview.chromium.org/27160 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10409 0039d316-1c4b-4281-b951-d872f2087c98
* Don't accept the url "file:///" on windows (report an error).estade@chromium.org2009-02-251-4/+9
| | | | | | | | | | | See alternate solution here: http://codereview.chromium.org/27119 r=brettw BUG=1474 Review URL: http://codereview.chromium.org/28102 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10408 0039d316-1c4b-4281-b951-d872f2087c98
* Import .gyp files into the Chromium treemark@chromium.org2009-02-251-0/+597
| | | | | | Review URL: http://codereview.chromium.org/27158 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10380 0039d316-1c4b-4281-b951-d872f2087c98
* Change the string_escape functions to use string16 rather than wstring.dsh@google.com2009-02-251-3/+4
| | | | | | Review URL: http://codereview.chromium.org/27116 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10358 0039d316-1c4b-4281-b951-d872f2087c98
* Correct enums in SDCH problem codesjar@chromium.org2009-02-252-5/+7
| | | | | | | r=huanr Review URL: http://codereview.chromium.org/28123 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10350 0039d316-1c4b-4281-b951-d872f2087c98
* Final step in converting all grit includes to have grit in the path.tc@google.com2009-02-241-1/+1
| | | | | | | | | | | | Fixes some linux/mac issues that were pending and fix up the scons build to expect the file in the grit subdir. BUG=7537 Review URL: http://codereview.chromium.org/28035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10306 0039d316-1c4b-4281-b951-d872f2087c98
* Get shared link working again.evan@chromium.org2009-02-241-0/+1
| | | | | | | | | | | | 1) The spell checker works, but it was still in temp_scaffolding_stubs. This meant different files had a different view of the class, causing memory corruption on startup. (Valgrind caught this. We need a Valgrind builder!) 2) The net library provides gtest-related bits and must depend on gtest. Review URL: http://codereview.chromium.org/27036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10280 0039d316-1c4b-4281-b951-d872f2087c98
* Use string for Histogram names since these are all ASCII anyway.dsh@google.com2009-02-2415-59/+52
| | | | | | | | Wide-character literals cause problems between platforms. Review URL: http://codereview.chromium.org/28046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10276 0039d316-1c4b-4281-b951-d872f2087c98
* Implement X509Certificate::Persist. dkegel@google.com2009-02-242-15/+32
| | | | | | | | This lets the browser read gmail on linux. Review URL: http://codereview.chromium.org/27033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10269 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 10250.ericroman@google.com2009-02-245-136/+3
| | | | | | | Rolling back since the windows module builders are failing ot find v8 project... Review URL: http://codereview.chromium.org/27081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10251 0039d316-1c4b-4281-b951-d872f2087c98
* Add v8 as dependency of net.ericroman@google.com2009-02-245-3/+136
| | | | | | | | | | | This is needed for ProxyResolverV8, which executes proxy auto config scripts. See bug 2764. This CL has changes for {xcode, visualstudio}, but not {scons} yet. Review URL: http://codereview.chromium.org/28049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10250 0039d316-1c4b-4281-b951-d872f2087c98
* Have tld_cleanup generate a .cc file that contains the effectivetc@google.com2009-02-2411-126/+3702
| | | | | | | | | | | | tld data. This makes the build dependencies easier (helpful for grit and gyp) and brings in the effective tld data on mac. BUG=6076 Review URL: http://codereview.chromium.org/31004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10245 0039d316-1c4b-4281-b951-d872f2087c98
* Make sure filter buffer is flushed after it fills its output quotajar@chromium.org2009-02-242-5/+28
| | | | | | | | | | | | | | | In some cases, when the filter returned but the output buffer was full, the ReadFilteredData code was not "bothering" to call the filter again (because there was no more input data to provide). We now maintain state indicating that the output buffer was filled (last time) and use that to ensure we call the filter(s) again when Read is next called. bug=7985 r=huanr Review URL: http://codereview.chromium.org/27073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10244 0039d316-1c4b-4281-b951-d872f2087c98
* Multiple fixes for broken Linux SHARED=1 build. This gets things building, ↵mmoss@chromium.org2009-02-231-0/+3
| | | | | | | | | but the resulting 'chrome' binary crashes on start-up (test_shell seems to work better). Review URL: http://codereview.chromium.org/27054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10228 0039d316-1c4b-4281-b951-d872f2087c98
* Add IPv6 support to net::GetHostAndPort.ericroman@google.com2009-02-233-30/+42
| | | | | | Review URL: http://codereview.chromium.org/28015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10205 0039d316-1c4b-4281-b951-d872f2087c98
* Add ProxyResolverV8 class.darin@chromium.org is the original author of ↵ericroman@google.com2009-02-2319-1/+920
| | | | | | | | 'proxy_resolver_v8.cc' and 'proxy_resolver_script.h'. Review URL: http://codereview.chromium.org/21391 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10199 0039d316-1c4b-4281-b951-d872f2087c98
* Add support to ProxyService for downloading a PAC script on behalf of the ↵ericroman@google.com2009-02-235-52/+776
| | | | | | | | ProxyResolver. A ProxyResolver can select this new behavior by subclassing ProxyResolver with |does_fetch = false|. A consequence of this change is that proxy resolve requests are maintained in a queue by ProxyService (rather than implicitly in a queue on the PAC thread's message loop). This simplifies cancellation.This solves issue 7461, and is work-in-progress towards {2764, 74}BUG=7461 Review URL: http://codereview.chromium.org/21328 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10197 0039d316-1c4b-4281-b951-d872f2087c98
* fix checkdepstc@google.com2009-02-221-5/+6
| | | | | | | | | TBR=dean Review URL: http://codereview.chromium.org/27042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10168 0039d316-1c4b-4281-b951-d872f2087c98
* Update include paths for grit files. Go ahead and resorttc@google.com2009-02-221-1/+1
| | | | | | | | the headers too. Review URL: http://codereview.chromium.org/21472 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10167 0039d316-1c4b-4281-b951-d872f2087c98
* Add line break to adhere to 80 char line limit.darin@chromium.org2009-02-211-1/+2
| | | | | | | | R=erikkay Review URL: http://codereview.chromium.org/27022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10150 0039d316-1c4b-4281-b951-d872f2087c98
* Provide error reporting and recovery for SDCH responses not market as HTMLjar@chromium.org2009-02-215-20/+58
| | | | | | | | | | | | | | | | | | | Some AV software may actually strip content type as well as content encoding. As a result, when we propose a dicitonary (suggesting that this will probably be an SDCH encoded response) we need to be ready to "fix" the content-encoding string if it is not marked as gzip,sdch. Note that "fixups" put in tentative decodes, which degrade to pass-through filters if the content's header is not compatible with the decoding format. I also added a line of defensive coding in the dictionary fetcher, and cleaned up a line where I record stats after decoding sdch. bug=7679 r=openvcdiff,huanr Review URL: http://codereview.chromium.org/27016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10143 0039d316-1c4b-4281-b951-d872f2087c98
* Skip certification root initialization if it's not needed.stoyan@chromium.org2009-02-211-4/+6
| | | | | | Review URL: http://codereview.chromium.org/28010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10132 0039d316-1c4b-4281-b951-d872f2087c98
* More fixes for bad reference counting.darin@chromium.org2009-02-201-20/+18
| | | | | | | | TBR=erikkay Review URL: http://codereview.chromium.org/27021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10130 0039d316-1c4b-4281-b951-d872f2087c98
* Fix memory leak caused by bad reference counting. When the test server isdarin@chromium.org2009-02-201-6/+7
| | | | | | | | | | | | | | | allocated it has a reference count of 0, so calling Release again, does not free the memory. The fix is to use a scoped_refptr for both the return value as well as for the local variable. This failure case is triggered by the purify bot not having the test certificate installed. We should also fix that so that we run more tests on the purify bot. Testing this case is also interesting I guess :) TBR=erikkay Review URL: http://codereview.chromium.org/27013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10129 0039d316-1c4b-4281-b951-d872f2087c98
* Add a warning comment to prevent increasingwtc@chromium.org2009-02-201-1/+5
| | | | | | | | | | kCleanupInterval. R=eroman BUG=4606 Review URL: http://codereview.chromium.org/20517 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10064 0039d316-1c4b-4281-b951-d872f2087c98
* If an idle socket has received data unexpectedly, we can'twtc@chromium.org2009-02-1916-14/+118
| | | | | | | | | | | | | | reuse it. Add the IsConnectedAndIdle method, which returns true if the connection is still alive and idle (hasn't received any data unexpectedly). R=eroman BUG=4606 Review URL: http://codereview.chromium.org/21501 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10060 0039d316-1c4b-4281-b951-d872f2087c98
* Enable SSL error handling in Linux again.dkegel@google.com2009-02-1911-466/+636
| | | | | | | | | | Evan, could you review the change since http://codereview.chromium.org/20444 : - load temporary root cert in test_shell Thanks! Review URL: http://codereview.chromium.org/20511 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10055 0039d316-1c4b-4281-b951-d872f2087c98
* Include entries for SOCKS in ProxyResolverMac.ericroman@google.com2009-02-193-80/+92
| | | | | | Review URL: http://codereview.chromium.org/20489 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10049 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up dns prefetch code, and also port it.phajdan.jr@chromium.org2009-02-191-4/+3
| | | | | | | | | | | | | | | | | | | | - remove slave threads and use HostResolver in asynchronous mode instead (while still limiting number of concurrent lookups) - make the implementation portable and make DnsMaster unit test compile and pass on Linux - add more tests to DnsMaster unit test to simulate various shutdown scenarios, concurrent lookups, and to verify that we don't exceed our limit of concurrent lookup requests) - remove some tests which relied on specifics of slaves' inner working - adjust initialization and shutdown of dns prefetching (now it relies on the IO message loop being present) Bonus: shutdown is almost instant now, no need to have a timeout. BUG=5687, 6683 Review URL: http://codereview.chromium.org/15076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10021 0039d316-1c4b-4281-b951-d872f2087c98
* Fix header order.ericroman@google.com2009-02-191-2/+2
| | | | | | Review URL: http://codereview.chromium.org/20487 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10013 0039d316-1c4b-4281-b951-d872f2087c98
* Try to fix build bustage.ericroman@google.com2009-02-191-0/+2
| | | | | | | TBR=phajdan.jr@chromium.org Review URL: http://codereview.chromium.org/20485 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10011 0039d316-1c4b-4281-b951-d872f2087c98