summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* Fix some more warnings.evanm@google.com2008-08-202-2/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1127 0039d316-1c4b-4281-b951-d872f2087c98
* More of net compiling on the Mac.avi@google.com2008-08-205-48/+63
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1125 0039d316-1c4b-4281-b951-d872f2087c98
* Fix some character conversions and Mac compile errors for net_util.cc.paulg@google.com2008-08-202-18/+39
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1112 0039d316-1c4b-4281-b951-d872f2087c98
* Use the right mode in HttpCache::Transaction::RequiresValidationmmentovai@google.com2008-08-201-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1107 0039d316-1c4b-4281-b951-d872f2087c98
* Quick fix; it's a struct not a class.avi@google.com2008-08-201-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1104 0039d316-1c4b-4281-b951-d872f2087c98
* Build more files with sconsavi@google.com2008-08-201-3/+3
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1102 0039d316-1c4b-4281-b951-d872f2087c98
* Fixing extended verification code for non-windowsavi@google.com2008-08-203-2/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1101 0039d316-1c4b-4281-b951-d872f2087c98
* Add MimeSnifferTest to net_unittests. Take message_pump_default.cc out ofmmentovai@google.com2008-08-201-0/+2
| | | | | | base_unittests, because it's already part of base. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1096 0039d316-1c4b-4281-b951-d872f2087c98
* We should reset content_length_remaining_ (to -1) when wewtc@google.com2008-08-201-0/+3
| | | | | | | | | | | | | restart a transaction. Otherwise, the stale value of content_length_remaining_ may be incorrectly applied to the response to the restarted request. I also reset upload_progress_ just to be safe. R=darin BUG=1314424 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1093 0039d316-1c4b-4281-b951-d872f2087c98
* Make mime sniffer compile for Mac.avi@google.com2008-08-202-6/+7
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1092 0039d316-1c4b-4281-b951-d872f2087c98
* Portability changes to http_response_headers.ericroman@google.com2008-08-202-10/+48
| | | | | | | | | | | | | | | | | | | | | | | | The parsing changes will also behave differently for these cases (added as unit-tests): "Content-Length: +10\n" Before: 10 After: -1 "Content-Length: 40000000000000000000\n" Before: 9223372036854775807 After: -1 "Content-Length: \v10\n" Before: 10 After: -1 "Content-Length: \f10\n" Before: 10 After: -1 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1083 0039d316-1c4b-4281-b951-d872f2087c98
* Run a couple more tests in net, and get rid of a couple more warningsmmentovai@google.com2008-08-203-3/+13
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1076 0039d316-1c4b-4281-b951-d872f2087c98
* Add more files to the net module compile list. Had to make some small ↵tc@google.com2008-08-203-53/+66
| | | | | | changes to how static struct arrays were declared so arraysize() would work with gcc. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1074 0039d316-1c4b-4281-b951-d872f2087c98
* Update the list of files that should compile.rvargas@google.com2008-08-191-18/+16
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1073 0039d316-1c4b-4281-b951-d872f2087c98
* add http_cache to mac build.ericroman@google.com2008-08-196-30/+38
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1068 0039d316-1c4b-4281-b951-d872f2087c98
* Remove warnings for the net module.rvargas@google.com2008-08-195-10/+12
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1067 0039d316-1c4b-4281-b951-d872f2087c98
* Move time formatters that only use ICU into base/time.*tc@google.com2008-08-191-22/+4
| | | | | | | | | | | | | This allows us to use the time formatters in, e.g., net or webkit. Remove CookieExpires since it's not used. BUG=1164516 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1063 0039d316-1c4b-4281-b951-d872f2087c98
* Fix up warnings in net/avi@google.com2008-08-198-9/+13
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1048 0039d316-1c4b-4281-b951-d872f2087c98
* Add mime_util and http_chunked_decoder to mac project.ericroman@google.com2008-08-193-3/+9
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1041 0039d316-1c4b-4281-b951-d872f2087c98
* Build the rest of the files that currently work in net. No new tests canmmentovai@google.com2008-08-191-5/+61
| | | | | | be added yet. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1036 0039d316-1c4b-4281-b951-d872f2087c98
* Update a few forgotten users of the Sys StringPiece conversion functions to ↵deanm@google.com2008-08-192-1/+3
| | | | | | include string_piece.h git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1028 0039d316-1c4b-4281-b951-d872f2087c98
* Use LF for newlines in all DEPS filesmmentovai@google.com2008-08-181-3/+3
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1011 0039d316-1c4b-4281-b951-d872f2087c98
* Pass more tests in net.mmentovai@google.com2008-08-181-2/+107
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1007 0039d316-1c4b-4281-b951-d872f2087c98
* change error valueericroman@google.com2008-08-183-9/+9
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1005 0039d316-1c4b-4281-b951-d872f2087c98
* Merge some changes from branches/mac_july_2008 to trunk.ericroman@google.com2008-08-184-1/+36
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1002 0039d316-1c4b-4281-b951-d872f2087c98
* Build and run bzip2 and gzip filter tests in net. Brings net, bzip2, and zlibmmentovai@google.com2008-08-181-384/+854
| | | | | | project files into the new xcconfig-based setup. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1001 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a net\SConscript typo. (Note to self: check in from thesgk@google.com2008-08-181-1/+1
| | | | | | | directory where you actually did the build.) TBR: tc git-svn-id: svn://svn.chromium.org/chrome/trunk/src@996 0039d316-1c4b-4281-b951-d872f2087c98
* Have the "net" build install icudt38l.dat on non-Windows systems.sgk@google.com2008-08-181-1/+5
| | | | | | TBR: tc git-svn-id: svn://svn.chromium.org/chrome/trunk/src@994 0039d316-1c4b-4281-b951-d872f2087c98
* Make some net unittests compile and pass on linux.tc@google.com2008-08-183-23/+21
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@991 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the scons build (file name change).tc@google.com2008-08-151-2/+4
| | | | | | TBR=rvargas git-svn-id: svn://svn.chromium.org/chrome/trunk/src@962 0039d316-1c4b-4281-b951-d872f2087c98
* -Add error code for chunked encodingericroman@google.com2008-08-153-7/+117
| | | | | | | | | | -Add unit test for chunk-size > 2GB -Allow trailing space (0x20) -Document how other browsers parse the chunk-size BUG=1326627 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@961 0039d316-1c4b-4281-b951-d872f2087c98
* Second pass move the os dependent code apart on the disk cache.rvargas@google.com2008-08-1513-40/+267
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@960 0039d316-1c4b-4281-b951-d872f2087c98
* Large patch set (159 files total) to cleanup the includes.maruel@google.com2008-08-157-34/+53
| | | | | | | | | | - Slightly reduce the size of the generated .lib files ~3%. - Reduce the number of implicit and explicit atl and windows includes. hooray! - Help incremental build by reducing the number of unnecessary included files. - Split some template class in two, one base class for the common code and the specialization that inherits from the base class. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@937 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce MessagePump to represent the native message pump used to drive adarin@google.com2008-08-152-10/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MessageLoop. A MessageLoop now has a MessagePump. This will make it possible to port the MessagePump interface to other platforms as well as to use an IO completion port for our worker threads on Windows. Currently, there is only MessagePumpWin, which attempts to preserve the pre-existing behavior of the MessageLoop. API changes to MessageLoop: 1. MessageLoop::Quit means return from Run when the MessageLoop would otherwise wait for more work. 2. MessageLoop::Quit can no longer be called outside the context of an active Run call. So, things like this: MessageLoop::current()->Quit(); MessageLoop::current()->Run(); are now: MessageLoop::current()->RunAllPending(); 3. MessageLoop::Quit can no longer be called from other threads. This means that PostTask(..., new MessageLoop::QuitTask()) must be used explicitly to Quit across thread boundaries. 4. No protection is made to deal with nested MessageLoops involving watched objects or APCs. In fact, an assertion is added to flag such cases. This is a temporary measure until object watching and APC facilities are removed in favor of a MessagePump designed around an IO completion port. As part of this CL, I also changed the automation system to use an IPC::ChannelProxy instead of an IPC::Channel. This moves the automation IPC onto Chrome's IO thread where it belongs. I also fixed some abuses of RefCounted in the AutomationProvider class. It was deleting itself in some cases! This led to having to fix the ownership model for AutomationProvider, which explains the changes to AutomationProviderList and so on. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@928 0039d316-1c4b-4281-b951-d872f2087c98
* Get googleurl and net to build on linux so we can parallelize even more. ↵tc@google.com2008-08-152-178/+192
| | | | | | This builds an empty net_unittests. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@915 0039d316-1c4b-4281-b951-d872f2087c98
* Modify the binary bz2 to have LF and force google.txt totc@google.com2008-08-142-1/+19
| | | | | | | | | | have LF because I can't seem to get svn to check in the right version with CR. TBR=evanm git-svn-id: svn://svn.chromium.org/chrome/trunk/src@914 0039d316-1c4b-4281-b951-d872f2087c98
* Now force it back to CR for everyone.tc@google.com2008-08-141-19/+1
| | | | | | | TBR=evanm git-svn-id: svn://svn.chromium.org/chrome/trunk/src@913 0039d316-1c4b-4281-b951-d872f2087c98
* Force the eol style to LF so we always get the CR character.tc@google.com2008-08-141-1/+19
| | | | | | | TBR=evanm git-svn-id: svn://svn.chromium.org/chrome/trunk/src@912 0039d316-1c4b-4281-b951-d872f2087c98
* Force the line ending on this test data file to be CR. Thetc@google.com2008-08-141-19/+1
| | | | | | | | test for this compares this file to a bzip2'ed copy of the file. The bzip2'ed copy is based on there being a CR so force this to be the case on linux as well. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@910 0039d316-1c4b-4281-b951-d872f2087c98
* Update the comment for OnObjectSignaled.wtc@google.com2008-08-142-7/+21
| | | | | | | | | | | | The event object for the completion of overlapped I/O is also set when WSARecv or WSASend returns 0, so we need to reset the event object in that case. Add temporary debugging code to assert that the event object is in the expected state before and after WSARecv and WSASend calls. R=darin git-svn-id: svn://svn.chromium.org/chrome/trunk/src@906 0039d316-1c4b-4281-b951-d872f2087c98
* Don't assert stream_sizes_.cbBlockSize == 1. It fails withwtc@google.com2008-08-141-3/+0
| | | | | | | | some sites, and we don't need cbBlockSize to be 1. TBR=darin git-svn-id: svn://svn.chromium.org/chrome/trunk/src@899 0039d316-1c4b-4281-b951-d872f2087c98
* Fix utilities that were broken by at_exit changes.rvargas@google.com2008-08-142-0/+8
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@892 0039d316-1c4b-4281-b951-d872f2087c98
* First cut at implementing SSLClientSocket using Schannel.wtc@google.com2008-08-144-71/+376
| | | | | | | | | | | | Not implemented: - Handling certificate errors - Handling session renegotiation - Sending the close_notify alert - Miscellaneous TODOs and DCHECKs in the code. R=darin git-svn-id: svn://svn.chromium.org/chrome/trunk/src@884 0039d316-1c4b-4281-b951-d872f2087c98
* Address some issues I found in chunked decoder:ericroman@google.com2008-08-143-26/+153
| | | | | | | | | | | | (1) stricter parsing of chunk-size (don't allow leading/trailing whitespace, redundant "+" sign, leading "0x") (2) check for negative chunk sizes, and fail early rather than hitting weird stuff (3) don't mutate the const char* returned by std::string::data() (4) fail if CRLF terminator is missing on chunk-data. (why the spec has this in first place seems unecessary, since the chunk-size already tells the story...) (5) don't allow empty CRLFs git-svn-id: svn://svn.chromium.org/chrome/trunk/src@853 0039d316-1c4b-4281-b951-d872f2087c98
* Use %ls instead of %s in wprintf format strings for wchar_t fields.mmentovai@google.com2008-08-145-8/+9
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@846 0039d316-1c4b-4281-b951-d872f2087c98
* Add a helper method to SConscript.main for adding .pdb files to thetc@google.com2008-08-132-26/+12
| | | | | | | | | | | | output target of .exe files on Windows. Change all the callers to only pass in the basename of the target (e.g., 'base_unittests'). The only exception is chrome.exe which uses chrome_exe.pdb. This lets us remove a "if env['PLATFORM'] == 'win32'" condition from base/SConscript and these other files going forward. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@836 0039d316-1c4b-4281-b951-d872f2087c98
* Add new disk_cache\*_{win,posix}.cc files to SCons build. Copy insgk@google.com2008-08-131-35/+49
| | | | | | | cross-platform patterns from base\SConscript. Remove out-of-date comments. TBR: rvargas,evanm git-svn-id: svn://svn.chromium.org/chrome/trunk/src@829 0039d316-1c4b-4281-b951-d872f2087c98
* Set the svn:eol-style to LF on all SConscript filestc@google.com2008-08-132-399/+399
| | | | | | TBR=evanm git-svn-id: svn://svn.chromium.org/chrome/trunk/src@823 0039d316-1c4b-4281-b951-d872f2087c98
* Move remaining OS dependent bits from the main logic on the disk cache.rvargas@google.com2008-08-1320-150/+551
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@819 0039d316-1c4b-4281-b951-d872f2087c98
* make the GTest executables follow the naming conventions for other platforms. pinkerton@google.com2008-08-131-22/+22
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@811 0039d316-1c4b-4281-b951-d872f2087c98