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

Side by Side Diff: net/http/http_server_properties.h

Issue 275953002: Remove HTTP pipelining support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix line endings Created 6 years, 7 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/http/http_response_body_drainer_unittest.cc ('k') | net/http/http_server_properties_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_H_ 5 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_H_
6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_H_ 6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/containers/mru_cache.h" 11 #include "base/containers/mru_cache.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "net/base/host_port_pair.h" 14 #include "net/base/host_port_pair.h"
15 #include "net/base/net_export.h" 15 #include "net/base/net_export.h"
16 #include "net/http/http_pipelined_host_capability.h"
17 #include "net/socket/next_proto.h" 16 #include "net/socket/next_proto.h"
18 #include "net/spdy/spdy_framer.h" // TODO(willchan): Reconsider this. 17 #include "net/spdy/spdy_framer.h" // TODO(willchan): Reconsider this.
19 18
20 namespace net { 19 namespace net {
21 20
22 enum AlternateProtocolExperiment { 21 enum AlternateProtocolExperiment {
23 // 200 alternate_protocol servers are loaded (persisted 200 MRU servers). 22 // 200 alternate_protocol servers are loaded (persisted 200 MRU servers).
24 ALTERNATE_PROTOCOL_NOT_PART_OF_EXPERIMENT = 0, 23 ALTERNATE_PROTOCOL_NOT_PART_OF_EXPERIMENT = 0,
25 // 200 alternate_protocol servers are loaded (persisted 1000 MRU servers). 24 // 200 alternate_protocol servers are loaded (persisted 1000 MRU servers).
26 ALTERNATE_PROTOCOL_TRUNCATED_200_SERVERS, 25 ALTERNATE_PROTOCOL_TRUNCATED_200_SERVERS,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 99
101 std::string ToString() const; 100 std::string ToString() const;
102 101
103 uint16 port; 102 uint16 port;
104 AlternateProtocol protocol; 103 AlternateProtocol protocol;
105 }; 104 };
106 105
107 typedef base::MRUCache< 106 typedef base::MRUCache<
108 HostPortPair, PortAlternateProtocolPair> AlternateProtocolMap; 107 HostPortPair, PortAlternateProtocolPair> AlternateProtocolMap;
109 typedef base::MRUCache<HostPortPair, SettingsMap> SpdySettingsMap; 108 typedef base::MRUCache<HostPortPair, SettingsMap> SpdySettingsMap;
110 typedef std::map<HostPortPair,
111 HttpPipelinedHostCapability> PipelineCapabilityMap;
112 109
113 extern const char kAlternateProtocolHeader[]; 110 extern const char kAlternateProtocolHeader[];
114 111
115 // The interface for setting/retrieving the HTTP server properties. 112 // The interface for setting/retrieving the HTTP server properties.
116 // Currently, this class manages servers': 113 // Currently, this class manages servers':
117 // * SPDY support (based on NPN results) 114 // * SPDY support (based on NPN results)
118 // * Alternate-Protocol support 115 // * Alternate-Protocol support
119 // * Spdy Settings (like CWND ID field) 116 // * Spdy Settings (like CWND ID field)
120 class NET_EXPORT HttpServerProperties { 117 class NET_EXPORT HttpServerProperties {
121 public: 118 public:
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 193
197 // Returns all persistent SPDY settings. 194 // Returns all persistent SPDY settings.
198 virtual const SpdySettingsMap& spdy_settings_map() const = 0; 195 virtual const SpdySettingsMap& spdy_settings_map() const = 0;
199 196
200 virtual void SetServerNetworkStats(const HostPortPair& host_port_pair, 197 virtual void SetServerNetworkStats(const HostPortPair& host_port_pair,
201 NetworkStats stats) = 0; 198 NetworkStats stats) = 0;
202 199
203 virtual const NetworkStats* GetServerNetworkStats( 200 virtual const NetworkStats* GetServerNetworkStats(
204 const HostPortPair& host_port_pair) const = 0; 201 const HostPortPair& host_port_pair) const = 0;
205 202
206 virtual HttpPipelinedHostCapability GetPipelineCapability(
207 const HostPortPair& origin) = 0;
208
209 virtual void SetPipelineCapability(
210 const HostPortPair& origin,
211 HttpPipelinedHostCapability capability) = 0;
212
213 virtual void ClearPipelineCapabilities() = 0;
214
215 virtual PipelineCapabilityMap GetPipelineCapabilityMap() const = 0;
216
217 private: 203 private:
218 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); 204 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties);
219 }; 205 };
220 206
221 } // namespace net 207 } // namespace net
222 208
223 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ 209 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_
OLDNEW
« no previous file with comments | « net/http/http_response_body_drainer_unittest.cc ('k') | net/http/http_server_properties_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698