summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* Use open-vcdiff source in its new home on the Mac (follow-up to r2709)mark@chromium.org2008-09-301-4/+4
| | | | | | Review URL: http://codereview.chromium.org/3407 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2713 0039d316-1c4b-4281-b951-d872f2087c98
* Get open-vcdiff building on Linux and Mac (in SCons) usingsgk@google.com2008-09-302-14/+3
| | | | | | | | | | | | | | | | | captured values for generating a config.h file. Builds base/sdch_{filter,manager}.cc on all platforms and links the 'sdch' library. Add sdch to the SCons configuration loaded on Mac and Linux. Removes platform #ifs in net/base/filter.cc initialization code (reverting r2740). B=2662 Review URL: http://codereview.chromium.org/5204 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2710 0039d316-1c4b-4281-b951-d872f2087c98
* Transition to pulling open-vcdiff rather than using a private snapshot pulljar@google.com2008-09-301-1/+1
| | | | | | | | | | | | | | I can't include all the svn deletions (all of sdch/open_vcdiff/*) in this change list, as it will break reitveld. I'll do them piecemeal after a get an LGTM. Also, by temporarilly leaving in the old subtree, I can support mac until the move to use this new sub-tree. r=nsylvain,sgk Review URL: http://codereview.chromium.org/5402 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2709 0039d316-1c4b-4281-b951-d872f2087c98
* Use base::RandInt() in place of rand(), now that rand_util has been moved ↵ericroman@google.com2008-09-301-2/+2
| | | | | | | | from chrome/ to base/. Review URL: http://codereview.chromium.org/5036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2707 0039d316-1c4b-4281-b951-d872f2087c98
* When an SSL connect is completed, we need to callwtc@google.com2008-09-301-6/+7
| | | | | | | | | | | | | HandleCertificateError first, because it may change 'result' to 'OK' if the load flags say we should ignore that certificate error, and we want to take the 'result == OK' code path when that happens. R=rvargas BUG=2703 Review URL: http://codereview.chromium.org/4340 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2705 0039d316-1c4b-4281-b951-d872f2087c98
* Add comments to explain the ERR_NAME_NOT_RESOLVED case.darin@google.com2008-09-291-0/+6
| | | | | | | | TBR=wtc Review URL: http://codereview.chromium.org/4343 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2701 0039d316-1c4b-4281-b951-d872f2087c98
* Add code to call ReconsiderProxyAfterError when we encounter a failure to ↵darin@chromium.org2008-09-292-3/+49
| | | | | | | | | | | resolve a hostname or a failure to connect a client socket. BUG=2962 R=wtc Review URL: http://codereview.chromium.org/5033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2695 0039d316-1c4b-4281-b951-d872f2087c98
* Re-order constructor order to avoid warning on mac build (that causes error).ericroman@google.com2008-09-291-5/+5
| | | | | | | | TBR=darin@chromium.org Review URL: http://codereview.chromium.org/4332 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2681 0039d316-1c4b-4281-b951-d872f2087c98
* Add missing header file to net.xcodeprojdarin@google.com2008-09-291-0/+2
| | | | | | | | TBR=avi Review URL: http://codereview.chromium.org/4331 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2680 0039d316-1c4b-4281-b951-d872f2087c98
* Style refactoring to make MockRead initializers more readable.ericroman@google.com2008-09-291-63/+70
| | | | | | Review URL: http://codereview.chromium.org/5026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2679 0039d316-1c4b-4281-b951-d872f2087c98
* fix build bustage due to missing headerdarin@google.com2008-09-291-0/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2675 0039d316-1c4b-4281-b951-d872f2087c98
* Need to alphabetize our source files in the build steps.avi@google.com2008-09-291-6/+6
| | | | | | Review URL: http://codereview.chromium.org/4327 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2674 0039d316-1c4b-4281-b951-d872f2087c98
* Define FileInputStream and use it to make UpdateDataStream and ↵darin@google.com2008-09-2915-318/+779
| | | | | | | | | | | | URLRequestFileJob portable. file_input_stream_posix.cc is not implemented in this CL. That is saved for a follow-up. R=mark Review URL: http://codereview.chromium.org/4101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2673 0039d316-1c4b-4281-b951-d872f2087c98
* Update unit test to check EV functionality (Windows-only for now).avi@google.com2008-09-291-7/+184
| | | | | | Review URL: http://codereview.chromium.org/4086 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2671 0039d316-1c4b-4281-b951-d872f2087c98
* Get rid of "using std::string" in http_response_headers.cc.ericroman@google.com2008-09-291-84/+85
| | | | | | Review URL: http://codereview.chromium.org/4316 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2666 0039d316-1c4b-4281-b951-d872f2087c98
* Avoid using of interlocked increment to facilitate porting.jar@google.com2008-09-281-4/+1
| | | | | | | | | | | | The code did not end up needing the use of interlocked operations. All the initialization is called on one thread (the main thread). bug=1311434 r=deanm Review URL: http://codereview.chromium.org/4076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2665 0039d316-1c4b-4281-b951-d872f2087c98
* Add the auth unit-tests to SConscript and .pbxprojericroman@google.com2008-09-275-4/+19
| | | | | | Review URL: http://codereview.chromium.org/4315 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2660 0039d316-1c4b-4281-b951-d872f2087c98
* 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