summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* Turn SSLClientSocket into an interface.wtc@google.com2008-10-1512-249/+266
| | | | | | | | | | | | | | | | | | | | The original ssl_client_socket.{h,cc} are renamed ssl_client_socket_win.{h,cc}. The new ssl_client_socket.h defines the SSLClientSocket interface, which simply extends the ClientSocket interface with a new GetSSLInfo method. ClientSocketFactory::CreateSSLClientSocket returns SSLClientSocket* instead of ClientSocket*. Replace the SSL protocol version mask parameter to the constructor and factory method by a SSLConfig parameter. R=darin Review URL: http://codereview.chromium.org/7304 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3387 0039d316-1c4b-4281-b951-d872f2087c98
* Support servers that request but don't require SSLwtc@google.com2008-10-142-1/+24
| | | | | | | | | | client authentication. R=rvargas BUG=166 Review URL: http://codereview.chromium.org/7291 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3337 0039d316-1c4b-4281-b951-d872f2087c98
* This makes net_perftests build and run on Linux.evanm@google.com2008-10-132-12/+41
| | | | | | | | | | BUG=3065 Review URL: http://codereview.chromium.org/6080 Patch from Paweł Hajdan jr <phajdan.jr@gmail.com>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3298 0039d316-1c4b-4281-b951-d872f2087c98
* The Schannel considers some cipher suites (e.g., thewtc@google.com2008-10-134-13/+30
| | | | | | | | | | | | | | AES cipher suites) to be TLS only, and won't allow them to be used in SSL 3.0. If an SSL 3.0 server picks such a cipher suite, we need to handle it as if it were TLS intolerant by turning off TLS and retrying. R=darin BUG=3203,3001 Review URL: http://codereview.chromium.org/7242 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3295 0039d316-1c4b-4281-b951-d872f2087c98
* Remove WatchObject calls from FileInputStream.rvargas@google.com2008-10-101-22/+20
| | | | | | Review URL: http://codereview.chromium.org/6030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3258 0039d316-1c4b-4281-b951-d872f2087c98
* Enable AddTrust External CA Root for EV. The patch iswtc@google.com2008-10-101-0/+6
| | | | | | | | | | | contributed by Rob Stradling <rob@comodo.com> of Comodo CA Limited. R=ian BUG=2170 Review URL: http://codereview.chromium.org/3173 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3242 0039d316-1c4b-4281-b951-d872f2087c98
* add file:// handling to mac and linux buildspinkerton@google.com2008-10-104-10/+18
| | | | | | Review URL: http://codereview.chromium.org/7230 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3232 0039d316-1c4b-4281-b951-d872f2087c98
* Optimize the mime sniffer based on UMA data and move closer to the HTML 5 spec.abarth@chromium.org2008-10-092-75/+30
| | | | | | | | | | | | | | Removed over 50% of the heuristics while returning the same result 99.996% of the time. Each heuristic we remove reduces the attack surface that honest sites have to worry about when the serve third-party content. (with typo fix this time) R=darin git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3082 0039d316-1c4b-4281-b951-d872f2087c98
* - Add auth integration tests to http_network_transaction_unitttest.ccericroman@google.com2008-10-083-14/+276
| | | | | | | | - Add unique error code for when origin server returns 407. Review URL: http://codereview.chromium.org/4334 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3067 0039d316-1c4b-4281-b951-d872f2087c98
* Unrollback 3024 (partially rolled back in 3027).ericroman@google.com2008-10-087-88/+10
| | | | | | | | It is fixed in mac build now -- problem was bad format string to StringPrintf, where passed string instead of char*. Review URL: http://codereview.chromium.org/6359 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3064 0039d316-1c4b-4281-b951-d872f2087c98
* Update a comment based on our findings today.pkasting@chromium.org2008-10-081-4/+4
| | | | | | Review URL: http://codereview.chromium.org/6463 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3059 0039d316-1c4b-4281-b951-d872f2087c98
* Fix tree breakage by referencing correct open-vcdiff directory.erg@google.com2008-10-081-1/+1
| | | | | | | | | TBR=jar Review URL: http://codereview.chromium.org/6364 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3053 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 3024, broke mac build.maruel@google.com2008-10-087-10/+88
| | | | | | Review URL: http://codereview.chromium.org/6351 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3027 0039d316-1c4b-4281-b951-d872f2087c98
* Pull in new googleurl@94 which includes GURL::EffectiveIntPort().ericroman@google.com2008-10-087-88/+10
| | | | | | | | Update callers to use this method. Review URL: http://codereview.chromium.org/5641 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3024 0039d316-1c4b-4281-b951-d872f2087c98
* Use the new HTTP stack by default in the net module'swtc@google.com2008-10-082-1/+3
| | | | | | | | | | | | | | | | tests, but continue to use WinHTTP by default in the test shell and chrome. The mapping of CRYPT_E_NO_REVOCATION_CHECK to ERR_CERT_NO_REVOCATION_MECHANISM (a certificate error code) is necessary to make the HTTPSTestServer's start and shutdown GET commands work. (The TestDelegate ignores all certificate errors.) R=darin Review URL: http://codereview.chromium.org/6472 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3022 0039d316-1c4b-4281-b951-d872f2087c98
* Handle TLS-intolerant servers by retrying with TLS 1.0wtc@google.com2008-10-089-19/+93
| | | | | | | | | | turned off. R=darin BUG=3001 Review URL: http://codereview.chromium.org/5617 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3017 0039d316-1c4b-4281-b951-d872f2087c98
* Rever 2997 since it caused UI and unit tests failure.maruel@google.com2008-10-082-30/+75
| | | | | | Review URL: http://codereview.chromium.org/6583 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3007 0039d316-1c4b-4281-b951-d872f2087c98
* Optimize the mime sniffer based on UMA data and move closer to the HTML 5 spec.darin@chromium.org2008-10-082-75/+30
| | | | | | | | | | | | | | Removed over 50% of the heuristics while returning the same result 99.996% of the time. Each heuristic we remove reduces the attack surface that honest sites have to worry about when the serve third-party content. Patch by Adam Barth R=darin git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2997 0039d316-1c4b-4281-b951-d872f2087c98
* - Cleanup usage, EnsureWinsockInit is now the only method of initializing.deanm@chromium.org2008-10-062-42/+35
| | | | | | | - Work around buggy third party hooks that can overwrite LastErrorValue during delay load binding. Review URL: http://codereview.chromium.org/6483 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2877 0039d316-1c4b-4281-b951-d872f2087c98
* Add Posix sync only support to FileInputStream.deanm@chromium.org2008-10-063-19/+107
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2875 0039d316-1c4b-4281-b951-d872f2087c98
* Move all callers to EnsureWinsockInit, and away from using WinsockInit ↵deanm@chromium.org2008-10-061-2/+1
| | | | | | | | instances. Review URL: http://codereview.chromium.org/6486 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2874 0039d316-1c4b-4281-b951-d872f2087c98
* 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