summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* Bring X.509 cert handling (at least preliminarily) to the Mac.avi@google.com2008-09-186-6/+418
| | | | | | Review URL: http://codereview.chromium.org/2963 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2369 0039d316-1c4b-4281-b951-d872f2087c98
* Now that we have the ICU lib depend on its data file, we no longer need toevanm@google.com2008-09-181-6/+1
| | | | | | | mention it in these other SConscripts. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2367 0039d316-1c4b-4281-b951-d872f2087c98
* Avoid signedness mismatch errors from gccdkegel@google.com2008-09-181-3/+3
| | | | | | Review URL: http://codereview.chromium.org/3126 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2365 0039d316-1c4b-4281-b951-d872f2087c98
* Enable two CyberTrust root CAs for EV. The EV policywtc@google.com2008-09-181-0/+12
| | | | | | | | | | | OIDs and test URLs were provided by Masahiro Yado <yado.masa@gmail.com>. R=maruel BUG=1622 Review URL: http://codereview.chromium.org/3123 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2363 0039d316-1c4b-4281-b951-d872f2087c98
* Move GetFreeDiskSpace to SysInfo.deanm@chromium.org2008-09-184-33/+2
| | | | | | | Patch from Pawel Hajdan Jr. Review URL: http://codereview.chromium.org/3141 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2359 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Make tcp_client_socket_unittest pass on Linux."evanm@google.com2008-09-183-344/+19
| | | | | | | This reverts commit d63170654d935f5a8ff6517bfacb60893f186a6b. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2347 0039d316-1c4b-4281-b951-d872f2087c98
* Make tcp_client_socket_unittest pass on Linux.dkegel@google.com2008-09-183-19/+344
| | | | | | | | | | Requires another changeset that puts libevent in third_party; I'll upload that next. This is not the final word; it makes too many syscalls per read. But it's a start. Review URL: http://codereview.chromium.org/3202 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2346 0039d316-1c4b-4281-b951-d872f2087c98
* Include <wincrypt.h> to fix compilation errors.wtc@google.com2008-09-171-0/+1
| | | | | | | TBR=rvargas Review URL: http://codereview.chromium.org/2946 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2332 0039d316-1c4b-4281-b951-d872f2087c98
* First cut at SSL certificate error handling. Mapwtc@google.com2008-09-174-29/+231
| | | | | | | | | | | | | security error codes to our network error codes and pass the certificate and its status up the stack. There are still some rough edges and hardcoded settings, but it is basically functional. R=rvargas BUG=b/1272567 Review URL: http://codereview.chromium.org/2898 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2331 0039d316-1c4b-4281-b951-d872f2087c98
* Don't set any cookies as a result of the Google URL Tracker update check. ↵pkasting@chromium.org2008-09-172-8/+14
| | | | | | | | | This way, if users clear their cookies and restart, they won't have to wonder why a Google cookie has suddenly mysteriously appeared. BUG=1204 Review URL: http://codereview.chromium.org/2937 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2323 0039d316-1c4b-4281-b951-d872f2087c98
* Review URL: http://codereview.chromium.org/2942jeremy@chromium.org2008-09-172-2/+19
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2321 0039d316-1c4b-4281-b951-d872f2087c98
* Revision 2303 introduced AmountOfPhysicalMemory in SysInfo, so now ↵deanm@chromium.org2008-09-174-47/+2
| | | | | | | | | | GetSystemMemory in net/disk_cache/cache_util is redundant. Patch from Pawel Hajdan Jr. Review URL: http://codereview.chromium.org/3103 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2306 0039d316-1c4b-4281-b951-d872f2087c98
* Unignore most warnings on POSIX in build/SConscript.main.evanm@google.com2008-09-161-3/+2
| | | | | | | | | BUG=2053 Patch from Paweł Hajdan jr <phajdan.jr@gmail.com>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2272 0039d316-1c4b-4281-b951-d872f2087c98
* One more passing test.evanm@google.com2008-09-161-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2265 0039d316-1c4b-4281-b951-d872f2087c98
* Mac/mach implementation of disk_cache::GetSystemMemory(). Patch by Kellymark@chromium.org2008-09-161-1/+14
| | | | | | | | | Norton <knorton@google.com>. http://codereview.chromium.org/3078 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2258 0039d316-1c4b-4281-b951-d872f2087c98
* memcpy cannot overlap, move to memmove.deanm@google.com2008-09-162-2/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2257 0039d316-1c4b-4281-b951-d872f2087c98
* Simple unit test, written mostly just to become familiar with the code.dkegel@google.com2008-09-153-0/+123
| | | | | | | I've addressed the comments and added the test to the visual studio project. I'll commit when the tree opens. Review URL: http://codereview.chromium.org/3049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2249 0039d316-1c4b-4281-b951-d872f2087c98
* Address a TODO for properly stripping references from request URL.ericroman@google.com2008-09-154-10/+65
| | | | | | | | (rfind of # isn't quite right, as reference might contain hashes). Review URL: http://codereview.chromium.org/2827 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2225 0039d316-1c4b-4281-b951-d872f2087c98
* An early optimization in std::pair<> in Visual Studio 2008 Service Pack 1 ↵maruel@google.com2008-09-151-0/+9
| | | | | | | | makes it requires a default constructor on its members. Review URL: http://codereview.chromium.org/2851 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2212 0039d316-1c4b-4281-b951-d872f2087c98
* Add unit test for HttpResponseHeaders::GetStatusText()ericroman@google.com2008-09-132-10/+38
| | | | | | Review URL: http://codereview.chromium.org/2822 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2173 0039d316-1c4b-4281-b951-d872f2087c98
* TBR fix for broken compile on mac.ericroman@google.com2008-09-131-1/+1
| | | | | | | | i had committed some bad code which visual studio doesnt mind, but gcc notices. Review URL: http://codereview.chromium.org/2818 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2155 0039d316-1c4b-4281-b951-d872f2087c98
* misc. http response status-line changes:ericroman@google.com2008-09-139-83/+398
| | | | | | | | | | 1. check for http 0.9 responses (no status line) 2. allow up to 4 bytes of junk to precede the http version. 3. distinguish between the parsed vs normalized http version (a TODO needed this). Review URL: http://codereview.chromium.org/1934 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2153 0039d316-1c4b-4281-b951-d872f2087c98
* Add the EV metadata for two GlobalSign root CA certificates.wtc@google.com2008-09-111-0/+11
| | | | | | | | R=ifette BUG=2058 Review URL: http://codereview.chromium.org/2406 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2098 0039d316-1c4b-4281-b951-d872f2087c98
* Capture initial SCons build of {base,net,googleurl}_unittests on Mac:sgk@google.com2008-09-111-1/+6
| | | | | | | | | | | | | * Initial flags and options that mimick how XCode builds (e.g. XCode uses "gcc -x c++" to compile C++, but g++ to link it). * Load minimal set of SConscript files: base, googleurl, net, skia, testing, third_party. (breakpad and webkit to come.) * Correct .cc => .mm file names (multiple places). * Add base/{platform_thread,platform_test,worker_pool}_mac.mm. * Remove -Wall when we build Skia, like we do on Linux. Review URL: http://codereview.chromium.org/2435 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2097 0039d316-1c4b-4281-b951-d872f2087c98
* Remove all but one place in this file where we returnwtc@google.com2008-09-111-2/+3
| | | | | | | | | | | | ERR_FAILED. In the remaining place, log the original Win32 error code to help diagnose a failure in the field. R=darin Review URL: http://codereview.chromium.org/1927 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2066 0039d316-1c4b-4281-b951-d872f2087c98
* Declare the bool members next to each other so they canwtc@google.com2008-09-112-5/+5
| | | | | | | | | | | be packed. Fix indentation. R=eroman Review URL: http://codereview.chromium.org/1926 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2064 0039d316-1c4b-4281-b951-d872f2087c98
* CreateDirectory() should check if an existing path is actually a directory ↵mmoss@google.com2008-09-111-1/+0
| | | | | | | | before skipping it. Also update a couple instances and comments to reflect current behaviour (see also http://codereview.chromium.org/1681). Review URL: http://codereview.chromium.org/1709 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2060 0039d316-1c4b-4281-b951-d872f2087c98
* Fix IDNtoUnicode and unittest. jungshik@google.com2008-09-112-4/+9
| | | | | | | | | | | | | | | | | | | | 1. Check whether uloc_getdata returns the default locale because an invalid or unsupported (not a part of ICU data file we use) locale is passed. 2. Replace 'se' with 'sv' in IDNToUnicode test and change the corresponding test result to true. U+00C4 IS used in Swedish, but the result was set to false because the test results were machine generated with the same typo ('se' in place of 'sv') under en_US.UTF-8 locale on Linux and we ran this test only on Windows with en_US locale. 1st part of patch is by Matthias Reitinger <reimarvin@gmail.com> BUG=1153 TEST=NetUtilTest.IDNToUnicode passes in various locales, C, en_US, en_US.utf8, ja_JP.utf8, sv_SE.utf8, hi_IN.utf8, ru_RU.utf8, fr_CA Review URL: http://codereview.chromium.org/1655 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2052 0039d316-1c4b-4281-b951-d872f2087c98
* Remove all but one place in this file where we returnwtc@google.com2008-09-111-2/+6
| | | | | | | | | | | | ERR_FAILED. In the remaining place, log the original Win32 error code to help diagnose a failure in the field. R=darin Review URL: http://codereview.chromium.org/2401 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2044 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor the SSL tunnel establishment code so that itwtc@google.com2008-09-102-135/+62
| | | | | | | | | | | | | | | | | | | | | reuses the four states of writing the request headers and reading the response headers. Add a boolean member is_connect_method_ to tell, while we're in one of those four states, whether we're doing the HTTP CONNECT method (to set up a tunnel) or the real transaction. The motivation of this refactoring is that I need to read the response body when the CONNECT request fails, which makes me realize I'd need to duplicate more code with the original design. R=darin BUG=b/1272555 Review URL: http://codereview.chromium.org/1875 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2011 0039d316-1c4b-4281-b951-d872f2087c98
* Implement GetFreeDiskSpace for POSIX and GetSystemMemory for Linux.mark@chromium.org2008-09-102-6/+31
| | | | | | | | | Patch by Paweł Hajdan jr <phajdan.jr@gmail.com> http://codereview.chromium.org/1891 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2007 0039d316-1c4b-4281-b951-d872f2087c98
* Do a better job at bounding HexToInt.deanm@chromium.org2008-09-101-1/+1
| | | | | | | http://codereview.chromium.org/1703 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1994 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the pre-launch bzip2 hack.ericroman@google.com2008-09-101-23/+0
| | | | | | Review URL: http://codereview.chromium.org/1691 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1974 0039d316-1c4b-4281-b951-d872f2087c98
* Use gcc 4.2 for the Mac build. Fix up new warnings and errors pointed outmark@chromium.org2008-09-105-49/+46
| | | | | | | | | | by gcc 4.2: warning: 'C' has a field 'C::m_' whose type uses the anonymous namespace warning: missing braces around initializer for 'S' error: extra qualification 'C::' on member 'm' Review URL: http://codereview.chromium.org/1675 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1955 0039d316-1c4b-4281-b951-d872f2087c98
* This change implements the performance recommendation from: darin@google.com2008-09-091-13/+25
| | | | | | | | | | | | | | | http://msdn.microsoft.com/en-us/library/aa383153(VS.85).aspx This fixes the performance problem of resolving PAC query when WinHTTP AutoProxy service is running, which seems to at least be default on Vista and Win2k3. Contributed by griffinz@gmail.com BUG=1684 R=nsylvain Review URL: http://codereview.chromium.org/1657 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1924 0039d316-1c4b-4281-b951-d872f2087c98
* WinHttpSendRequest fails with SEC_E_ILLEGAL_MESSAGE whenwtc@google.com2008-09-091-0/+1
| | | | | | | | | | | | | it receives an unexpected_message alert message from the server. We should map SEC_E_ILLEGAL_MESSAGE to net::ERR_SSL_PROTOCOL_ERROR so that our TLS-intolerant server handling code will kick in. R=eroman BUG=1891 Review URL: http://codereview.chromium.org/1669 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1919 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Linux buildbot breakage on BlockFiles_Grow due to lingering cache files.mmoss@google.com2008-09-097-19/+36
| | | | | | | | | | | | | | The buildbot was breaking because temporary cache files were being created under /tmp, like "/tmp/cache_test\data_*", rather than under /tmp/cache_test, like "/tmp/cache_test/data_*". This prevented the files from being cleaned up when /tmp/cache_test was deleted, and after a few runs, the max of 256 cache files was reached, and the tests failed when they couldn't create more. The following changes were made: - Replace '\' with platform-dependent path separator in various places. - Define constant (same as Windows) for invalid Linux file handle to fix error where wrong value was tested. - Force cache initialization in block_files tests, otherwise it fails to create cache files after calling DeleteCache(). BUG=1917 Review URL: http://codereview.chromium.org/1840 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1918 0039d316-1c4b-4281-b951-d872f2087c98
* Build host_resolver on the Macmmentovai@google.com2008-09-094-12/+13
| | | | | | Review URL: http://codereview.chromium.org/1839 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1896 0039d316-1c4b-4281-b951-d872f2087c98
* Fix proxy code. The pac string was corrupted when a pacnsylvain@chromium.org2008-09-091-1/+2
| | | | | | | | | | | | | | | | | file was specified. This is because AsciiToWide returns a temporary object, and we use .c_str, but as soon as the line is executed, the object is destroyed and what was pointed by c_str is also deleted. Use a local variable instead. Thanks for griffinz@gmail.com for pointing the issue. Review URL: http://codereview.chromium.org/1838 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1890 0039d316-1c4b-4281-b951-d872f2087c98
* Rename "run net_unittests" to "run_net_unittests" like we do with other unitmmentovai@google.com2008-09-081-6/+6
| | | | | | | | test targets. Use a script that can be copied and pasted for all unit test targets by depending on the product name variable. Review URL: http://codereview.chromium.org/1637 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1872 0039d316-1c4b-4281-b951-d872f2087c98
* Get MIME stuff working minimally to the point where we haveerg@google.com2008-09-082-5/+48
| | | | | | | | | unit tests passing. B=1315 Review URL: http://codereview.chromium.org/1824 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1866 0039d316-1c4b-4281-b951-d872f2087c98
* Replace all instances of <hash_map> with a "base/hash_tabe.h",erg@google.com2008-09-085-11/+6
| | | | | | | | | | | which does the right thing based on whatever platform we're compiling for, along with changing the hardcoded "stdext::", which is a MSVC++ism to use base::hash_{map,set}. B=1869 Review URL: http://codereview.chromium.org/1629 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1862 0039d316-1c4b-4281-b951-d872f2087c98
* Normalize leading LWS in line continuations, per Wan-Teh's suggestion.ericroman@google.com2008-09-082-15/+70
| | | | | | Review URL: http://codereview.chromium.org/1802 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1861 0039d316-1c4b-4281-b951-d872f2087c98
* [new http] Normalize line continuations in response headers.ericroman@google.com2008-09-065-27/+347
| | | | | | | | BUG=1272571 Review URL: http://codereview.chromium.org/458 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1818 0039d316-1c4b-4281-b951-d872f2087c98
* The previous fix doesn't work. We should continuewtc@google.com2008-09-051-4/+10
| | | | | | | | | | | decrypting if there is still extra data to decrypt, and read more if there is no data to decrypt. R=darin BUG=b/1329345,b/1329363 Review URL: http://codereview.chromium.org/480 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1814 0039d316-1c4b-4281-b951-d872f2087c98
* This fixes the "passing NULL to non-pointer argument" warning when compiling ↵mmoss@google.com2008-09-051-1/+1
| | | | | | | | with gcc 4.1, and is consistent with the way EXPECT_EQ uses NULL elsewhere in Chrome. Review URL: http://codereview.chromium.org/267 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1813 0039d316-1c4b-4281-b951-d872f2087c98
* Modify HostResolver slightly to build on posix as well as windows.dkegel@google.com2008-09-054-1/+57
| | | | | | Review URL: http://codereview.chromium.org/403 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1799 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a crash caused by a NULL FILETIME when creating ftptc@google.com2008-09-042-3/+42
| | | | | | | | | directory listings. BUG=1350006 Review URL: http://codereview.chromium.org/419 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1722 0039d316-1c4b-4281-b951-d872f2087c98
* If we didn't read enough to be able to decrypt anything,wtc@google.com2008-09-041-0/+4
| | | | | | | | | | | go back to read more rather than reporting 0 bytes read, which would be interpreted as EOF. R=darin BUG=b/1329345,b/1329363 Review URL: http://codereview.chromium.org/217 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1705 0039d316-1c4b-4281-b951-d872f2087c98
* Minor cleanup to OneShotTimer and RepeatingTimer: moves more of the member ↵darin@google.com2008-09-032-60/+35
| | | | | | | | | | | variables into the Task subclass. Also included in this change: deprecate MessageLoop::timer_manager(), and change consumers over to use OneShotTimer or RepeatingTimer. R=beng BUG=1346553 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1684 0039d316-1c4b-4281-b951-d872f2087c98