summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* Refactor: Change the interface from HostResolver::DisableIPv6() to ↵eroman@chromium.org2009-10-263-11/+12
| | | | | | | | | | HostResolver::SetDefaultAddressFamily(), to make it more general. This came up in a codereview comment, but was after I had checked in. Review URL: http://codereview.chromium.org/303026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30063 0039d316-1c4b-4281-b951-d872f2087c98
* Add a CERT_RDN_ENCODED_BLOB case to CertSubjectCommonNameHasNullwtc@chromium.org2009-10-261-0/+6
| | | | | | | | | | | | | | because we get CERT_RDN_ENCODED_BLOB on machines patched for the CryptoAPI ASN.1 security vulnerabilities. R=rvargas BUG=24190 TEST=the X509CertificateTest.PaypalNullCertParsing test in net_unittests (debug build) should not hit a NOTREACHED() assertion failure when running on a patched Windows machine. Review URL: http://codereview.chromium.org/337014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30057 0039d316-1c4b-4281-b951-d872f2087c98
* Http cache: Make sure that we remove pending transactionsrvargas@google.com2009-10-263-3/+70
| | | | | | | | | | | when they belong to a doomed entry. BUG=25588 TEST=unittests Review URL: http://codereview.chromium.org/335015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30054 0039d316-1c4b-4281-b951-d872f2087c98
* Wildcard the test cases if two or more tests maketimurrrr@chromium.org2009-10-262-5/+2
| | | | | | | | | | | ThreadSanitizer hang. Usually, if several tests hang in the same way, that means there's some common code between them that makes TSAN's address space manager unhappy. Then it's likely that a new test from the same test case exploits the same code and breaks ThreadSanitizer again. BUG=http://code.google.com/p/data-race-test/issues/detail?id=11 TBR=dank Review URL: http://codereview.chromium.org/335024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30043 0039d316-1c4b-4281-b951-d872f2087c98
* Fix DoReadWrite loop in SocketStream.ukai@chromium.org2009-10-261-6/+14
| | | | | | | | | | | | | | If Read in DoReadWrite succeeded synchronously, it failed to call next Read. Changed to call Read repeatedly after a Read finished both in synchronous return and asynchronous return. Also fixes Write case as well. BUG=none TEST=none Review URL: http://codereview.chromium.org/326009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30034 0039d316-1c4b-4281-b951-d872f2087c98
* Disable the FlipNetworkTransactionTes because it crashes TSAN.nsylvain@chromium.org2009-10-251-0/+1
| | | | | | | BUG:25748 Review URL: http://codereview.chromium.org/334021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30026 0039d316-1c4b-4281-b951-d872f2087c98
* Add download metrics into FLIP. They aren't used yet,mbelshe@google.com2009-10-245-60/+288
| | | | | | | | | | | | | | but they do measure accurately. Also add some minor cleanup to the FlipSession and added a new test. There is a lot more cleanup to do in FlipSession. BUG=none TEST=none Review URL: http://codereview.chromium.org/333009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30001 0039d316-1c4b-4281-b951-d872f2087c98
* Look up client certificates in ClientAuthHandler to get rid of manual CAwtc@chromium.org2009-10-242-52/+36
| | | | | | | | | | | | | | | | names list copy. Patch by Jaime Soriano <jsorianopastor@gmail.com>. Original review URL: http://codereview.chromium.org/302004 R=wtc BUG=16830 TEST=Try to connect to a web page that requires SSL authentication and confirm that it connects if and only if a valid certificate is stored in .pki/nssdb database. Review URL: http://codereview.chromium.org/329015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29994 0039d316-1c4b-4281-b951-d872f2087c98
* Simplify the copying of data in HttpStreamParservandebo@chromium.org2009-10-231-17/+25
| | | | | | | | | | | Add a CHECK BUG=25554 TEST=none Review URL: http://codereview.chromium.org/327005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29956 0039d316-1c4b-4281-b951-d872f2087c98
* Move the json-related files into a separate json directory. This hopefully alsobrettw@chromium.org2009-10-232-11/+11
| | | | | | | | | | | makes the naming of string_escape more clear (it's actually JSON-specific). Move the files into the base namespace. TEST=none BUG=none Review URL: http://codereview.chromium.org/316016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29934 0039d316-1c4b-4281-b951-d872f2087c98
* Add dependencies from net_base to bzip2 and zlib.agl@chromium.org2009-10-231-0/+2
| | | | | | | | These were erroneously removed in r29702 and broke the system library build. http://codereview.chromium.org/337003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29907 0039d316-1c4b-4281-b951-d872f2087c98
* Adds support for the <keygen> tag for client certificate enrollmentwtc@chromium.org2009-10-2310-0/+523
| | | | | | | | | | | | | | | | under Linux. Currently, no notifications are given to the user that the certificate was successfully enrolled. Patch by Gaurav Shah <gauravsh@chromium.org> of Google. Original review URL: http://codereview.chromium.org/261035 BUG=148 TEST=Can test on the following sites: http://foaf.me/simple_KEYGEN_CreateClientCertificate.php http://www.myopenid.com Review URL: http://codereview.chromium.org/271112 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29900 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes ChromeFrame net tests which run the URLRequest unit tests by launching ↵ananta@chromium.org2009-10-235-21/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | IE and having it issue the corresponding HTTP requests via automation. Fixes as below:- 1. The DefaultAcceptCharset and DefaultAcceptLanguage tests were failing because the URL request automation job would only read the extra headers from the request. These tests set these headers in the URLRequestContext. We needed to mimic the functionality in the URLRequestHttpJob to add in these headers if they were not already present. As part of this I moved the AppendHeaderIfMissing function from url_request_http_job.cc to HttpUtil as it is needed by the automation job as well. 2. The OverrideAcceptLanguage and OverrideAcceptCharset tests started failing in chrome frame net tests after the fixes to get the default versions of these tests to pass. These tests basically pass in the Accept-Language and Accept-Charset headers and expect the same values to be echoed back. IE ends up caching the responses from the default versions of these tests and thus echoes back the old response which causes these tests to fail. I tried passing in the no-cache header from our HTTP server for the EchoHeader tests but this did not work. To fix this we now pass in the echoheaderoverride parameter for the OverrideAcceptLanguage and OverrideAcceptCharset tests. The HTTP server has been updated to support this. 3. NotifyDone can be called on the job if the original request was redirected. Added a check for whether NotifyDone was already called on the job in URLRequestAutomationJob Review URL: http://codereview.chromium.org/322004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29895 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Check failure in SocketStream::DidRecevieData().ukai@chromium.org2009-10-231-2/+15
| | | | | | | | | | | | Socket::Read() may return 0, that indicates end-of-file. So, if we get 0 as result of Read(), finish the Socket Stream. BUG=none TEST=none Review URL: http://codereview.chromium.org/329006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29886 0039d316-1c4b-4281-b951-d872f2087c98
* Move initialization of ChromeURLRequestContexts to the IO thread.eroman@chromium.org2009-10-233-22/+14
| | | | | | | | | | | | | | | | | | | | | | | Before, these URLRequestContexts were lazily created from the UI thread. Unfortunately that model made it easy for consumers on the UI thread to poke at stuff which was being used from the IO thread, and introduce races. So instead of providing a URLRequestContext*, the Profile now vends a URLRequestContextGetter*. The consequence of this is: * Consumers on the UI thread can no longer get access to a URLRequestContext. * Consumers on the IO thread need to call URLRequestContextGetter::GetURLRequestContext() to get at the context. This uses the same style lazy-creation of URLRequestContexts, albeit from the IO thread. OK, so now the smelly part: There were a couple of consumers of URLRequestContext on the UI thread that can't easily be moved to the IO thread -- these are the consumers of the cookie store. Before they could happily mess with the cookie store from the UI thread, and this was fine since CookieStore is threadsafe. However under the new model, they have no way to get at the URLRequestContext from the UI thread, hence can't get a pointer to the cookie store. To support that use-cases, I bastardized the API some by adding a URLRequestContextGetter::GetCookieStore() method that lets UI thread consumers get a pointer to the cookie store, since we know this particular cross-thread usage is safe. BUG=http://crbug.com/22294 Review URL: http://codereview.chromium.org/258008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29880 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor: Address some style comments from a review (which missed the ↵eroman@chromium.org2009-10-239-24/+40
| | | | | | | | original check-in). Review URL: http://codereview.chromium.org/322009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29874 0039d316-1c4b-4281-b951-d872f2087c98
* Add unittest for WebSocket::ProcessFrameData.ukai@chromium.org2009-10-233-65/+189
| | | | | | | | | | | | | | It catches a bug fixed in r29760. Also find another bug and fixed in this change. (same bug found in WebKit code. reported as http://bugs.webkit.org/show_bug.cgi?id=30668) BUG=none TEST=net_unittests passes Review URL: http://codereview.chromium.org/307036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29864 0039d316-1c4b-4281-b951-d872f2087c98
* Make SSLClientSocketMac full-duplexukai@chromium.org2009-10-232-136/+159
| | | | | | | | | BUG=13289,12497 TEST=visit https site and works as before Review URL: http://codereview.chromium.org/266078 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29863 0039d316-1c4b-4281-b951-d872f2087c98
* Do some cleanup of file path name handling.brettw@chromium.org2009-10-223-66/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | This started trying to cleanup DownloadManager::GenerateFilename which asserts if your system locale isn't UTF-8 (I ran into this when mine got messed up). The solution is to have GetSuggestedFilename return a FilePath rather than calling FromWStringHack. The rest of the patch is a result of trying to write GetSuggestedFilename in a reasonable way. I changed ReplaceIllegalCharacters to work on a FilePath::StringType. Some places in the code calling these functions got cleaner, some got messier. I think overall the ones that got messier are the ones doing sketchy things with paths and the ones that got cleaner are the ones doing things more properly. The only code here that gets called a nontrivial number of times is the weburlloader, and I think the new code does about the same number of string conversions overall (though on certain platforms the number will be higher or lower). BUG=none TEST=none Review URL: http://codereview.chromium.org/271056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29832 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor: Don't send the quit command before killing test server for ↵eroman@chromium.org2009-10-221-2/+1
| | | | | | | | | ProxyScriptFetcherTest.NoCache. Instead we just murder the process directly. Calling HttpTestServer::SendQuit() adds unnecessary latency since we need to wait for the sever to respond. But more importantly it is adding noise to my valgrind race investigation, since SendQuit() spins up its own IO thread to issue requests on (making the test have multiple threads that handle requests). Review URL: http://codereview.chromium.org/320003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29826 0039d316-1c4b-4281-b951-d872f2087c98
* Change the request tracking done by about:net-internals to be per context ↵eroman@chromium.org2009-10-229-293/+309
| | | | | | | | | | | | | | | | | | rather than global accross all contexts. Before there was a singleton "request tracker" (URLRequest::InstanceTracker) that kept track of all outstanding requests and recently completed. Whereas now, each URLRequestContext gets its own "request tracker" (URLRequestTracker) to track the requests associated with that context. This change is to limit the lifetime of information relating to incognito windows. Before you were able to see the recent requests issued by incognito windows even after the last incognito windows was closed (by loading about:net-internals in a non-incognito window). Whereas now you can only see the incognito requests information by loading "about:net-internals" within an incognito tab. And once the last incognito tab is closed, the OTR context is destroyed, which in turn destroys any profiling information that was being stored. BUG=24630 Review URL: http://codereview.chromium.org/295050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29804 0039d316-1c4b-4281-b951-d872f2087c98
* Http Cache: Convert data writes from sysnchronous to asynchronous.rvargas@google.com2009-10-223-43/+138
| | | | | | | | | | BUG=21383 TEST=unit tests (original review for r25873: http://codereview.chromium.org/201065) Review URL: http://codereview.chromium.org/313013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29792 0039d316-1c4b-4281-b951-d872f2087c98
* Disable IPv6 results for the PAC bindings:eroman@chromium.org2009-10-224-15/+87
| | | | | | | | | | | | | | | myIpAddress() dnsResolve() isResolvable() This makes us behave more like IE and less like Firefox for scripts where IPv6 addresses are not expected. BUG=24641 TEST=ProxyResolverJSBindingsTest.DontUseIPv6 Review URL: http://codereview.chromium.org/303022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29788 0039d316-1c4b-4281-b951-d872f2087c98
* Fix calculation of length in websocket.cc.craig.schlenter@chromium.org2009-10-221-1/+1
| | | | | | | | | | The compiler warned about this. See http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-49#section-4.2 for how to calculate the length. Review URL: http://codereview.chromium.org/293055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29760 0039d316-1c4b-4281-b951-d872f2087c98
* Moved patch from 297003 over to committer repository.rolandsteiner@chromium.org2009-10-227-1/+133
| | | | | | | | | | Review: http://codereview.chromium.org/297003 BUG=24846 TEST=URLRequestTest.DataURLImageTest, NetUtilTest.GetSuggestedFilename git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29759 0039d316-1c4b-4281-b951-d872f2087c98
* Expand the options for how FLIP runs. The GFE team needsmbelshe@google.com2009-10-214-5/+30
| | | | | | | | | | | | the ability to run a client with ssl & compression turned off. Update the command line to accomodate. BUG=none TEST=none Review URL: http://codereview.chromium.org/315006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29741 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Fix a race accessing a file's reference counterrvargas@google.com2009-10-211-3/+10
| | | | | | | | | | | from a worker thread. BUG=24307 TEST=current unit tests / valgrind Review URL: http://codereview.chromium.org/309001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29720 0039d316-1c4b-4281-b951-d872f2087c98
* Split net into net and net_base to reduce v8 dependency injection.maruel@chromium.org2009-10-211-12/+71
| | | | | | | | | | Also remove redundant ui_test_utils.* from sync_integration_tests. TEST=still build BUG=22926 Review URL: http://codereview.chromium.org/307023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29702 0039d316-1c4b-4281-b951-d872f2087c98
* Add a mechanism to disable IPv6.eroman@chromium.org2009-10-2115-127/+288
| | | | | | | | | | | | | | | | | | | (1) Adds the ability to specify the address family on a per-request basis. (2) Exposes a --disable-ipv6 flag to chrome that changes the default address family from AF_UNSPEC to AF_INET (same sort of thing Firefox does). (3) Changes the backing datastructure for HostCache:EntryMap and HostResolverImpl::JobMap from a "hash_map" to a "std::map". This was for consistency with other code (when I went to add a custom hash trait, I couldn't find any existing code which was using hashmap for custom keys). (4) Updates about:net-internals to display an address family for the hostcache dump (since it is now a part of the key). This change is in anticipation of turning off IPv6 host resolving in the PAC utility functions (see bug 24641). But it is also a feature addition. BUG=24641 TEST=HostCacheTest.AddressFamilyIsPartOfKey Review URL: http://codereview.chromium.org/302010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29686 0039d316-1c4b-4281-b951-d872f2087c98
* Fix compatibility problems with FileZilla FTP Server.phajdan.jr@chromium.org2009-10-212-8/+31
| | | | | | | | | TEST=Covered by net_unittests. BUG=25316 Review URL: http://codereview.chromium.org/293049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29662 0039d316-1c4b-4281-b951-d872f2087c98
* Don't run WebSocketTest.* under ThreadSanitizer on Mactimurrrr@chromium.org2009-10-211-0/+5
| | | | | | | | BUG=25392 TBR=dank Review URL: http://codereview.chromium.org/293046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29643 0039d316-1c4b-4281-b951-d872f2087c98
* WebSocket protocol handler for live experiment (again)ukai@chromium.org2009-10-214-0/+874
| | | | | | | | | | | | | | This is in-browser-process WebSocket protocol handler, which will be used inWebSocket live experiment. Change WebSocket::Delegate to WebSocketDelegate to avoid compile error on MSVC. BUG=none TEST=net_unittests passes Review URL: http://codereview.chromium.org/300035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29624 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r29614 "WebSocket protocol handler for live experiment."ukai@chromium.org2009-10-214-871/+0
| | | | | | | | | | | | It caused compile error on Modules XP and Vista. TBR=tkent BUG=none TEST=none Review URL: http://codereview.chromium.org/312001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29619 0039d316-1c4b-4281-b951-d872f2087c98
* WebSocket protocol handler for live experiment.ukai@chromium.org2009-10-214-0/+871
| | | | | | | | | | | | This is in-browser-process WebSocket protocol handler, which will be used in WebSocket live experiment. BUG=none TEST=net_unittests passes Review URL: http://codereview.chromium.org/304014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29614 0039d316-1c4b-4281-b951-d872f2087c98
* I had some debug URL handling turned on in chromembelshe@google.com2009-10-212-4/+5
| | | | | | | | | | | | making the use-flip mode not useful unless you were using my test environment. Sorry! BUG=none TEST=none Review URL: http://codereview.chromium.org/292040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29597 0039d316-1c4b-4281-b951-d872f2087c98
* Update eTLD list to stay in sync with Mozilla. Also correct the URL atop ↵pkasting@chromium.org2009-10-202-2/+14
| | | | | | | | | | the file to point to the Hg Mozilla repo, not the CVS repo. BUG=none TEST=none Review URL: http://codereview.chromium.org/307013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29577 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a data race found by ThreadSanitizer in LoadLog::Release().eroman@chromium.org2009-10-201-2/+3
| | | | | | | | | | | | The scoped_refptr's destructor was being called at the very end of the function scope. This meant that worker_log->Release() was called *after* PostTask(). However since the posted task also called worker_log->Release() (but from a different thread) this was a race. BUG=22272 Review URL: http://codereview.chromium.org/308005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29551 0039d316-1c4b-4281-b951-d872f2087c98
* Fixup the flip_framer eof-handling semantics now that we havembelshe@google.com2009-10-207-90/+257
| | | | | | | | | | | | | | | | | | the FIN bit in place. The FlipFrameVisitor will always inject a zero-length data packet to the Visitor as a signal that the data stream is complete. Even if the FIN packet was set on a SYN_REPLY (e.g. there are no data packets), the FlipFramer will simulate a zero-length read to the caller. Likewise, zero-length reads are never sent to the visitor unless the FIN packet has been received. This means that the FlipFramer must swallow zero-length data packets. Also merged in changes from server. BUG=none TEST=flip_framer_test.cc Review URL: http://codereview.chromium.org/294015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29513 0039d316-1c4b-4281-b951-d872f2087c98
* Remove some unnecessary manual AddRef/Release.eroman@chromium.org2009-10-201-9/+0
| | | | | | | | | | | These aren't needed since NewRunnableMethod() already holds a reference, ensuring it can't be deleted while tasks are outstanding. BUG=none. TEST=continue to pass existing unit tests, especially when run under valgrind. Review URL: http://codereview.chromium.org/269037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29485 0039d316-1c4b-4281-b951-d872f2087c98
* Display the full address list rather than just the first item, in ↵eroman@chromium.org2009-10-192-8/+22
| | | | | | | | | | | | | about:net-internals. This is useful when debugging IPv6 issues since you can see what the fallbacks are. BUG=none TEST=none Review URL: http://codereview.chromium.org/271061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29419 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor HttpNetworkTransaction so that HttpStream is responsible for ↵vandebo@chromium.org2009-10-1710-634/+1255
| | | | | | | | | | | | | parsing the Http traffic. HttpBasicStream delegates parsing to HttpStreamParser in preparation for HttpPipelinedStream. Original review: http://codereview.chromium.org/249031 BUG=13289 TEST=unittests Review URL: http://codereview.chromium.org/283022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29379 0039d316-1c4b-4281-b951-d872f2087c98
* Enable Mac EV cert validation w/o requiring the user to explicitly enable ↵hawk@chromium.org2009-10-161-6/+4
| | | | | | | | | | revocation checking BUG=none TEST=https://www.paypal.com and other EV sites should have green text to the right of the lock icon in the address field Review URL: http://codereview.chromium.org/283005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29352 0039d316-1c4b-4281-b951-d872f2087c98
* Http Cache: Enable byte-range support by default.rvargas@google.com2009-10-161-4/+4
| | | | | | | | | | | | | | | The command line parameter to modify the behavior changes from --enable-byte-range-support to --disable-byte-range-support BUG=24989 TEST= current tests Review URL: http://codereview.chromium.org/267132 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29337 0039d316-1c4b-4281-b951-d872f2087c98
* Adding support for Reset in StringTokenizerT and HttpHeadersIterator.tommi@chromium.org2009-10-162-0/+17
| | | | | | | | | TEST=Run HeadersIterator_Reset and the Reset test for StringTokenizer BUG=none Review URL: http://codereview.chromium.org/276067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29330 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 29316.vandebo@chromium.org2009-10-1610-1255/+634
| | | | | | Review URL: http://codereview.chromium.org/292002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29320 0039d316-1c4b-4281-b951-d872f2087c98
* Mark flaky FTP tests as flaky.phajdan.jr@chromium.org2009-10-161-5/+10
| | | | | | | | | TEST=none BUG=25045 Review URL: http://codereview.chromium.org/284013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29319 0039d316-1c4b-4281-b951-d872f2087c98
* Classify more types of input as queries.pkasting@chromium.org2009-10-163-0/+90
| | | | | | | | | | | | This adds an oracle that can determine if a hostname is RFC 1738 compliant; if we get a hostname that's not an IP address and not compliant here, we almost certainly have a query. This also rejects "ports" that don't consist of a number between 0 and 65535 (e.g. port "abc" or port "123456"). BUG=18817 TEST=The string "foo: bar" (with quotes) should default to search, not navigate, in the address bar. Review URL: http://codereview.chromium.org/271116 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29317 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor HttpNetworkTransaction so that HttpStream is responsible for ↵vandebo@chromium.org2009-10-1610-634/+1255
| | | | | | | | | | | parsing the Http traffic. HttpBasicStream delegates parsing to HttpStreamParser in preparation for HttpPipelinedStream. BUG=13289 TEST=unittests Review URL: http://codereview.chromium.org/249031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29316 0039d316-1c4b-4281-b951-d872f2087c98
* HTTP Cache: Apply all freshness tests to Partial content entries.rvargas@google.com2009-10-163-4/+29
| | | | | | | | | BUG=24057 TEST=unittest Review URL: http://codereview.chromium.org/267122 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29301 0039d316-1c4b-4281-b951-d872f2087c98
* Mark some disabled tests as flaky to increase test coverage.phajdan.jr@chromium.org2009-10-161-3/+3
| | | | | | | | | | | | When a test doesn't hang or crash, it can run on the bots and on developers' machines. BUG=none TEST=none Review URL: http://codereview.chromium.org/269104 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29279 0039d316-1c4b-4281-b951-d872f2087c98