summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* Initial stab at http authentication (basic + digest) in new http stack.ericroman@google.com2008-09-2724-12/+1747
| | | | | | | | | | | | | | | | | | General design: - class HttpAuth -- utility class for http-auth logic. - class HttpAuth::ChallengeTokenizer -- parsing of www-Authenticate headers. - class HttpAuthHandler -- base class for authentication schemes (inspired by nsIHttpAuthenticator) - class HttpAuthHandlerBasic : HttpAuthHandler -- logic for basic auth. - class HttpAuthHandlerDigest : HttpAuthHandler -- logic for digest auth. - The auth integration in HttpNetworkTransaction mimics that of HttpTransactionWinHttp: + HttpNetworkTransaction::ApplyAuth() -- set the authorization headers. + HttpNetworkTransaction::PopulateAuthChallenge() -- process the challenges. BUG=2346 Review URL: http://codereview.chromium.org/4063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2658 0039d316-1c4b-4281-b951-d872f2087c98
* Roll the third_party/icu38 revision in DEPS to have SCons build libicu,sgk@google.com2008-09-262-2/+2
| | | | | | | | | | not libicuuc. Add a new $ICU_LIBS construction variable to allow different platforms to link with different sets of ICU libraries. Use it in the LIBS lists of the various construction environments used to build the things that link with it. Review URL: http://codereview.chromium.org/4312 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2651 0039d316-1c4b-4281-b951-d872f2087c98
* Add positive and negative test cases for whether wewtc@google.com2008-09-261-10/+86
| | | | | | | | | | | should resend a request when we read nothing or get a read failure. R=darin,eroman BUG=2489 Review URL: http://codereview.chromium.org/4291 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2635 0039d316-1c4b-4281-b951-d872f2087c98
* Use open-vcdiff for sdch compression on the Macmark@chromium.org2008-09-264-9/+66
| | | | | | Review URL: http://codereview.chromium.org/4096 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2628 0039d316-1c4b-4281-b951-d872f2087c98
* Make sure there is only one instance of the stats histogram at a given time.rvargas@google.com2008-09-261-3/+7
| | | | | | | | | BUG=2805 Review URL: http://codereview.chromium.org/4292 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2620 0039d316-1c4b-4281-b951-d872f2087c98
* Assert that the lifetimes of multiple ScopedHostMapperwtc@google.com2008-09-261-1/+3
| | | | | | | | | | instances are properly nested. R=darin BUG=2635 Review URL: http://codereview.chromium.org/4293 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2619 0039d316-1c4b-4281-b951-d872f2087c98
* If we read nothing (EOF) after sending a request on awtc@google.com2008-09-253-11/+34
| | | | | | | | | | | | | | | | persistent connection, it also indicates that the server closed the connection before receiving the request, and we should resend the request on a new connection. I refactored the main code of HandleIOError into a new ShouldResendRequest method so that I can reuse it to handle the read-nothing case. R=darin BUG=2489 Review URL: http://codereview.chromium.org/4264 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2613 0039d316-1c4b-4281-b951-d872f2087c98
* Add UTF-8 check for JSON deserializer.jungshik@google.com2008-09-252-4/+4
| | | | | | | | | | | Add tests for IsStringUTF8 Make IsStringUTF8 accept std::string/std::wstring rather than char*/wchar_t* Review URL: http://codereview.chromium.org/4268 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2610 0039d316-1c4b-4281-b951-d872f2087c98
* Add more tests and files to the Mac's net_unittests:mark@chromium.org2008-09-254-14/+27
| | | | | | | | | | | - backend_unittest - cookie_policy_unittest - proxy_service_unittest - url_request_test_job - test_completion_callback_unittest Review URL: http://codereview.chromium.org/4094 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2608 0039d316-1c4b-4281-b951-d872f2087c98
* Provide autorelease pool management on the Mac in all types of message pumps.mark@chromium.org2008-09-252-2/+2
| | | | | | | Fix a few unit tests to use autorelease pools as needed. Review URL: http://codereview.chromium.org/3805 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2603 0039d316-1c4b-4281-b951-d872f2087c98
* add http layer and unit tests to mac build. stub out file uploading in ↵pinkerton@google.com2008-09-258-24/+60
| | | | | | | | upload_data_stream until we have a common file wrapper. Review URL: http://codereview.chromium.org/4090 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2599 0039d316-1c4b-4281-b951-d872f2087c98
* Repair leak in unit test by properly ending use of gzip stream.jar@google.com2008-09-251-0/+2
| | | | | | | tbr=huanr Review URL: http://codereview.chromium.org/4075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2584 0039d316-1c4b-4281-b951-d872f2087c98
* Correct typo in SDCH (filter chaining) unit test, and enable testjar@google.com2008-09-252-6/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A line got deleted between testing and landing, which caused the chaining test to break. I disabled the chaining test when the tree went red, but this CL has the one-line fix (to the test). I also found that the last series of edits (switching to using status of FILTER_NEED_MORE_DATA rather than an empty input buffer) was not completely tested :-(. This also explains how I added the typo to the test but did not notice it. :-( :-( This too had a required one line of editing (in the filter constructor to use that status at startup). I then added a test line to catch the constructor problem, and did a bit of lint cleanup. Remaining TODO items center on: a) Security restriction changes and/or tests. b) Error recovery from network stripping of protocol headers (some proxy servers may strip headers, and require SDCH to be disabled along with output a meta-refresh page (hack)). r=huanr Review URL: http://codereview.chromium.org/4219 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2582 0039d316-1c4b-4281-b951-d872f2087c98
* Use histograms to send interesting parts of the disk cache statistics.rvargas@google.com2008-09-248-4/+171
| | | | | | | | | | | Most of this CL deals with a derived implementation of histograms that just queries the size stats already generated by the disk cache. The exact number of buckets, and their distribution, is controlled directly by the new class and the disk cache stats code. Review URL: http://codereview.chromium.org/3069 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2580 0039d316-1c4b-4281-b951-d872f2087c98
* Add libevent to the Mac SCons build of net_unittests:sgk@google.com2008-09-241-4/+8
| | | | | | | | | | * Build base/tcp_client_socket_libevent.cc on both Linux and Mac. * Link against -levent on both Linux and Mac. * Don't build base/cookie_policy_unittest.cc on Mac (yet?); it throws warnings (and is currently not being built by XCode, either). Review URL: http://codereview.chromium.org/4257 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2561 0039d316-1c4b-4281-b951-d872f2087c98
* fix minor whitespace issuesdarin@chromium.org2008-09-241-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2559 0039d316-1c4b-4281-b951-d872f2087c98
* Apply minor tweaks to ScopedHostMapper per review feedback.darin@chromium.org2008-09-244-10/+16
| | | | | | | | R=wtc Review URL: http://codereview.chromium.org/4253 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2557 0039d316-1c4b-4281-b951-d872f2087c98
* Some quick changes suggested by wtc in review.avi@google.com2008-09-241-1/+14
| | | | | | Review URL: http://codereview.chromium.org/4056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2547 0039d316-1c4b-4281-b951-d872f2087c98
* Enforce Terminate on Heap Corruption in most of our executable on Windows XP ↵maruel@google.com2008-09-241-0/+2
| | | | | | | | | | | SP3 or Vista. This won't submit the crash dump but it's still better than nothing. Fix broken alignment on test_shell_main.cc. Review URL: http://codereview.chromium.org/3105 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2546 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for mock DNS queries. This allows us to eliminatedarin@google.com2008-09-246-3/+155
| | | | | | | | | | | | | | flaky DNS queries from the unit tests. Note: some unit tests still connect to www.google.com. My plan is to resolve those in a subsequent CL. R=wtc BUG=2635 Review URL: http://codereview.chromium.org/4022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2545 0039d316-1c4b-4281-b951-d872f2087c98
* Fix support for 204 responses that lack an explicit EOF.darin@google.com2008-09-233-14/+32
| | | | | | | | | BUG=2347 R=wtc Review URL: http://codereview.chromium.org/3085 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2533 0039d316-1c4b-4281-b951-d872f2087c98
* Miscellaneous cleanup.wtc@google.com2008-09-232-38/+49
| | | | | | | | | | | | | | | | Removed an extraneous 'protected' in message_loop.h. Don't need to document Read and Write again in tcp_client_socket.h. They are documented in socket.h. Map more POSIX error codes. Check for EAGAIN as well as EWOULDBLOCK. Cleaned up error handling in DidCompleteConnect. R=dank Review URL: http://codereview.chromium.org/4234 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2532 0039d316-1c4b-4281-b951-d872f2087c98
* Add net\base\x509_certificate.cc to the SCons build.sgk@google.com2008-09-231-0/+1
| | | | | | Review URL: http://codereview.chromium.org/4240 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2531 0039d316-1c4b-4281-b951-d872f2087c98
* Refactoring out common code in the X.509 cert handlingavi@google.com2008-09-236-326/+219
| | | | | | Review URL: http://codereview.chromium.org/4040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2525 0039d316-1c4b-4281-b951-d872f2087c98
* Mac-specific CFRunLoop-based MessagePump implementationmark@chromium.org2008-09-231-3/+7
| | | | | | Review URL: http://codereview.chromium.org/444 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2521 0039d316-1c4b-4281-b951-d872f2087c98
* Add missing files to project to get test-shell fully linking. Fixes gcc ↵pinkerton@google.com2008-09-231-0/+28
| | | | | | | | warning/error in sdch_manager with members being initialized out of order. Review URL: http://codereview.chromium.org/4042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2502 0039d316-1c4b-4281-b951-d872f2087c98
* Update Linux / SCons build for SDCH.sgk@google.com2008-09-231-6/+7
| | | | | | Review URL: http://codereview.chromium.org/4046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2497 0039d316-1c4b-4281-b951-d872f2087c98
* Correct typo with containing extra declarations in headerjar@google.com2008-09-231-8/+7
| | | | | | | r=pinkerton Review URL: http://codereview.chromium.org/4045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2496 0039d316-1c4b-4281-b951-d872f2087c98
* HttpVersion had to be changed because glibc defines macros named "major" and ↵maruel@google.com2008-09-232-20/+19
| | | | | | | | | | | "minor" which was causing compilation problems. Patch contributed by James Vega <vega.james@gmail.com>. Note: Took the leasure to make some globals const. Review URL: http://codereview.chromium.org/4217 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2491 0039d316-1c4b-4281-b951-d872f2087c98
* Stubbing out the network transaction until more of that pipeline works. ↵pinkerton@google.com2008-09-231-0/+9
| | | | | | | | Allows testShell to link. Review URL: http://codereview.chromium.org/4216 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2489 0039d316-1c4b-4281-b951-d872f2087c98
* Some platform cleanup to net/deanm@google.com2008-09-234-39/+20
| | | | | | Patch from Pawel Hajdan Jr. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2485 0039d316-1c4b-4281-b951-d872f2087c98
* Another unit test parsing the Webkit cert, and the attendent changes needed ↵avi@google.com2008-09-232-22/+196
| | | | | | | | for the Mac version code. Plus, we properly release the certs, so the Purify build should be happier. Review URL: http://codereview.chromium.org/3189 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2482 0039d316-1c4b-4281-b951-d872f2087c98
* Add tcp_client_socket_libevent to the project and get the unit tests working ↵pinkerton@google.com2008-09-232-11/+8
| | | | | | | | correctly with the platform hooks. Review URL: http://codereview.chromium.org/4020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2481 0039d316-1c4b-4281-b951-d872f2087c98
* Roll the icu38 revision in the DEPS file to change the name ofsgk@google.com2008-09-231-1/+1
| | | | | | | | | our combined-build icuuc.lib to icu.lib. Change solution file references accordingly. Also change libxml patch and Makefile references Review URL: http://codereview.chromium.org/4027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2480 0039d316-1c4b-4281-b951-d872f2087c98
* Disable failing filter chaining testjar@google.com2008-09-231-1/+2
| | | | | | | TBR Review URL: http://codereview.chromium.org/4205 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2473 0039d316-1c4b-4281-b951-d872f2087c98
* Fix tree bustagejar@google.com2008-09-231-2/+4
| | | | | | | tbr=evanm Review URL: http://codereview.chromium.org/4203 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2471 0039d316-1c4b-4281-b951-d872f2087c98
* Don't use SDCH until open_vcdiff works on all platforms.evanm@google.com2008-09-231-0/+9
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2470 0039d316-1c4b-4281-b951-d872f2087c98
* Re-land SDCH filter support experimentjar@google.com2008-09-2317-86/+1578
| | | | | | | | | | | Fix up solution files for webkit and net Add one line keyword change to help linux build r=hunanr,openvcdiff,nsylvain Review URL: http://codereview.chromium.org/4026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2469 0039d316-1c4b-4281-b951-d872f2087c98
* Fix DeleteCache on POSIX. It wasn't successfully deleting before.evanm@google.com2008-09-231-7/+9
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2468 0039d316-1c4b-4281-b951-d872f2087c98
* This fixes http://code.google.com/p/chromium/issues/detail?id=541, which is aniyengar@google.com2008-09-232-2/+18
| | | | | | | | | | | | | | issue with the proxy exception list not being honored if individual rules had uppercase characters in them. The code to match the url with the exceptions was converting both to lowercase. However there was an error in the way the StringToLowerASCII function was used. Bug=541 Review URL: http://codereview.chromium.org/4019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2466 0039d316-1c4b-4281-b951-d872f2087c98
* Remove stragler file that didn't rollbhack (delete) properlyjar@google.com2008-09-221-170/+0
| | | | | | | TBR Review URL: http://codereview.chromium.org/4018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2447 0039d316-1c4b-4281-b951-d872f2087c98
* Rollback 2444 and 2443 to get linux and mac prepjar@google.com2008-09-2216-1408/+87
| | | | | | | | | Also need to augment sln dependencies tbr Review URL: http://codereview.chromium.org/3188 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2446 0039d316-1c4b-4281-b951-d872f2087c98
* Adjust includes to satisfy deps checkjar@google.com2008-09-222-1/+2
| | | | | | | | | Repairing tree bustage from checkin 2443 r=nsylvain Review URL: http://codereview.chromium.org/3187 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2444 0039d316-1c4b-4281-b951-d872f2087c98
* Experimental integration of delta compression content encodingjar@google.com2008-09-2215-86/+1576
| | | | | | | | | | | | | | | | | | | | | | | The command line option "sdch-enable" enables support of sdch and automtic lazy download of dictionaries. Optionally it can select a singular domain to work from. By default, all domains are enabled when the flag is used. "-sdch-enable=".google.com" Enables it only for Google. When the switch is not set on the command line, all this code is completely disabled. Still TBD: a) Finish implementation of security details (much of it is in place) b) Add tests for security details. r=huanr,ajenjo,kmixter Review URL: http://codereview.chromium.org/461 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2443 0039d316-1c4b-4281-b951-d872f2087c98
* Unit test now runs on the Mac.avi@google.com2008-09-224-25/+84
| | | | | | Review URL: http://codereview.chromium.org/3000 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2440 0039d316-1c4b-4281-b951-d872f2087c98
* Fix AmountOfFreeDiskSpace to be able to differentiate an errorrvargas@google.com2008-09-201-1/+1
| | | | | | | | from a full disk. Review URL: http://codereview.chromium.org/4003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2431 0039d316-1c4b-4281-b951-d872f2087c98
* Accidental commit; oopsavi@google.com2008-09-194-84/+25
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2423 0039d316-1c4b-4281-b951-d872f2087c98
* Unit test now runs on the Mac.avi@google.com2008-09-194-25/+84
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2421 0039d316-1c4b-4281-b951-d872f2087c98
* Oops, expected value comes first.avi@google.com2008-09-191-24/+24
| | | | | | Review URL: http://codereview.chromium.org/3177 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2420 0039d316-1c4b-4281-b951-d872f2087c98
* Add unit test for the X509 parsing. This only runs on Windows, but does so ↵avi@google.com2008-09-193-6/+165
| | | | | | | | successfully. Review URL: http://codereview.chromium.org/2993 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2418 0039d316-1c4b-4281-b951-d872f2087c98