summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* Move std::string16 to base::string16. Don't pollute the std namespace. Don'tmmentovai@google.com2008-08-272-5/+5
| | | | | | assume that all string types can be represented as std::basic_string<CHAR>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1464 0039d316-1c4b-4281-b951-d872f2087c98
* Add more net unit tests to linux.rvargas@google.com2008-08-271-6/+6
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1461 0039d316-1c4b-4281-b951-d872f2087c98
* On .mm files in net and base:mmentovai@google.com2008-08-271-31/+6
| | | | | | | | - Update the license boilerplate - Set svn:eol-style properly - Get rid of trailing whitespace git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1455 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the net_perftests to work again.darin@google.com2008-08-272-1/+3
| | | | | | | | | Since only one test needed a MessageLoop, I decided to only give that single test a MessageLoop. I used a MessageLoopForIO (subclass of MessageLoop) for future use when the disk cache leverages MessageLoopForIO for asynchronous IO. TBR=rvargas git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1428 0039d316-1c4b-4281-b951-d872f2087c98
* Implement sync IO for the disk cache, and temporarily redirectrvargas@google.com2008-08-2711-57/+150
| | | | | | | async IO to be performed synchronously. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1414 0039d316-1c4b-4281-b951-d872f2087c98
* Use the right run_all_unittests.cc in netmmentovai@google.com2008-08-261-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1409 0039d316-1c4b-4281-b951-d872f2087c98
* Sort the file names alphabetically.darin@google.com2008-08-261-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1408 0039d316-1c4b-4281-b951-d872f2087c98
* Need to use net/base/run_all_unittests.cc instead of base/run_all_unittests.cc.darin@google.com2008-08-261-1/+1
| | | | | | TBR=tc git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1406 0039d316-1c4b-4281-b951-d872f2087c98
* fix builddarin@google.com2008-08-261-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1367 0039d316-1c4b-4281-b951-d872f2087c98
* Allow consumers of MessageLoop to specify the type of MessageLoop they want.darin@google.com2008-08-269-26/+122
| | | | | | | | | | | | | | | | This CL introduces a Type enum to MessageLoop, and I also created subclasses of MessageLoop corresponding to the non-default types: MessageLoopForIO and MessageLoopForUI. I moved all of the platform-specific MessageLoop APIs onto either MessageLoopForIO or MessageLoopForUI. MessageLoopForIO gets the Watcher API, and MessageLoopForUI gets the Observer and Dispatcher APIs. Under the hood, both are implemented in terms of MessagePumpWin, but that will change in a future CL. The Thread class is changed to allow the consumer to specify the Type of MessageLoop they want to have setup on the created thread. I re-organized message_loop_unittest.cc and timer_unittest.cc so that I could exercise all (or most) of the tests against each type of MessageLoop. Note: I know that "explicit MessageLoop(Type type = TYPE_DEFAULT);" is in violation to the style-guide's restriction against default arguments. I'm working on finding a decent solution to that problem. Please ignore this issue for now. The corresponding chrome/ changes are coming in a separate CL due to Reitveld data size limitations. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1362 0039d316-1c4b-4281-b951-d872f2087c98
* Implement SSL tunneling through a proxy server.wtc@google.com2008-08-254-20/+191
| | | | | | | | | | | | | | Add several states to HttpNetworkTransaction for the HTTP CONNECT method and the SSL Connect (handshake) after the tunnel is connected. Add the error code ERR_TUNNEL_CONNECTION_FAILED for failure to connect a tunnel. R=darin BUG=1272555 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1329 0039d316-1c4b-4281-b951-d872f2087c98
* We can link with secur32.lib and call the SSPI functions directly.wtc@google.com2008-08-251-48/+18
| | | | | | | | | Add secur32.dll to chrome.dll.deps as a new dependency of chrome.dll. R=maruel BUG=1272567 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1310 0039d316-1c4b-4281-b951-d872f2087c98
* a filename changed in this stackerikkay@google.com2008-08-251-2/+2
| | | | | | | TBR=paulg git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1307 0039d316-1c4b-4281-b951-d872f2087c98
* Move NOTIMPLEMENTED() macro from "base/notimplemented.h" into "base/logging.h".ericroman@google.com2008-08-256-6/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1300 0039d316-1c4b-4281-b951-d872f2087c98
* Use a more compact license header in source files.license.bot2008-08-24239-6872/+1136
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1287 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Make sure we don't overwrite external files when creating new ones.rvargas@google.com2008-08-233-2/+27
| | | | | | | TEST=unit test git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1270 0039d316-1c4b-4281-b951-d872f2087c98
* Back out the previous checkin because buildbot detectswtc@google.com2008-08-221-18/+48
| | | | | | | | | that chrome.dll is now dependent on secur32.dll. we need to update chrome.dll.deps. TBR=sky git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1266 0039d316-1c4b-4281-b951-d872f2087c98
* add url_request_test_job to the buildtc@google.com2008-08-222-3/+3
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1264 0039d316-1c4b-4281-b951-d872f2087c98
* Filter out tests from purify tests that intentionally leak.erikkay@google.com2008-08-223-182/+7
| | | | | | | | | | Remove stacks for these tests from the known errors list. BUG=1339773 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1262 0039d316-1c4b-4281-b951-d872f2087c98
* Fix spurious gcc warning dkegel@google.com2008-08-221-1/+1
| | | | | | | net/base/net_util.cc:176: warning: suggest parentheses around && within || git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1261 0039d316-1c4b-4281-b951-d872f2087c98
* We can link with secur32.lib and call the SSPI functions directly.wtc@google.com2008-08-221-48/+18
| | | | | | | | | | | The Platform SDK sample code loads the DLL and looks up the function pointer table dynamically, probably because it was written back when Win 9x and NT used different DLLs (secur32.dll and security.dll). R=maruel,darin BUG=1272567 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1256 0039d316-1c4b-4281-b951-d872f2087c98
* Add missing framework to link Mac mime changes.avi@google.com2008-08-221-0/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1251 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Delete all files from the cache folder, instead of only thervargas@google.com2008-08-221-17/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | files created by the cache. I changed the code that deletes the cache files from the unit tests to use the same code used by the cache itself to discard old caches. However, said code performs a selective deletion of files, and leave anything that it doesn't know about on the folder, and then attempts to remove the folder (knowing that it will fail if there are extra files or directories there). That causes a problem with the unit tests, because some of the tests create an extra file in that folder, so the folder cannot be deleted. As a result, we start accumulating extra folders until we reach our pre-defined limit, and at that time the tests start to fail. We could modify the code to also delete this extra file, but given that the whole cache lives under a hidden folder, it makes sense to simplify the code and just delete every file when we want to discard an old file. So this means that if a user decides to write a file to that folder, we will delete it whenever we update the cache version, or when the user chooses to "Clear browsing data/ cache". Note that if the foreign object is a directory, we won't delete it and it will be moved aside. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1244 0039d316-1c4b-4281-b951-d872f2087c98
* Impl of platform mime typing for Mac.avi@google.com2008-08-221-6/+43
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1238 0039d316-1c4b-4281-b951-d872f2087c98
* Use PlatformTest to manage autorelease pools in net tests that use the path ↵mmentovai@google.com2008-08-223-4/+22
| | | | | | service git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1233 0039d316-1c4b-4281-b951-d872f2087c98
* Some stacks for known memory leaks in net_unittests have changed.erikkay@google.com2008-08-221-12/+4
| | | | | | | | TBR=pamg git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1221 0039d316-1c4b-4281-b951-d872f2087c98
* Move FileURLToFilePath into platform specific files. Most of the logic in ↵tc@google.com2008-08-227-77/+229
| | | | | | this function is specific to windows' file system. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1211 0039d316-1c4b-4281-b951-d872f2087c98
* Enable -Werror on the Mac. Fix two more warnings just added to our build. ↵mmentovai@google.com2008-08-222-7/+8
| | | | | | Note that the targets for libskia and libicuuc still exclude themselves from -Werror. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1205 0039d316-1c4b-4281-b951-d872f2087c98
* Bandaid to fix build breakage; this isn't the real cause though.avi@google.com2008-08-221-0/+12
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1202 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: add a delay after TruncateData unit test to wait for IO completions.rvargas@google.com2008-08-211-0/+5
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1200 0039d316-1c4b-4281-b951-d872f2087c98
* This line should not have ever changedmmentovai@google.com2008-08-211-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1199 0039d316-1c4b-4281-b951-d872f2087c98
* Fix warnings. The unused var one was introduced two repositories ago, and ↵avi@google.com2008-08-211-4/+1
| | | | | | has always been that way. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1196 0039d316-1c4b-4281-b951-d872f2087c98
* r1194 missed some sites to disable the warningmmentovai@google.com2008-08-211-3/+3
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1195 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the final gcc warnings in base and net. Provide some macros to ↵mmentovai@google.com2008-08-213-18/+17
| | | | | | selectively disable MSVC warnings. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1194 0039d316-1c4b-4281-b951-d872f2087c98
* More net files brought into compilation for Mac/Linux.avi@google.com2008-08-214-11/+28
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1192 0039d316-1c4b-4281-b951-d872f2087c98
* Add the net_util_unittest to the mac net project.paulg@google.com2008-08-211-0/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1191 0039d316-1c4b-4281-b951-d872f2087c98
* Blind fix for net unittest failure.evanm@google.com2008-08-212-3/+3
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1189 0039d316-1c4b-4281-b951-d872f2087c98
* Make upload_data not be windows specific. Add it to the SCons build.tc@google.com2008-08-213-14/+10
| | | | | | | Also add mime_sniffer_unittest which already passes. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1178 0039d316-1c4b-4281-b951-d872f2087c98
* Pass 100 more tests on Linux. Puts my money where my mouth is.mmentovai@google.com2008-08-211-11/+13
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1171 0039d316-1c4b-4281-b951-d872f2087c98
* Add net_util* to the SCons build. Fixes some ICU UChar issues in net_util. ↵tc@google.com2008-08-214-47/+67
| | | | | | | | | Also disable NetUtilTest.FileURLConversion because it seems to have Windows specific output (is this the right thing to do?). The other changes to net_util_unittest is to get arraysize to work (see the comment in base/basictypes.h). git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1168 0039d316-1c4b-4281-b951-d872f2087c98
* Port cookie_monster, net_util, and registry_controlled_domain to POSIXish ↵mmentovai@google.com2008-08-218-158/+203
| | | | | | platforms git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1164 0039d316-1c4b-4281-b951-d872f2087c98
* Mark static method defined in header as inlinemmentovai@google.com2008-08-211-4/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1162 0039d316-1c4b-4281-b951-d872f2087c98
* Fix signedness warnings in http_response_headersmmentovai@google.com2008-08-211-3/+3
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1159 0039d316-1c4b-4281-b951-d872f2087c98
* Back out r1154 due to test failuresmmentovai@google.com2008-08-218-195/+158
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1156 0039d316-1c4b-4281-b951-d872f2087c98
* Port cookie_monster, net_util, and registry_controlled_domain to POSIXish ↵mmentovai@google.com2008-08-218-158/+195
| | | | | | platforms git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1154 0039d316-1c4b-4281-b951-d872f2087c98
* Fix WaitForPendingIO to actually exit the wait at some point.rvargas@google.com2008-08-214-6/+6
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1143 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the linux build again. http_response_headers.cc hastc@google.com2008-08-211-2/+2
| | | | | | | | | size_t i = -1 which doesn't compile on gcc 4.0.3. TBR=erg git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1136 0039d316-1c4b-4281-b951-d872f2087c98
* Make the disk cache unit tests use some common code from the disk cache.rvargas@google.com2008-08-211-10/+11
| | | | | | | | In particular, this removes the last piece of code on the disk cache that uses SHFileOperation. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1135 0039d316-1c4b-4281-b951-d872f2087c98
* Fix net build on linux by moving http_vary_data to the win only section ↵tc@google.com2008-08-211-2/+2
| | | | | | | | | until we port it. TBR=evanm@google.com git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1134 0039d316-1c4b-4281-b951-d872f2087c98
* Final character conversions for net_util.paulg@google.com2008-08-201-4/+17
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1132 0039d316-1c4b-4281-b951-d872f2087c98