summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* Re-enable url_request_unittest, which seems to have beendank@chromium.org2008-11-261-1/+0
| | | | | | | | disabled on linux by accident in r5925. Review URL: http://codereview.chromium.org/12478 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6039 0039d316-1c4b-4281-b951-d872f2087c98
* fix buildtc@google.com2008-11-261-2/+1
| | | | | | | | | incorporate estade's patch Review URL: http://codereview.chromium.org/12665 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6019 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a memory leak in the net directory lister.estade@chromium.org2008-11-251-4/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6001 0039d316-1c4b-4281-b951-d872f2087c98
* Append a trailing slash on file directory URLs. Thus a link to /directory ↵estade@chromium.org2008-11-253-21/+27
| | | | | | | | will work just as well as a link to /directory/ Review URL: http://codereview.chromium.org/12620 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5999 0039d316-1c4b-4281-b951-d872f2087c98
* Clarify file-stream comments.darin@chromium.org2008-11-251-0/+4
| | | | | | | | | | | Patch by phajdan.jr@gmail.com R=darin Review URL: http://codereview.chromium.org/12647 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5986 0039d316-1c4b-4281-b951-d872f2087c98
* Use StringPiece in the TLD service. This means we don't have to copy the ↵deanm@chromium.org2008-11-252-138/+103
| | | | | | | | | | TLD data from the resource into a std::string, we can just always refer into the resource data. This saves ~40k or something meaningless. Also use StringPiece to replace StringSegment, and other minor cleanup. Review URL: http://codereview.chromium.org/11310 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5960 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up some net/ code. Change a number of wstrings to FilePaths.estade@chromium.org2008-11-2411-60/+72
| | | | | | Review URL: http://codereview.chromium.org/12409 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5944 0039d316-1c4b-4281-b951-d872f2087c98
* http_cache: Don't destroy an entry from the transaction destructor ifrvargas@google.com2008-11-242-7/+23
| | | | | | | | | | | | | | | | | | there is a task posted to process the next transaction. Also, fix the check to determine the type of transaction to consider writers that were converted to readers by the time the destructor runs. I'm adding more checks to see if these were all the problems related to bug 3931. B=4731 R=darin Review URL: http://codereview.chromium.org/12608 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5938 0039d316-1c4b-4281-b951-d872f2087c98
* * Add net_unittests and unit_tests sources that size comparisonssgk@google.com2008-11-241-10/+24
| | | | | | | | | | | | | | | revealed slipped by getting added to the SCons build: net\base\x509_certificate_unittest.cc chrome\browser\greasemonky_master_unittest.cc chrome\browser\greasemonky_slave_unittest.cc chrome\browser\template_url_prepopulate_data_unittest.cc chrome\renderer\render_widget_unittest.cc * Sort file lists. * Move net\*_unittest.cc files that don't have "win" in the base name to the to_be_ported_files lists for Linux and Mac. Review URL: http://codereview.chromium.org/11587 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5925 0039d316-1c4b-4281-b951-d872f2087c98
* Adjust histograms to get better data for latency experimentsjar@google.com2008-11-224-26/+49
| | | | | | | r=openvcdiff,huanr Review URL: http://codereview.chromium.org/11810 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5891 0039d316-1c4b-4281-b951-d872f2087c98
* Remove use of wide characters in stats table identifiers.evanm@google.com2008-11-221-1/+1
| | | | | | | Review URL: http://codereview.chromium.org/11544 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5880 0039d316-1c4b-4281-b951-d872f2087c98
* Add run time checks to get more info for bug 3931.rvargas@google.com2008-11-221-8/+26
| | | | | | | | | | | The idea is just crash a little earlier and hopefully see if we can detect memory corruption as the cause of the actual bug. Review URL: http://codereview.chromium.org/11583 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5877 0039d316-1c4b-4281-b951-d872f2087c98
* Don't crash if test server was not started.dkegel@google.com2008-11-212-4/+26
| | | | | | | | Code from phajdan.jr@gmail.com. Review URL: http://codereview.chromium.org/11367 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5869 0039d316-1c4b-4281-b951-d872f2087c98
* Port stress_cache tool.deanm@chromium.org2008-11-213-27/+67
| | | | | | | | BUG=4491 Review URL: http://codereview.chromium.org/11202 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5862 0039d316-1c4b-4281-b951-d872f2087c98
* Rollback "Remove use of wide characters in stats table identifiers."evanm@google.com2008-11-211-1/+1
| | | | | | | This reverts commit r5847. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5850 0039d316-1c4b-4281-b951-d872f2087c98
* Remove use of wide characters in stats table identifiers.evanm@google.com2008-11-211-1/+1
| | | | | | | Review URL: http://codereview.chromium.org/11544 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5847 0039d316-1c4b-4281-b951-d872f2087c98
* Port directory lister to allow the linux and mac test shells to display file ↵estade@chromium.org2008-11-2013-142/+165
| | | | | | | | | | directories. This is a revision of r5725. It doesn't break mac build. Review URL: http://codereview.chromium.org/11507 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5792 0039d316-1c4b-4281-b951-d872f2087c98
* Cancel any pending IO and wait for it to be aborted beforewtc@google.com2008-11-201-1/+8
| | | | | | | | | | | | returning from the Disconnect method. This allows the caller to destroy the read or write buffer safely when the destructor (which calls Disconnect) returns. R=eroman,rvargas BUG=4449 Review URL: http://codereview.chromium.org/11299 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5775 0039d316-1c4b-4281-b951-d872f2087c98
* Add a flags to further control response header persistence. We use this todarin@chromium.org2008-11-204-59/+148
| | | | | | | | | | | | | | | | | filter out Set-Cookie and Set-Cookie2 response headers from being forwarded to the renderer. This serves to prevent the renderer from having any access to HttpOnly cookies, and it also prevents XMLHttpRequest consumers from being able to read cookies in the HTTP response headers. This is consistent with changes made to Firefox and WebKit. Patch by marius.schilder@gmail.com R=deanm,darin Review URL: http://codereview.chromium.org/11264 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5767 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the FTP implementation. Our change to make the MessageLoopForIO notdarin@chromium.org2008-11-202-96/+39
| | | | | | | | | | process windows messages broke FTP. This fixes it to work using PostTask. R=rvargas Review URL: http://codereview.chromium.org/11502 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5743 0039d316-1c4b-4281-b951-d872f2087c98
* Finish release (opt) builds on Windows, including the parallelsgk@google.com2008-11-207-146/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | build\*.scons structure (mirroring build\*.vsprops files): * Use env.ApplySConscript() instead of env.SConscript with a hand-crafted dictionary defining 'env'. * Move various CPPPATH, CCFLAGS, CPPDEFINES, LIBS and LIBPATH definitions from build/SConscript.main and target-specific *.scons files into the build\*.scons files that mirror the existing build\*.vsprops hierarchy. * Use the new build\{debug,release}.scons files to update the windows_dbg and windows_opt construction environments. * Mirror current support for CHROME_BUILD_TYPE and CHROMIUM_BUILD external environment variables. * Remove hard-coded /TP options. * Massage $CXXFLAGS to remove $CCFLAGS, avoiding duplication of options on command lines. Handle the ripple effect in $PCHCOM by adding $CCFLAGS back to that command line. * Delete hammer's default settings of {CC,LINK}FLAGS_{DEBUG,OPTIMIZED} so they don't pollute our construction environments. * Update chrome config to link against v8 for opt, v8_g for dbg. * Get rid of fragile by-hand order of using_net.scons before other using_*.scons files. We're now using --start-group and --end-group on Linux to deal with dependency cycles in libraries. Review URL: http://codereview.chromium.org/11478 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5741 0039d316-1c4b-4281-b951-d872f2087c98
* Make the net resource interface use StringPiece instead of std::string. ↵deanm@chromium.org2008-11-205-8/+11
| | | | | | | | This means we can point directly into the resource in the binary, instead of copying. This makes sense for the TLD data, which doesn't need to be copied around. Review URL: http://codereview.chromium.org/11506 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5740 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Make the net resource interface use StringPiece instead oftc@google.com2008-11-205-11/+8
| | | | | | | | | | | | | | | std::string. This means we can point directly into the resource in the binary, instead of copying. This makes sense for the TLD data, which doesn't need to be copied around." This reverts commit r5735. TBR=deanm Review URL: http://codereview.chromium.org/11298 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5736 0039d316-1c4b-4281-b951-d872f2087c98
* Make the net resource interface use StringPiece instead of std::string. ↵deanm@chromium.org2008-11-205-8/+11
| | | | | | | | This means we can point directly into the resource in the binary, instead of copying. This makes sense for the TLD data, which doesn't need to be copied around. Review URL: http://codereview.chromium.org/11296 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5735 0039d316-1c4b-4281-b951-d872f2087c98
* revert 5730estade@chromium.org2008-11-199-130/+113
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5731 0039d316-1c4b-4281-b951-d872f2087c98
* Port directory lister to posix.estade@chromium.org2008-11-199-113/+130
| | | | | | | | Fix of issue 11437. Review URL: http://codereview.chromium.org/11293 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5730 0039d316-1c4b-4281-b951-d872f2087c98
* revert 5725estade@chromium.org2008-11-199-130/+113
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5727 0039d316-1c4b-4281-b951-d872f2087c98
* Port directory lister so test shell can view file directories.estade@chromium.org2008-11-199-113/+130
| | | | | | Review URL: http://codereview.chromium.org/11437 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5725 0039d316-1c4b-4281-b951-d872f2087c98
* Add url_request_unittest to mac build.ericroman@google.com2008-11-193-31/+36
| | | | | | Review URL: http://codereview.chromium.org/11224 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5712 0039d316-1c4b-4281-b951-d872f2087c98
* Enforce httponly on cookies coming from the renderer. This prevents ↵deanm@chromium.org2008-11-194-36/+132
| | | | | | | | | javascript from setting a new httponly cookie, and more importantly from overwriting httponly cookies. Patch from Marius Schilder. Review URL: http://codereview.chromium.org/11275 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5700 0039d316-1c4b-4281-b951-d872f2087c98
* Avoid plausible DOS attack by malicious SDCH serverjar@google.com2008-11-183-5/+272
| | | | | | | | | | | | | | | Restrict SDCH to ONLY work with HTTP (fail safe security policy for this experimental protocol). Also add a histogram to see how often we encounter dictionary corruption (which will evidence itself by having a multitude of dicitionaries adverttised, with no real use server side). r=ajenjo,kmixter Review URL: http://codereview.chromium.org/11209 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5628 0039d316-1c4b-4281-b951-d872f2087c98
* Punt the proxy errors into a bug.evanm@google.com2008-11-181-1/+5
| | | | | | | | | | This cuts down on error spew for test_shell, which lets us make progress on layout tests. Review URL: http://codereview.chromium.org/11220 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5594 0039d316-1c4b-4281-b951-d872f2087c98
* Don't send Content-Type when redirecting from a POST.ericroman@google.com2008-11-156-5/+111
| | | | | | | | http://code.google.com/p/chromium/issues/detail?id=843 Review URL: http://codereview.chromium.org/10873 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5532 0039d316-1c4b-4281-b951-d872f2087c98
* Open up SDCH for all sites, in preparation for latency testsjar@google.com2008-11-153-7/+81
| | | | | | | | | | | | | | | | | | | | | | | Since the stability test is going well (so far) on ".google.com," this change will open up support for SDCH compression to all sites. This will allow for more international testing as well. I tightened down the restrictions on who can set up a dictionary for a given domain. I'm pretty sure it is at least as restrictive as the current SDCH spec. I also supplied a default expiration time for using an SDCH dictionary at 30 days (as per SDCH spec). To be safer with the latency histograms, I also tightened the period of time we measure, on the off chance that the page some-how asks for more bytes after everything has been read/rendered. r=openvcdiff,hunar Review URL: http://codereview.chromium.org/11009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5529 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the mac build to add dmg_fp to the libbase.a.tony@chromium.org2008-11-151-43/+0
| | | | | | | | | Remove third_party/dmg_fp complete since nothing else depends on it. Review URL: http://codereview.chromium.org/10963 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5525 0039d316-1c4b-4281-b951-d872f2087c98
* Move dmg_fp in scons build to compile fromtc@google.com2008-11-155-5/+0
| | | | | | | | base/third_party/dmg_fp and compile it into base_lib. Review URL: http://codereview.chromium.org/10769 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5521 0039d316-1c4b-4281-b951-d872f2087c98
* Move dmg_fp to base/third_party/dmg_fp and include thetc@google.com2008-11-141-12/+0
| | | | | | | | | | | | files directly in base.vcproj. Remove the old dmg_fp.vcproj file and remove it from the *.sln files. I've kept third_party/dmg_fp around for the mac and scons build which I will fix up in follow up changes. Review URL: http://codereview.chromium.org/10716 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5514 0039d316-1c4b-4281-b951-d872f2087c98
* fix build linux (namespace changed)tc@google.com2008-11-141-1/+1
| | | | | | | Review URL: http://codereview.chromium.org/10932 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5452 0039d316-1c4b-4281-b951-d872f2087c98
* Add Terminate() to the Process object, have RenderProcessHost use this to ↵brettw@google.com2008-11-143-8/+8
| | | | | | | | | | avoid some more Windows specific code. Move Process and SharedMemory into the base namespace (most changes). Review URL: http://codereview.chromium.org/10895 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5446 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the duplicate session_callback_->AddRef() calls made bywtc@google.com2008-11-142-43/+56
| | | | | | | | | | | | | | | | | | the Restart() calls in DidReceiveError() and the RestartWithAuth() call in DidReceiveHeaders() by adding a new RestartInternal() method that doesn't call session_callback_->AddRef(). Remove the username/password that the server rejected from the auth cache only if the cache entry has the same username/password. Use the username:password specified in the URL after receiving a 401 response from the server. Do not send it preemptively. R=eroman BUG=b/1473850 Review URL: http://codereview.chromium.org/10668 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5421 0039d316-1c4b-4281-b951-d872f2087c98
* A minor tweak of r5245. I'm more confident that WinHTTPwtc@google.com2008-11-141-1/+1
| | | | | | | | | | | | | | | | knows a transaction is complete when WinHttpReadData returns a zero byte count. So it's safer to NOT notify the request throttle when WinHttpReadData returns a nonzero byte count, even if we have read the number of bytes specified in the Content-Length response header. I verified that this is still enough to fix the bug (unresponsiveness). R=darin BUG=4302 Review URL: http://codereview.chromium.org/10867 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5415 0039d316-1c4b-4281-b951-d872f2087c98
* Add more info to the comment about www.yahoo.com's padding ofwtc@google.com2008-11-143-8/+13
| | | | | | | | | | | | | | | | the chunk-size field. Fix miscellaneous nits reported by cpplint.py. Use ASCIItoWide instead of UTF8ToWide to convert the username and password specified in a URL. Those two components of the URL have to be ASCII. Carry over a TODO comment about unescaping username/password from http_transaction_winhttp.cc. R=eroman Review URL: http://codereview.chromium.org/10864 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5410 0039d316-1c4b-4281-b951-d872f2087c98
* Allow optimized builds on Linux.evanm@google.com2008-11-132-2/+7
| | | | | | | Review URL: http://codereview.chromium.org/10857 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5406 0039d316-1c4b-4281-b951-d872f2087c98
* * another lib! fix nettc@google.com2008-11-131-0/+1
| | | | | | | | tbr=evan Review URL: http://codereview.chromium.org/10411 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5327 0039d316-1c4b-4281-b951-d872f2087c98
* * fix stress_cachetc@google.com2008-11-131-0/+1
| | | | | | | | tbr=evan Review URL: http://codereview.chromium.org/10861 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5326 0039d316-1c4b-4281-b951-d872f2087c98
* * fix net buildtc@google.com2008-11-121-0/+1
| | | | | | | | tbr=evan Review URL: http://codereview.chromium.org/10664 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5324 0039d316-1c4b-4281-b951-d872f2087c98
* Make unit_tests pass with pt_BR.UTF-8 locale.tc@google.com2008-11-124-6/+131
| | | | | | | | | | | BUG=3675 Patch from Paweł Hajdan jr <phajdan.jr@gmail.com> original issue: http://codereview.chromium.org/9509 Review URL: http://codereview.chromium.org/11002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5319 0039d316-1c4b-4281-b951-d872f2087c98
* Remove shared code from test_shell_mac, build test_shell_cc. Add a missing ↵pinkerton@google.com2008-11-121-3/+5
| | | | | | | | file to the net project. Fix leaks on exit where TestShell object was never getting cleaned up. Review URL: http://codereview.chromium.org/10602 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5256 0039d316-1c4b-4281-b951-d872f2087c98
* Notify the WinHttpRequestThrottle of the completion of awtc@google.com2008-11-122-2/+11
| | | | | | | | | | | | | | | | | | | request when we have read the entire response, rather than waiting until the destructor. This is what we do in the new HTTP stack (see HttpNetworkTransaction::DoReadBodyComplete). This allows us to unblock the queued requests in the WinHttpRequestThrottle sooner. After this change, the name of the request_submitted_ member is no longer accurate. Since we'll replace the WinHTTP code soon, I just update the comment rather than renaming the member. R=darin BUG=4302 Review URL: http://codereview.chromium.org/10613 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5245 0039d316-1c4b-4281-b951-d872f2087c98
* Force the line endings on .sln files to be CRLF.tc@google.com2008-11-121-171/+171
| | | | | | | TBR=pamg Review URL: http://codereview.chromium.org/10619 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5234 0039d316-1c4b-4281-b951-d872f2087c98