summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* Sanitize proxy response codes to CONNECT requests. Forwtc@chromium.org2009-02-118-45/+139
| | | | | | | | | | | | | | | | | | anything other than 200 (success) or 400-599 (error), we rewrite the response code as 500 (internal server error) to prevent any special handling of the proxy's response to CONNECT by mistake. Add a new error code ERR_UNEXPECTED_SERVER_AUTH for a 401 response to a CONNECT request. Fix nits reported by cpplint.py. R=darin,eroman BUG=7338 Review URL: http://codereview.chromium.org/21158 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9549 0039d316-1c4b-4281-b951-d872f2087c98
* Revert cl 9528 to fix mac test_shell_testsrvargas@google.com2009-02-1018-314/+282
| | | | | | Review URL: http://codereview.chromium.org/21236 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9532 0039d316-1c4b-4281-b951-d872f2087c98
* Extend the IOBuffer to the disk cache.rvargas@google.com2009-02-1018-282/+314
| | | | | | | | This is cleanup from bug 5325. Review URL: http://codereview.chromium.org/20134 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9528 0039d316-1c4b-4281-b951-d872f2087c98
* Small refactoring of the test webserver.stoyan@chromium.org2009-02-091-5/+22
| | | | | | Review URL: http://codereview.chromium.org/21179 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9435 0039d316-1c4b-4281-b951-d872f2087c98
* Add constructor to net::FileStream to create it with a base::PlatformFile ↵hclam@chromium.org2009-02-094-0/+63
| | | | | | | | | | handle. Constructor added to both _win and _posix implementations and provided a unit test. Review URL: http://codereview.chromium.org/20137 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9428 0039d316-1c4b-4281-b951-d872f2087c98
* Stub out an unimplemented NSS function.evan@chromium.org2009-02-092-0/+10
| | | | | | | Review URL: http://codereview.chromium.org/21169 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9406 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the windows implementation of KillProcess and WaitForSingleProcess to ↵stoyan@chromium.org2009-02-091-1/+1
| | | | | | | | not close the process handle that they do not own. Review URL: http://codereview.chromium.org/24004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9400 0039d316-1c4b-4281-b951-d872f2087c98
* Add all net projects to chrome solution.rvargas@google.com2009-02-071-0/+1
| | | | | | | | BUG=7061 Review URL: http://codereview.chromium.org/21155 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9376 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 9362.ojan@chromium.org2009-02-071-1/+0
| | | | | | | Broke the build Review URL: http://codereview.chromium.org/20153 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9364 0039d316-1c4b-4281-b951-d872f2087c98
* Add all net projects to chrome solution.rvargas@google.com2009-02-061-0/+1
| | | | | | | | BUG=7061 Review URL: http://codereview.chromium.org/20149 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9362 0039d316-1c4b-4281-b951-d872f2087c98
* Add a null pointer check for transaction_ inwtc@chromium.org2009-02-061-1/+4
| | | | | | | | | | | ContinueDespiteLastError. The URL request job may have been cancelled but not yet deleted. R=eroman,jcampan BUG=6423 Review URL: http://codereview.chromium.org/20146 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9358 0039d316-1c4b-4281-b951-d872f2087c98
* Work around a Purify bug by moving initialization from constructor to ↵erikkay@google.com2009-02-062-8/+16
| | | | | | | | | | Inititialize(). BUG=7467 Review URL: http://codereview.chromium.org/24006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9354 0039d316-1c4b-4281-b951-d872f2087c98
* Make the mime -> extension code return a dotless extension.deanm@chromium.org2009-02-062-2/+9
| | | | | | | | | | | Previously we would return something like ".html", because that's how it's stored in the registry on Windows. For a variety of reasons, it's much simpler to work without the prefixed dot. In fact, the only two consumers were manually stripping of the prefix dot. There is a cooresponding change that should happen in WebKit / ChromiumBridge, but since it's checking if there is a prefix dot and removing it, the code will still work, and I'll follow up with that change. Review URL: http://codereview.chromium.org/23010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9333 0039d316-1c4b-4281-b951-d872f2087c98
* Add a Repack tool to scons. This is used to compile linux resourcestc@google.com2009-02-061-3/+0
| | | | | | | | | | | | together (kind of like the windows RES builder). I also moved the GRIT builder into the chromium site_scons since we import it in lots of places. This seems cleaner. Review URL: http://codereview.chromium.org/21115 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9331 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Clean up dns prefetch code, and also port it."tc@google.com2009-02-062-23/+8
| | | | | | | | | | | | | | | | This reverts commit r9312. Revert "Fix HostResolver crash when MessageLoop is destroyed during" This reverts commit r9317. BUG=5687,6683 TBR=ph Review URL: http://codereview.chromium.org/21133 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9325 0039d316-1c4b-4281-b951-d872f2087c98
* Fix HostResolver crash when MessageLoop is destroyed duringphajdan.jr@chromium.org2009-02-061-4/+20
| | | | | | | | | | | asynchronous resolution. This should hopefully fix reliability failures introduced in r9312. TBR=darin Review URL: http://codereview.chromium.org/19534 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9317 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up dns prefetch code, and also port it.phajdan.jr@chromium.org2009-02-061-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 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@9312 0039d316-1c4b-4281-b951-d872f2087c98
* Add a constraint on how many requests can be outstanding for any given ↵ericroman@google.com2009-02-064-11/+15
| | | | | | | | | | | | | | | render process (browser-side). Once the constraint is reached, subsequent requests will fail with net::ERR_INSUFFICIENT_RESOURCES. The bound is defined as "25 MB", which represents the amount of private bytes we expect the pending requests to consume in the browser. This number translates into around 6000 typical requests. Note that the upload data of a request is not currently considered part of the request's in-memory cost -- more data is needed on the average/maximum upload sizes of users before deciding what a compatible limit is. BUG=5688 Review URL: http://codereview.chromium.org/18541 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9298 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a memory leak on the async resource handler.rvargas@google.com2009-02-061-0/+3
| | | | | | | | BUG=7374 Review URL: http://codereview.chromium.org/20099 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9284 0039d316-1c4b-4281-b951-d872f2087c98
* Add X509Certificate::Verify stubs for Mac and Linux.wtc@chromium.org2009-02-057-39/+51
| | | | | | | | | | | | | | | | | They do nothing but return ERR_NOT_IMPLEMENTED. In SSLClientSocketWin, call X509Certificate::CreateFromHandle only once and store the result in the server_cert_ member. Add the CertVerifyResult::Reset method to clear all members. R=eroman BUG=3592 Review URL: http://codereview.chromium.org/21071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9272 0039d316-1c4b-4281-b951-d872f2087c98
* Can wait for testserver python process to exit. stoyan@chromium.org2009-02-051-15/+27
| | | | | | | This exit could be initiated by the JScript code in a test page notifying us that the test is finished it's time to get the results (saved in server's 'dump' directory). Review URL: http://codereview.chromium.org/21090 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9249 0039d316-1c4b-4281-b951-d872f2087c98
* Port the ResourceDispatcherHost to Mac and linux.paul@chromium.org2009-02-051-0/+8
| | | | | | Review URL: http://codereview.chromium.org/20073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9231 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the dependency checker tool. Rules for a directory did modify their ↵stoyan@chromium.org2009-02-051-0/+5
| | | | | | | | | | directory parent rules. Using copy.copy() solves the problem.Additional fix when "allow-current-directory" rules was not applied if DEPS file is missing. Updated few DEPS file with reasonable rules. To prevent tree closing other dependencies are added. These need to be either legitimated or dependency removed. Review URL: http://codereview.chromium.org/21025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9221 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Add a check to make sure that the index table mask is not bigger ↵rvargas@google.com2009-02-042-2/+14
| | | | | | | | | | than the table itself. BUG=7217 Review URL: http://codereview.chromium.org/20054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9190 0039d316-1c4b-4281-b951-d872f2087c98
* Move certificate verification off the IO thread.wtc@chromium.org2009-02-0314-364/+499
| | | | | | | | | | | | | | | | Move the MapNetErrorToCertStatus and MapCertStatusToNetError functions to cert_status_flags.h so they can be shared with Mac and Linux code. Move the certificate verification function to the X509Certificate class. Right now X509Certificate::Verify is only implemented on Windows. R=eroman BUG=3592 Review URL: http://codereview.chromium.org/14915 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9084 0039d316-1c4b-4281-b951-d872f2087c98
* On posix platforms make sure the test server has shutdown and wait for it sothomasvl@chromium.org2009-02-031-0/+5
| | | | | | | | we don't leave around zombies that can then cause other problems by hosing the box. (the python server doesn't always spin down, hence the kill also) Review URL: http://codereview.chromium.org/20007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9067 0039d316-1c4b-4281-b951-d872f2087c98
* Add one more histogram to SDCH decoderjar@chromium.org2009-02-021-2/+12
| | | | | | | r=mbelshe Review URL: http://codereview.chromium.org/19542 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9044 0039d316-1c4b-4281-b951-d872f2087c98
* Add to SDCH histogrammingjar@chromium.org2009-02-023-26/+51
| | | | | | | | | | | | | | | | Define a histogram macro that is customizable, and precise, for detailed examination of performance when needed. Provide graceful degradation when entire SDCH window is not received. We now blacklist the site with an exponential back-off. This allows teh user to hit reload, and get not-SDCH content. bug=1609306 r=huanr,mbelshe Review URL: http://codereview.chromium.org/19718 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9035 0039d316-1c4b-4281-b951-d872f2087c98
* Correct line ending in unit test.jar@chromium.org2009-01-311-7/+7
| | | | | | | | | | My checkin earlier today included mixture of line endings by mistake. TBR=huanr Review URL: http://codereview.chromium.org/19527 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9016 0039d316-1c4b-4281-b951-d872f2087c98
* Get rid of synchronous ResolveProxy API.ericroman@google.com2009-01-313-150/+130
| | | | | | | Also remove the ProxyInfo::Apply method. Review URL: http://codereview.chromium.org/19502 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9015 0039d316-1c4b-4281-b951-d872f2087c98
* Move proxy resolve requests out of plugin/renderer process, and into the ↵ericroman@google.com2009-01-312-2/+89
| | | | | | | | browser. Review URL: http://codereview.chromium.org/14142 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9006 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a minor style nit. Make a comment clearer.wtc@chromium.org2009-01-302-6/+5
| | | | | | | R=eroman Review URL: http://codereview.chromium.org/19731 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8996 0039d316-1c4b-4281-b951-d872f2087c98
* Measure how often our users see MD2 intermediate CAwtc@chromium.org2009-01-302-0/+7
| | | | | | | | | | | certificates. Our UMA results contain a small number of MD2 certificates. We'd like to know if they are end entity or intermediate CA certificates. R=jar Review URL: http://codereview.chromium.org/19522 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8990 0039d316-1c4b-4281-b951-d872f2087c98
* In rare cases (when running inside QEMU), the eventwtc@chromium.org2009-01-302-24/+21
| | | | | | | | | | | | object is not yet in the signaled state after a Winsock function succeeds synchronously, so it is necessary to wait for it to become signaled. R=eroman BUG=6500 Review URL: http://codereview.chromium.org/19515 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8989 0039d316-1c4b-4281-b951-d872f2087c98
* Make test server to store files by sending POST /writefile/<filename> HTTP ↵stoyan@chromium.org2009-01-301-1/+39
| | | | | | | | request. Review URL: http://codereview.chromium.org/19476 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8965 0039d316-1c4b-4281-b951-d872f2087c98
* Correct handling of filter chaining of SDCH and gzip compressionjar@chromium.org2009-01-303-31/+89
| | | | | | | | | | | | | | | | | | | | | | When a first filter (gzip) has buffered internal data to process, and has already pushed a full 32K buffer to a second filter (such as sdch), but the second filter declined to output anything (and instead asserted it needed more data), then the filter chain was returning FILTER_OK. That status usually meant that the filter should be called again, but the calling code decided that a return of no bytes without a FILTER_NEED_MORE_DATA status must mean the filter was done. Rather than trying to change the calling infrastructure (which could impact existing filters than are not part of a chain), this patch ensures that the chained sequence never returns FILTER_OK without providing some output data. This matches semantics of individual filters, which only return FILTER_OK when they have pushed some data into the output buffer. bug=1609306 r=huanr,openvcdiff Review URL: http://codereview.chromium.org/19459 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8944 0039d316-1c4b-4281-b951-d872f2087c98
* Provide the option for HTTPServer to be created with a specificsky@google.com2009-01-293-33/+48
| | | | | | | | | | | | | | | MessageLoop. I'm going to need this when running ui tests in process. In this case I'll pass in the IO thread. I'll change all callers to use the new method, but before doing that wanted to make sure you're ok with it. BUG=none TEST=none Review URL: http://codereview.chromium.org/19039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8915 0039d316-1c4b-4281-b951-d872f2087c98
* Add more unit tests for net/base/host_resolver.phajdan.jr@chromium.org2009-01-299-116/+315
| | | | | | | | BUG=6661 Review URL: http://codereview.chromium.org/18775 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8872 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 8868.ericroman@google.com2009-01-299-256/+301
| | | | | | | This relands wtc's original CL for working around not caching the intermediate CA certificates. We believe the original commit failed on buildbot because of a bad incremental build, and will be resolved by doing a clobber Review URL: http://codereview.chromium.org/19463 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8870 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 8864.wtc@chromium.org2009-01-299-301/+256
| | | | | | | Revert r8864. It broke the build url_request_intercept_job.cc. Review URL: http://codereview.chromium.org/19462 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8868 0039d316-1c4b-4281-b951-d872f2087c98
* Work around our not caching the intermediate CAwtc@chromium.org2009-01-299-256/+301
| | | | | | | | | | | | | | | | | | | | | | certificates by passing the source of each OSCertHandle to CreateFromHandle and the X509Certificate constructor. If the OSCertHandle comes from the network layer, we know it has a complete certificate chain and therefore prefer it to an OSCertHandle that comes from the HTTP cache, which doesn't have the intermediate CA certificates. A certificate from the network layer can kick out a certificate from the HTTP cache in our certificate cache. This workaround seems good enough to fix all the known symptoms of not caching the intermediate CA certificates. Move the common code in x509_certificate_<os>.cc to x509_certificate.cc. R=eroman BUG=3154,7065 Review URL: http://codereview.chromium.org/18836 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8864 0039d316-1c4b-4281-b951-d872f2087c98
* Change URLRequest to use a ref-counted buffer for actual IO.rvargas@google.com2009-01-2936-98/+187
| | | | | | | | | | This will re-land http://codereview.chromium.org/18390 BUG=5325 Review URL: http://codereview.chromium.org/19004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8847 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for UA spoofing, and spoof Safari's UA string when loading URLsdarin@chromium.org2009-01-273-16/+18
| | | | | | | | | | | from *.mail.live.com (to fix hotmail). BUG=4111 R=wtc Review URL: http://codereview.chromium.org/19025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8764 0039d316-1c4b-4281-b951-d872f2087c98
* Bring in googleurl changes which fix URL parsing layout test.mmoss@chromium.org2009-01-271-1/+1
| | | | | | | | | Also update net_unittest to match new 'file:' parsing logic. Review URL: http://codereview.chromium.org/18789 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8725 0039d316-1c4b-4281-b951-d872f2087c98
* Add a dummy function CrashBug6500 so that the returnwtc@chromium.org2009-01-271-17/+11
| | | | | | | | | | | value and error code of the WaitForSingleObject call are captured as function arguments in the crash dumps. R=eroman BUG=6500 Review URL: http://codereview.chromium.org/18788 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8701 0039d316-1c4b-4281-b951-d872f2087c98
* Adjust SDCH problem code histogram.jar@chromium.org2009-01-273-5/+9
| | | | | | | | | | | | Tentative SDCH was not properly noted, and this caused some confusion in the SDCH problem codes. I corrected the assertion of a tentative sdch, and renumbered (to new numbers) all problem codes that might have been varied. r=huanr Review URL: http://codereview.chromium.org/18780 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8698 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused invalid_cert.pem.dkegel@google.com2009-01-271-41/+0
| | | | | | | | | | | | | (wtc says: Jay Campan created the three certificates. He said he created invalid_cert.pem by changing one byte in the certificate's signature. The reason we aren't using invalid_cert.pem is that our test server won't start up with an invalid certificate.) Review URL: http://codereview.chromium.org/18793 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8687 0039d316-1c4b-4281-b951-d872f2087c98
* Fix compile error in dump_files (didn't catch the error since dump_cache ↵erikkay@google.com2009-01-261-1/+2
| | | | | | | | | | isn't in chrome.sln). TBR=rvargas Review URL: http://codereview.chromium.org/18782 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8666 0039d316-1c4b-4281-b951-d872f2087c98
* Change FileStream to use FilePath instead of wstring.erikkay@google.com2009-01-266-10/+13
| | | | | | Review URL: http://codereview.chromium.org/18764 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8663 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 8627,8625.maruel@chromium.org2009-01-262-26/+8
| | | | | | Review URL: http://codereview.chromium.org/18598 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8628 0039d316-1c4b-4281-b951-d872f2087c98