summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Re submitting the histograms change (735)rvargas@google.com2008-08-124-0/+40
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@763 0039d316-1c4b-4281-b951-d872f2087c98
* configure the net unit test targetspinkerton@google.com2008-08-121-2/+287
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@751 0039d316-1c4b-4281-b951-d872f2087c98
* Back off the histograms change.rvargas@google.com2008-08-124-40/+0
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@741 0039d316-1c4b-4281-b951-d872f2087c98
* Add a few histograms to the disk cache.rvargas@google.com2008-08-124-0/+40
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@735 0039d316-1c4b-4281-b951-d872f2087c98
* Change the ProxyService to work with ASCII strings.darin@google.com2008-08-1210-115/+115
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@711 0039d316-1c4b-4281-b951-d872f2087c98
* Fix hammer build. Bustage resulted from renaming some files.darin@google.com2008-08-111-3/+3
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@653 0039d316-1c4b-4281-b951-d872f2087c98
* Rename HttpProxy* classes to Proxy*. Move them into a net/proxy/ subdirectory.darin@google.com2008-08-1118-276/+278
| | | | | | I'm making this change because proxy resolution is really not specific to the HTTP protocol. We need to use the proxy service in our FTP implementation, for example. I made a separate directory instead of just putting these in base, because I anticipate more files once we have our own PAC implementation. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@651 0039d316-1c4b-4281-b951-d872f2087c98
* Add a stubbed-out platform_mime_util_mac.mmericroman@google.com2008-08-104-5/+61
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@636 0039d316-1c4b-4281-b951-d872f2087c98
* rollback r526 to fix performance regressiondarin@google.com2008-08-092-10/+11
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@632 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor mime_util into a singleton.ericroman@google.com2008-08-095-55/+175
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@626 0039d316-1c4b-4281-b951-d872f2087c98
* Add deps files and rules for the checkdeps script.brettw@google.com2008-08-081-0/+3
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@600 0039d316-1c4b-4281-b951-d872f2087c98
* Extend disk cache unit tests to include reuse of internal entries.rvargas@google.com2008-08-081-11/+27
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@591 0039d316-1c4b-4281-b951-d872f2087c98
* Stop using SHFileOperation from the disk cache code.rvargas@google.com2008-08-081-10/+16
| | | | | | | | | | | Using SHFileOperation to delete old cache files has the disadvantage that once in a while somebody decides to perform COM operations assuming STA, and that doesn't work with the worker pool. BUG=1314744 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@590 0039d316-1c4b-4281-b951-d872f2087c98
* Break out windows specific parts of mime_util.cc into mime_util_win.ccericroman@google.com2008-08-084-17/+70
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@582 0039d316-1c4b-4281-b951-d872f2087c98
* Change the UrlRequestJob base class to be thread safe because the sub class ↵nsylvain@google.com2008-08-081-1/+4
| | | | | | UrlRequestFileJob can be deleted on multiple threads. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@563 0039d316-1c4b-4281-b951-d872f2087c98
* Rollback r517 to retry with ObjectWatcher. This change did not appear to bedarin@google.com2008-08-072-11/+10
| | | | | | | | | the cause of the page cycler regression. TBR=jar git-svn-id: svn://svn.chromium.org/chrome/trunk/src@526 0039d316-1c4b-4281-b951-d872f2087c98
* Rollback changes made to URLRequestFileJob to use ObjectWatcher instead ofdarin@google.com2008-08-072-10/+11
| | | | | | | | | | ML::WatchObject. This is a test to confirm that the change caused a perf regression on single core machines. TBR=jar git-svn-id: svn://svn.chromium.org/chrome/trunk/src@517 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the old NativeMB functions from string util, and use the new ones in ↵brettw@google.com2008-08-072-5/+8
| | | | | | sys_strings.h. I also removed duplicated code from the sandbox that can now use this, and fixed one case in the bug reporter that should not have been using the native multibyte encoding. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@515 0039d316-1c4b-4281-b951-d872f2087c98