Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Unified Diff: net/http/http_pipelined_host.h

Issue 8833003: Revert 113315 (speculative revert for http://crbug.com/106657) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/http/http_pipelined_host.h
===================================================================
--- net/http/http_pipelined_host.h (revision 113337)
+++ net/http/http_pipelined_host.h (working copy)
@@ -6,15 +6,14 @@
#define NET_HTTP_HTTP_PIPELINED_HOST_H_
#pragma once
+#include "net/base/host_port_pair.h"
#include "net/base/net_export.h"
#include "net/http/http_pipelined_connection.h"
-#include "net/http/http_pipelined_host_capability.h"
namespace net {
class BoundNetLog;
class ClientSocketHandle;
-class HostPortPair;
class HttpPipelinedStream;
class ProxyInfo;
struct SSLConfig;
@@ -24,6 +23,14 @@
// assigns requests to the least loaded pipelined connection.
class NET_EXPORT_PRIVATE HttpPipelinedHost {
public:
+ enum Capability {
+ UNKNOWN,
+ INCAPABLE,
+ CAPABLE,
+ PROBABLY_CAPABLE, // We are using pipelining, but haven't processed enough
+ // requests to record this host as known to be capable.
+ };
+
class Delegate {
public:
// Called when a pipelined host has no outstanding requests on any of its
@@ -35,9 +42,8 @@
virtual void OnHostHasAdditionalCapacity(HttpPipelinedHost* host) = 0;
// Called when a host determines if pipelining can be used.
- virtual void OnHostDeterminedCapability(
- HttpPipelinedHost* host,
- HttpPipelinedHostCapability capability) = 0;
+ virtual void OnHostDeterminedCapability(HttpPipelinedHost* host,
+ Capability capability) = 0;
};
class Factory {
@@ -48,7 +54,7 @@
virtual HttpPipelinedHost* CreateNewHost(
Delegate* delegate, const HostPortPair& origin,
HttpPipelinedConnection::Factory* factory,
- HttpPipelinedHostCapability capability) = 0;
+ Capability capability) = 0;
};
virtual ~HttpPipelinedHost() {}
« no previous file with comments | « chrome/browser/net/http_server_properties_manager_unittest.cc ('k') | net/http/http_pipelined_host_capability.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698