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

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

Issue 253903002: SPDY - persist 300 most recently used servers that support SPDY to preferences file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Persist 300 MRU servers that support SPDY 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 | « content/browser/loader/resource_scheduler.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"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 HttpServerProperties() {} 114 HttpServerProperties() {}
115 virtual ~HttpServerProperties() {} 115 virtual ~HttpServerProperties() {}
116 116
117 // Gets a weak pointer for this object. 117 // Gets a weak pointer for this object.
118 virtual base::WeakPtr<HttpServerProperties> GetWeakPtr() = 0; 118 virtual base::WeakPtr<HttpServerProperties> GetWeakPtr() = 0;
119 119
120 // Deletes all data. 120 // Deletes all data.
121 virtual void Clear() = 0; 121 virtual void Clear() = 0;
122 122
123 // Returns true if |server| supports SPDY. 123 // Returns true if |server| supports SPDY.
124 virtual bool SupportsSpdy(const HostPortPair& server) const = 0; 124 virtual bool SupportsSpdy(const HostPortPair& server) = 0;
125 125
126 // Add |server| into the persistent store. Should only be called from IO 126 // Add |server| into the persistent store. Should only be called from IO
127 // thread. 127 // thread.
128 virtual void SetSupportsSpdy(const HostPortPair& server, 128 virtual void SetSupportsSpdy(const HostPortPair& server,
129 bool support_spdy) = 0; 129 bool support_spdy) = 0;
130 130
131 // Returns true if |server| has an Alternate-Protocol header. 131 // Returns true if |server| has an Alternate-Protocol header.
132 virtual bool HasAlternateProtocol(const HostPortPair& server) = 0; 132 virtual bool HasAlternateProtocol(const HostPortPair& server) = 0;
133 133
134 // Returns the Alternate-Protocol and port for |server|. 134 // Returns the Alternate-Protocol and port for |server|.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 195
196 virtual PipelineCapabilityMap GetPipelineCapabilityMap() const = 0; 196 virtual PipelineCapabilityMap GetPipelineCapabilityMap() const = 0;
197 197
198 private: 198 private:
199 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); 199 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties);
200 }; 200 };
201 201
202 } // namespace net 202 } // namespace net
203 203
204 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ 204 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_
OLDNEW
« no previous file with comments | « content/browser/loader/resource_scheduler.cc ('k') | net/http/http_server_properties_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698