summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* Include C system headers before C++ system headers.wtc@chromium.org2009-05-182-3/+6
| | | | | | | | | | | | | | | | Document that GetHostAndPort returns an IPv6 literal address with square brackets. Document that the host parameter to the ProxyServer constructor takes an IPv6 literal address with square brackets. R=eroman BUG=N/A TEST=N/A Review URL: http://codereview.chromium.org/113494 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16287 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Revert "Revert "Add connected socket function to ClientSocketPool ↵willchan@chromium.org2009-05-1811-774/+377
| | | | | | | | | | | and ClientSocketHandle.""" Revert "Fix a memory leak in client_socket_pool_unittest.cc." Guess I still fail. kasperl pointed out that this managed to break layout tests and some reliability tests too. Review URL: http://codereview.chromium.org/113517 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16269 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a memory leak in client_socket_pool_unittest.cc.willchan@chromium.org2009-05-171-10/+14
| | | | | | | | | Need to run the MessageLoop one time to run a task to delete the canceled ConnectingSocket. Also reorder the test to help hide the minor race condition here. Review URL: http://codereview.chromium.org/115455 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16266 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Revert "Add connected socket function to ClientSocketPool and ↵willchan@chromium.org2009-05-1711-377/+770
| | | | | | | | | | | | ClientSocketHandle."" This reverts commit c235c719f964cc8f7f9343177ae6d5af724be6c0. Fixes a use of deleted memory by making a copy instead of keeping a reference to the deleted memory. Review URL: http://codereview.chromium.org/113512 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16263 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Add connected socket function to ClientSocketPool and ↵willchan@chromium.org2009-05-1711-770/+377
| | | | | | | | | | ClientSocketHandle." Broke net_unittests on windows. Review URL: http://codereview.chromium.org/113510 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16261 0039d316-1c4b-4281-b951-d872f2087c98
* Add connected socket function to ClientSocketPool and ClientSocketHandle.willchan@chromium.org2009-05-1711-377/+770
| | | | | | | | Provide a new api in ClientSocketPool and ClientSocketHandle for clients (notably HttpNetworkTransaction) to request connected sockets, rather than having to allocate and Connect() sockets themselves. Add a bunch of tests for it. Have not begun switching clients over to using this. Review URL: http://codereview.chromium.org/99143 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16260 0039d316-1c4b-4281-b951-d872f2087c98
* Add a temporary hack to not resolve the mime type for .pl files to fix a ↵thestig@chromium.org2009-05-161-2/+7
| | | | | | | | | | | layout test. Remove a NOTIMPLEMENTED that was breaking layout tests. TBR=estade Review URL: http://codereview.chromium.org/113500 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16233 0039d316-1c4b-4281-b951-d872f2087c98
* Override .ico file's mime type on Linux. XDG's mime database has a bogus ↵thestig@chromium.org2009-05-161-0/+10
| | | | | | | | | "image/x-ico" entry whereas the rest of the world uses "image/x-icon". TBR=estade Review URL: http://codereview.chromium.org/115440 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16231 0039d316-1c4b-4281-b951-d872f2087c98
* Add xdg mime support on Linux.thestig@chromium.org2009-05-161-11/+11
| | | | | | | BUG=10049 Review URL: http://codereview.chromium.org/113168 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16227 0039d316-1c4b-4281-b951-d872f2087c98
* Use the new HostNoBrackets() method in more places.wtc@chromium.org2009-05-163-11/+12
| | | | | | | | | | | | | Note that IP addresses in certificate names are encoded in binary form (octet strings -- 4 octets for IPv4 and 16 octets for IPv6). R=eroman http://crbug.com/12005 TEST=covered by current tests Review URL: http://codereview.chromium.org/113438 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16213 0039d316-1c4b-4281-b951-d872f2087c98
* AI_ADDRCONFIG is not necessary on Windows because itswtc@chromium.org2009-05-151-2/+23
| | | | | | | | | | | | | | behavior is ON by default. Using AI_ADDRCONFIG can actually be harmful, as it causes getaddrinfo to fail to resolve "localhost" when the computer is not connected to a network. R=eroman http://crbug.com/5234 TEST=See bug 5234 for instructions Review URL: http://codereview.chromium.org/115424 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16212 0039d316-1c4b-4281-b951-d872f2087c98
* Add a comment to document that we don't know if a nonblockingwtc@chromium.org2009-05-151-0/+11
| | | | | | | | | | | | connect will ever return 0, and therefore we don't know if the event object will be signaled in that case. R=rvargas http://crbug.com/9258 TEST=N/A Review URL: http://codereview.chromium.org/113474 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16171 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 16158.beng@google.com2009-05-154-17/+2
| | | | | | Review URL: http://codereview.chromium.org/113470 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16163 0039d316-1c4b-4281-b951-d872f2087c98
* Privacy option added for all cookies to become session cookies.idanan@chromium.org2009-05-154-2/+17
| | | | | | | BUG=10502 Review URL: http://codereview.chromium.org/87047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16158 0039d316-1c4b-4281-b951-d872f2087c98
* Assert that HttpNetworkTransaction::GetResponseInfo() shouldukai@chromium.org2009-05-151-1/+5
| | | | | | | | | | | | never return NULL when we get a certificate error. R=wtc BUG=11646 TEST=access https://www.cdep.ro/ Review URL: http://codereview.chromium.org/113330 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16144 0039d316-1c4b-4281-b951-d872f2087c98
* Adjust histograms to only collect non-cache stats for SDCH.jar@chromium.org2009-05-157-47/+67
| | | | | | | | | | | | | | | | I also changed the name of all the SDCH histograms so that there would be no confusion about the data. I also added one new problem code, but that recordation doesn't have any semantic impact. I added it to help make it easier to diagnose dictionary specification errors in SDCH. bug=12012 R=wtc Review URL: http://codereview.chromium.org/115377 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16138 0039d316-1c4b-4281-b951-d872f2087c98
* Fix reversed arguments to EXPECT_EQ() in mime_util_unittest.thestig@chromium.org2009-05-141-4/+4
| | | | | | Review URL: http://codereview.chromium.org/113426 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16126 0039d316-1c4b-4281-b951-d872f2087c98
* Change the host() method of ProxyServer to strip thewtc@chromium.org2009-05-144-6/+51
| | | | | | | | | | | | | | | | | | | | | square brackets around an IPv6 literal address. Rename the method HostNoBrackets() to be consistent with GURL's new HostNoBrackets() method. When resolving an address, use the new HostNoBrackets() method instead of host(). Part of this changelist was contributed by Paul Marks of Google. Original review: http://codereview.chromium.org/115342 R=eroman http://crbug.com/12005 TEST=covered by new test cases in unit test Review URL: http://codereview.chromium.org/114029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16123 0039d316-1c4b-4281-b951-d872f2087c98
* Add a separate cookie store that's used for extensions.mpcomplete@google.com2009-05-143-12/+49
| | | | | | | Modify CookieMonster to support overriding the "cookieable schemes". Review URL: http://codereview.chromium.org/115204 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16083 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the remaining WaitForSingleObject(INFINITE) call.wtc@chromium.org2009-05-141-47/+55
| | | | | | | | | | | | We now wait with a zero timeout. If the wait times out, we take the same code path as WSAEWOULDBLOCK/WSA_IO_PENDING. R=rvargas http://crbug.com/9258 TEST=Covered by existing unit tests Review URL: http://codereview.chromium.org/113371 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16028 0039d316-1c4b-4281-b951-d872f2087c98
* If Schannel's InitializeSecurityContext calls returnwtc@chromium.org2009-05-141-2/+17
| | | | | | | | | | | | | | | | | | | certificate errors, do not map them to our (server) certificate errors because the errors are referring to the (missing) client certificate. If we incorrectly handle them as server certificate errors, we will crash because we can't get the server certificate from Schannel when the handshake fails. Fumitoshi Ukai of Google tracked down the bug and proposed an alternative fix. R=rvargas,ukai BUG=http://crbug.com/11646 TEST=Visit https://www.cdep.ro/. Chromium should not crash. Review URL: http://codereview.chromium.org/113375 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16026 0039d316-1c4b-4281-b951-d872f2087c98
* Ensure that IO thread is not called in last actions by SDCH shutdownjar@chromium.org2009-05-132-0/+10
| | | | | | | | | | | | | Unregister the sdch_dictionary_fetcher so that it destroys any pending URLFetcher instances when we are nearing shutdown time. Dictionaries are only *potentially* useful (and not needed) for future SDCH fetches, so abandoning any pending items is safe and harmless. b=9669 r=wtc Review URL: http://codereview.chromium.org/113235 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16015 0039d316-1c4b-4281-b951-d872f2087c98
* Split NetUtilTest.IDNToUnicode into IDNToUnicodeFast and IDNToUnicodeSlow. ↵thestig@chromium.org2009-05-132-277/+299
| | | | | | | | | Enable IDNToUnicodeFast test under Valgrind. BUG=9172 Review URL: http://codereview.chromium.org/113370 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16010 0039d316-1c4b-4281-b951-d872f2087c98
* Set the disk cache file version properly if new_evictionrvargas@google.com2009-05-121-0/+5
| | | | | | | | | | | is set. BUG=none TEST=none Review URL: http://codereview.chromium.org/115271 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15918 0039d316-1c4b-4281-b951-d872f2087c98
* Create a detachable core for the TCPClientSocketWin objectrvargas@google.com2009-05-122-132/+197
| | | | | | | | | | | | | | so that part of the socket can outlive the socket destruction. This is the second part of removing infinite waits from the IO loop. BUG=9258 TEST=none Review URL: http://codereview.chromium.org/113291 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15895 0039d316-1c4b-4281-b951-d872f2087c98
* Change registry-controlled-domain status for .pwagl@chromium.org2009-05-122-3/+14
| | | | | | | | | | | | | | | | | | The IANA admin contact for .pw has confirmed[1] a requested change[2] to the RCD config for .pw. This change will be pushed upstream to Mozilla in https://bugzilla.mozilla.org/show_bug.cgi?id=492583 [1] private email [2] http://www.google.com/support/forum/p/Chrome/thread?tid=3a477e4a25af0cba&hl=en TEST=type start.pw into the URL bar. It should complete as a URL, not just as a search. R=tony http://codereview.chromium.org/115249 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15876 0039d316-1c4b-4281-b951-d872f2087c98
* Making command-line specified proxy settings more flexible - allowing for ↵robertshield@google.com2009-05-1212-112/+170
| | | | | | | | | | setting of auto-detect, pac url, per-schema proxy settings, proxy bypass urls. BUG=http://crbug.com/266 Review URL: http://codereview.chromium.org/115029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15855 0039d316-1c4b-4281-b951-d872f2087c98
* Revert cl 15819 to investigate the purify failure.rvargas@google.com2009-05-122-189/+132
| | | | | | | | TBR=wtc Review URL: http://codereview.chromium.org/115219 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15830 0039d316-1c4b-4281-b951-d872f2087c98
* Create a detachable core for the TCPClientSocketWin objectrvargas@google.com2009-05-122-132/+189
| | | | | | | | | | | | | | so that part of the socket can outlive the socket destruction. This is the second part of removing infinite waits from the IO loop. BUG=9258 TEST=none Review URL: http://codereview.chromium.org/113172 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15819 0039d316-1c4b-4281-b951-d872f2087c98
* Use IOBuffers on UploadDataStream.rvargas@google.com2009-05-114-14/+10
| | | | | | | | | | | | This is some cleanup of cl 14998. R=wtc BUG=9258 TEST=none Review URL: http://codereview.chromium.org/115157 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15812 0039d316-1c4b-4281-b951-d872f2087c98
* Add a 'cygwin' target to execute setup_mount.bat explicitly as asgk@google.com2009-05-111-0/+5
| | | | | | | | dependency of targets that need it (that is, any target with 'rules' or 'actions'). Review URL: http://codereview.chromium.org/115154 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15774 0039d316-1c4b-4281-b951-d872f2087c98
* FTP Transaction code for new Portable FTP code.wtc@chromium.org2009-05-1110-114/+907
| | | | | | | | | | | | | The patch is contributed by Ibrar Ahmed <ibrar.ahmad@gmail.com>. Original review: http://codereview.chromium.org/39130 R=wtc http://crbug.com/4965 TEST=None. Work in progress. Review URL: http://codereview.chromium.org/115137 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15760 0039d316-1c4b-4281-b951-d872f2087c98
* Close the disk cache experiment for new users.rvargas@google.com2009-05-081-18/+2
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/114014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15646 0039d316-1c4b-4281-b951-d872f2087c98
* Make sure that a null separates individual http headers whenrvargas@google.com2009-05-072-2/+23
| | | | | | | | | | | we pickle them. BUG=7945 TEST=unittest. Review URL: http://codereview.chromium.org/113110 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15601 0039d316-1c4b-4281-b951-d872f2087c98
* Avoid divide by zero when gathering stats for SDCHjar@chromium.org2009-05-071-2/+4
| | | | | | | | | | | A reordering of stats gathering produced a vulnerability to divide by zero. bug=1835317 r=mbelshe Review URL: http://codereview.chromium.org/113115 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15578 0039d316-1c4b-4281-b951-d872f2087c98
* Fix testserver to return a correct MIME-type header.ericroman@google.com2009-05-071-1/+2
| | | | | | | | | | | | Originally, testserver was sending "Content-type: text/html" header regardless of a file extension, due to a bug in TestPageHandler.GetMIMETypeFromName. Patch by Yuta Kitamura <yutak@google.com>. Original code review: <http://codereview.chromium.org/100357> Review URL: http://codereview.chromium.org/115058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15510 0039d316-1c4b-4281-b951-d872f2087c98
* Add two more error codes to net.rvargas@google.com2009-05-072-2/+9
| | | | | | | | | BUG=9952 TEST=none Review URL: http://codereview.chromium.org/115006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15488 0039d316-1c4b-4281-b951-d872f2087c98
* Fix up some unit tests for HostResolver:wtc@chromium.org2009-05-071-4/+55
| | | | | | | | | | | | | | | | | | | | | | | - When testing IPv4 addresses, use a pass-through HostMapper. The previous version wasn't actually testing anything, because there's a default HostMapper which maps all unknown inputs to 127.0.0.1 - Make sure bare IPv6 literals can be resolved. This was going to handle [brackets], but we've decided these should be stripped at a higher layer. - Add an empty address test. The patch is contributed by Paul Marks of Google. Original review: http://codereview.chromium.org/113026 R=wtc BUG=N/A TEST=N/A Review URL: http://codereview.chromium.org/113066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15483 0039d316-1c4b-4281-b951-d872f2087c98
* Temporarily disable gconf usage from ProxyConfigServiceLinux because of Glib ↵deanm@chromium.org2009-05-062-0/+5
| | | | | | | | | | | | | races. Patch by Stephane Doyon. BUG=11442 Review URL: http://codereview.chromium.org/109040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15404 0039d316-1c4b-4281-b951-d872f2087c98
* A utility driver for doing client/server HTTP transactionmbelshe@google.com2009-05-0611-0/+732
| | | | | | | | | | | | tests. This is an initial codebase - there is a lot of work to do. But I wanted to get an initial version checked in. http://crbug.com/6754 Review URL: http://codereview.chromium.org/99333 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15360 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a browser crash when reading the disk cache experiment datarvargas@google.com2009-05-041-5/+6
| | | | | | | | | | | after failing to map the index file. BUG=11414 TEST=none Review URL: http://codereview.chromium.org/100349 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15235 0039d316-1c4b-4281-b951-d872f2087c98
* Get rid of the static next_id_ counter, to make construction of ProxyConfig ↵ericroman@google.com2009-05-044-19/+38
| | | | | | | | | on different threads safe. BUG=11323 Review URL: http://codereview.chromium.org/102023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15209 0039d316-1c4b-4281-b951-d872f2087c98
* linux: obey proxy environment variables in preference to gconfevan@chromium.org2009-05-042-1/+25
| | | | | | | | | | | This fixes a tiny bug, where we were consulting gnome's settings based on whether the DESKTOP_SESSION *wasn't* gnome. TEST=Covered by new unit test. Review URL: http://codereview.chromium.org/100318 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15184 0039d316-1c4b-4281-b951-d872f2087c98
* Change names of SDCH related histograms.jar@chromium.org2009-05-023-37/+37
| | | | | | | | | | | | | | | I now have accumulated too many evolutions of histograms for SDCH, and it is getting harder to pull out the most recent set from the lengthly list (and confusing other folks). I've created a new prefix of "Sdch2." rather than "Sdch." for all the histogram names. I also include a few lint fixups on DCHECKs. r=rafaelw Review URL: http://codereview.chromium.org/100275 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15129 0039d316-1c4b-4281-b951-d872f2087c98
* This CL makes Chrome on par with Firefox in terms of 'GetSuggestedFilename' ↵jungshik@google.com2009-05-014-94/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | | for file download via context-menu. For a download initiated with a click on a link in a web page, a webkit-side change is necessary, which will be done later. Add a field (referrer_charset) to URLRequestContext and DownloadCreateInfo. It's set to the character encoding of a document where the download request originates from when it's known (download initiated via "save as" in the context menu). If it's not known (a download initiated by clicking on a download link or typing a url directly to the omnibox), it's initialized to the default character encoding in the user's preference. I guess this is marginally better than leaving it empty (in that case, step 2b below will be skipped and step 2c will be taken) because a user has a better control over how raw 8bit characters in C-D are interpreted (especially on Windows where a reboot is required to change the OS default codepage). This is later passed to GetSuggestedFilename and used as one of fallback encodings (1. UTF-8, 2. origin_charset, 3. default OS codepage). With this change, we support the following: 1. RFC 2047 2. Raw-8bit-characters : a. UTF-8, b. origin_charset, c. default os codepage. 3. %-escaped UTF-8. In this CL, for #3, I didn't add a fallback similar to one used for #2. If necessary, it can be added easily. New entries are added to 3 existing tests. What's previously not covered (raw 8bit Content-Disposition header) is now covered in all 3 tests. BUG=1148 TEST=net unit test: NetUtilTest.GetFileNameFromCD NetUtilTest.GetSuggestedFilename unittest : DownloadManagerTest.TestDownloadFilename Review URL: http://codereview.chromium.org/83002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15113 0039d316-1c4b-4281-b951-d872f2087c98
* POSIX: Add a macro for handling EINTR.agl@chromium.org2009-05-015-34/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On POSIX systems, system calls can be interrupted by signals. In this case, they'll return EINTR, indicating that the system call needs to be restarted. (The situation is a little more complicated than this with SA_RESTART, but you can read man 7 signal if you like.) The short of it is that you need to catch EINTR and restart the call for these system calls: * read, readv, write, writev, ioctl * open() when dealing with a fifo * wait* * Anything socket based (send*, recv*, connect, accept etc) * flock and lock control with fcntl * mq_ functions which can block * futex * sem_wait (and timed wait) * pause, sigsuspend, sigtimedwait, sigwaitinfo * poll, epoll_wait, select and 'p' versions of the same * msgrcv, msgsnd, semop, semtimedop * close (although, on Linux, EINTR won't happen here) * any sleep functions (careful, you need to handle this are restart with different arguments) We've been a little sloppy with this until now. This patch adds a macro for dealing with this and corrects every case of these system calls (that I found). The macro is HANDLE_EINTR in base/eintr_wrapper.h. It's safe to include on Windows and is a no-op there. On POSIX, it uses GCC magic to return the correct type based on the expression and restarts the system call if it throws EINTR. And you can use it like: HANDLE_EINTR(close(fd)); Or: ssize_t bytes_read = HANDLE_EINTR(read(fd, buffer, len)); *BEWARE* that it will evaluate the argument multiple times, so this is not safe: HANDLE_EINTR(close(FireMissiles())); http://groups.google.com/group/chromium-dev/browse_thread/thread/41a35b2a457d73a0 http://codereview.chromium.org/100225 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15102 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a crash on the SSL logic, when a state transitionrvargas@google.com2009-05-011-5/+9
| | | | | | | | | | | | | to DoHandshakeReadComplete() is performed somewhere else than on DoHandshakeRead(). BUG=11296 TEST=navigate to an SSL page (see the bug, and crbug.com/1135 for a simpler test case). Review URL: http://codereview.chromium.org/100269 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15093 0039d316-1c4b-4281-b951-d872f2087c98
* Set endianness for ARM.thestig@chromium.org2009-05-011-2/+1
| | | | | | Review URL: http://codereview.chromium.org/100271 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15092 0039d316-1c4b-4281-b951-d872f2087c98
* Deprecate wstring version of PathService::Get() in net.thestig@chromium.org2009-05-018-49/+52
| | | | | | Review URL: http://codereview.chromium.org/100240 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15088 0039d316-1c4b-4281-b951-d872f2087c98
* Hand craft an A/B test of SDCH compressionjar@chromium.org2009-04-3012-176/+387
| | | | | | | | | | | | | | | After we're sure we can do SDCH compression to a given URL, toss a 50-50 coin each time we have a chance to advertise SDCH, and either completely avoid advertisement, or advertise (including the dictionary). Histogram both compression download times, as well as the download times for the "completely avoid" case. http://crbug.com/11236 bug=11236 r=wtc,openvcdiff Review URL: http://codereview.chromium.org/100004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15010 0039d316-1c4b-4281-b951-d872f2087c98