OLD | NEW |
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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 // Gets a weak pointer for this object. | 219 // Gets a weak pointer for this object. |
220 virtual base::WeakPtr<HttpServerProperties> GetWeakPtr() = 0; | 220 virtual base::WeakPtr<HttpServerProperties> GetWeakPtr() = 0; |
221 | 221 |
222 // Deletes all data. | 222 // Deletes all data. |
223 virtual void Clear() = 0; | 223 virtual void Clear() = 0; |
224 | 224 |
225 // Returns true if |server| supports a network protocol which honors | 225 // Returns true if |server| supports a network protocol which honors |
226 // request prioritization. | 226 // request prioritization. |
227 virtual bool SupportsRequestPriority(const HostPortPair& server) = 0; | 227 virtual bool SupportsRequestPriority(const HostPortPair& server) = 0; |
228 | 228 |
| 229 // Returns the value set by SetSupportsSpdy(). If not set, returns false. |
| 230 virtual bool GetSupportsSpdy(const HostPortPair& server) = 0; |
| 231 |
229 // Add |server| into the persistent store. Should only be called from IO | 232 // Add |server| into the persistent store. Should only be called from IO |
230 // thread. | 233 // thread. |
231 virtual void SetSupportsSpdy(const HostPortPair& server, | 234 virtual void SetSupportsSpdy(const HostPortPair& server, |
232 bool support_spdy) = 0; | 235 bool support_spdy) = 0; |
233 | 236 |
234 // Returns true if |server| has required HTTP/1.1 via HTTP/2 error code. | 237 // Returns true if |server| has required HTTP/1.1 via HTTP/2 error code. |
235 virtual bool RequiresHTTP11(const HostPortPair& server) = 0; | 238 virtual bool RequiresHTTP11(const HostPortPair& server) = 0; |
236 | 239 |
237 // Require HTTP/1.1 on subsequent connections. Not persisted. | 240 // Require HTTP/1.1 on subsequent connections. Not persisted. |
238 virtual void SetHTTP11Required(const HostPortPair& server) = 0; | 241 virtual void SetHTTP11Required(const HostPortPair& server) = 0; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 | 330 |
328 virtual const ServerNetworkStatsMap& server_network_stats_map() const = 0; | 331 virtual const ServerNetworkStatsMap& server_network_stats_map() const = 0; |
329 | 332 |
330 private: | 333 private: |
331 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); | 334 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); |
332 }; | 335 }; |
333 | 336 |
334 } // namespace net | 337 } // namespace net |
335 | 338 |
336 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ | 339 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
OLD | NEW |