summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Add parsing for PAC result strings -- ProxyInfo::UsePacString().ericroman@google.com2009-02-1919-116/+912
| | | | | | | | | | | Added the support class ProxyServer to avoid losing the proxy server's type information (http, socks) when populating the list. The format of the configuration strings has been extended accordingly to include an optional [<scheme>"://"] prefix. (i.e. "http://", "socks4://", "socks5://"). Review URL: http://codereview.chromium.org/20398 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10010 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 9992, as it broke origin-header-for-https.html on Webkit Linux builderdkegel@google.com2009-02-1910-621/+463
| | | | | | Review URL: http://codereview.chromium.org/21488 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9997 0039d316-1c4b-4281-b951-d872f2087c98
* Undo revert http://codereview.chromium.org/23028dkegel@google.com2009-02-1810-463/+621
| | | | | | | | | | | | Changes since original http://codereview.chromium.org/16207 : - use Release rather than delete on reference counted objects - Preserve bool WaitToFinish(int milliseconds) and std::wstring GetDataDirectory() at Tommi's request, and add unit test for WaitToFinish(). Review URL: http://codereview.chromium.org/20444 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9992 0039d316-1c4b-4281-b951-d872f2087c98
* Perform HTTP authentication over a keep-alive connection.wtc@chromium.org2009-02-183-12/+464
| | | | | | | | | | This is required for NTLM authentication. R=eroman BUG=6567,6824 Review URL: http://codereview.chromium.org/21433 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9964 0039d316-1c4b-4281-b951-d872f2087c98
* Reduce the amount of included header files. Vast change like in "Oh God! ↵maruel@chromium.org2009-02-1838-109/+259
| | | | | | | | This revision changes half of the source files!". Review URL: http://codereview.chromium.org/20378 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9958 0039d316-1c4b-4281-b951-d872f2087c98
* In r2658, the new http_auth* files were added to net.vcprojwtc@chromium.org2009-02-182-69/+37
| | | | | | | | | | | | twice and added to the wrong place (wrong in alphabetical order) of the file list. In r7854 the wrong order of files was propagated to net_lib.scons. This change fixes both of these problems. R=eroman Review URL: http://codereview.chromium.org/20438 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9933 0039d316-1c4b-4281-b951-d872f2087c98
* Improve modularity of recent SDCH dictionary load checkinjar@chromium.org2009-02-173-8/+15
| | | | | | | | | | | I felt guilty that I allowed url_request_job to have some logic in it about whether it can load an SDCH dictinary or not. This patch pushed the logic back into sdch_manager (where it belongs). r=wtc Review URL: http://codereview.chromium.org/20379 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9897 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting r9823 (http://codereview.chromium.org/16207) because dkegel@google.com2009-02-1410-565/+482
| | | | | | | | | | | | | | | | | | | | | 1) the Interactive Tests (dbg) buildbot needs the SSL cert installed 2) the same buildbot showed a refcounting problem, e.g. FATAL:ref_counted.cc(22)] Check failed: in_dtor_. RefCounted object deleted without calling Release() c:\b\slave\chromium-dbg-builder\build\src\chrome\browser\views\find_bar_win_interactive_uitest.cc(57): error: Value of: NULL != server.get() Actual: false Expected: true [ FAILED ] FindInPageTest.CrashEscHandlers (2109 ms) 3) the Webkit Linux buildbot failed four tests redirect302-frames.html cross-frame-access-protocol-explicit-domain.html cross-frame-access-protocol.html origin-header-for-https.html I'm leaving the tcp_pinger files in for the moment, they shouldn't hurt anything. Review URL: http://codereview.chromium.org/23028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9827 0039d316-1c4b-4281-b951-d872f2087c98
* ssl_client_socket_unittest.cc: launch local server with TestServerLauncher dkegel@google.com2009-02-1412-482/+788
| | | | | | | | | | | | | | | | | | | | | | rather than use bugs.webkit.org, fixes TODO(darin) Add tests with bad server certs ssl_client_socket_nss.cc: fix bugs revealed by new tests tcp_pinger.cc: helper class to do synchronous connect from tests. Has to work inside ui tests where one can't use TestCompletionCallback. ssl_test_util: renamed class TestServerLauncher, added Start/Stop methods. Make part of net.lib to work around link error in test_shell_tests. url_request_unittest.h: use TestServerLauncher to manage server. SSL client tests disabled for now on Mac. BUG=7114 Review URL: http://codereview.chromium.org/16207 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9823 0039d316-1c4b-4281-b951-d872f2087c98
* Use RevocableStore to isolate the http cache from its transactions.rvargas@google.com2009-02-143-6/+51
| | | | | | | | | | | This fixes a crash on shutdown when transactions are deleted after the cache is gone. Bug=6956 Review URL: http://codereview.chromium.org/21369 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9818 0039d316-1c4b-4281-b951-d872f2087c98
* Add a unit test for ERR_UNEXPECTED_SERVER_AUTH.wtc@chromium.org2009-02-143-9/+44
| | | | | | | | | | | | Remove the obsolete change to URLRequestHttpJob::IsRedirectResponse, which was accidentally checked in. R=eroman BUG=7338 Review URL: http://codereview.chromium.org/20279 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9816 0039d316-1c4b-4281-b951-d872f2087c98
* Change mime type utils to operate on platform-specific string types for ↵estade@chromium.org2009-02-148-46/+54
| | | | | | | | filenames/file extensions. Review URL: http://codereview.chromium.org/21327 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9809 0039d316-1c4b-4281-b951-d872f2087c98
* Add a new method ReadUntilComplete to FileStream which ensures that all ↵jhawkins@chromium.org2009-02-133-0/+49
| | | | | | | | requested bytes are read from the file in one call, assuming no errors occurr or EOF is reached. Review URL: http://codereview.chromium.org/21363 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9803 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Don't add more people to the cache size experiment.rvargas@google.com2009-02-131-10/+2
| | | | | | | | | | At this point, adding more people just add noise to the experiment. After a little over a month, most users still have not filled up their allowed cache. Review URL: http://codereview.chromium.org/20337 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9728 0039d316-1c4b-4281-b951-d872f2087c98
* Make net_lib build work with a shared link.evan@chromium.org2009-02-121-9/+1
| | | | | | | Review URL: http://codereview.chromium.org/20294 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9661 0039d316-1c4b-4281-b951-d872f2087c98
* Fix some purify warnings.rvargas@google.com2009-02-121-0/+4
| | | | | | Review URL: http://codereview.chromium.org/21284 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9641 0039d316-1c4b-4281-b951-d872f2087c98
* Change SSLInfo::SetCertError to call the recently-addedwtc@chromium.org2009-02-121-29/+1
| | | | | | | | | MapNetErrorToCertStatus function. R=eroman Review URL: http://codereview.chromium.org/20277 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9639 0039d316-1c4b-4281-b951-d872f2087c98
* Extend the IOBuffer to the disk cache.rvargas@google.com2009-02-1218-282/+345
| | | | | | | | | | | This is cleanup from bug 5325. Original code review: http://codereview.chromium.org/20134/show Review URL: http://codereview.chromium.org/20251 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9626 0039d316-1c4b-4281-b951-d872f2087c98
* Fetch SDCH dictionary as soon as current URL fetch completesjar@chromium.org2009-02-114-10/+20
| | | | | | | | | | | | | Rather than just waiting for 15 seconds, this patch fetches the "suggested dicitionary" as soon as the current download completes. This avoids stealing bandwidth from the original download, but works as quickly as possible to get the dictionary, so that the user can receive compression results asap. r=wtc Review URL: http://codereview.chromium.org/20254 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9597 0039d316-1c4b-4281-b951-d872f2087c98