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

Unified Diff: net/http/http_pipelined_host_pool.h

Issue 8770035: Save pipelining capabilities for the most used hosts between sessions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged 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
« no previous file with comments | « net/http/http_pipelined_host_impl_unittest.cc ('k') | net/http/http_pipelined_host_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_pipelined_host_pool.h
diff --git a/net/http/http_pipelined_host_pool.h b/net/http/http_pipelined_host_pool.h
index 3be0cb51e9eb4d56ebabc012c8efebd764b20bb7..67a0b01390ae523fecf9214067b285e368d1e1ca 100644
--- a/net/http/http_pipelined_host_pool.h
+++ b/net/http/http_pipelined_host_pool.h
@@ -10,14 +10,15 @@
#include "base/basictypes.h"
#include "base/gtest_prod_util.h"
-#include "base/memory/mru_cache.h"
#include "base/memory/scoped_ptr.h"
#include "net/http/http_pipelined_host.h"
+#include "net/http/http_pipelined_host_capability.h"
namespace net {
class HostPortPair;
class HttpPipelinedStream;
+class HttpServerProperties;
// Manages all of the pipelining state for specific host with active pipelined
// HTTP requests. Manages connection jobs, constructs pipelined streams, and
@@ -34,7 +35,8 @@ class NET_EXPORT_PRIVATE HttpPipelinedHostPool
};
HttpPipelinedHostPool(Delegate* delegate,
- HttpPipelinedHost::Factory* factory);
+ HttpPipelinedHost::Factory* factory,
+ HttpServerProperties* http_server_properties_);
virtual ~HttpPipelinedHostPool();
// Returns true if pipelining might work for |origin|. Generally, this returns
@@ -67,22 +69,18 @@ class NET_EXPORT_PRIVATE HttpPipelinedHostPool
virtual void OnHostDeterminedCapability(
HttpPipelinedHost* host,
- HttpPipelinedHost::Capability capability) OVERRIDE;
+ HttpPipelinedHostCapability capability) OVERRIDE;
private:
- typedef base::MRUCache<HostPortPair,
- HttpPipelinedHost::Capability> CapabilityMap;
typedef std::map<const HostPortPair, HttpPipelinedHost*> HostMap;
HttpPipelinedHost* GetPipelinedHost(const HostPortPair& origin,
bool create_if_not_found);
- HttpPipelinedHost::Capability GetHostCapability(const HostPortPair& origin);
-
Delegate* delegate_;
scoped_ptr<HttpPipelinedHost::Factory> factory_;
HostMap host_map_;
- CapabilityMap known_capability_map_;
+ HttpServerProperties* http_server_properties_;
DISALLOW_COPY_AND_ASSIGN(HttpPipelinedHostPool);
};
« no previous file with comments | « net/http/http_pipelined_host_impl_unittest.cc ('k') | net/http/http_pipelined_host_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698