OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
| 6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
| 7 |
| 8 #include <string> |
| 9 #include <vector> |
| 10 |
| 11 #include "base/basictypes.h" |
| 12 #include "net/base/host_port_pair.h" |
| 13 #include "net/base/net_export.h" |
| 14 |
| 15 namespace net { |
| 16 |
| 17 // The interface for setting/retrieving the HTTP server properties. |
| 18 class NET_EXPORT HttpServerProperties { |
| 19 public: |
| 20 typedef std::vector<std::string> StringVector; |
| 21 |
| 22 HttpServerProperties() {} |
| 23 virtual ~HttpServerProperties() {} |
| 24 |
| 25 // Returns true if |server| supports SPDY. |
| 26 virtual bool SupportsSpdy(const HostPortPair& server) const = 0; |
| 27 |
| 28 // Add |server| into the persistent store. Should only be called from IO |
| 29 // thread. |
| 30 virtual void SetSupportsSpdy(const HostPortPair& server, |
| 31 bool support_spdy) = 0; |
| 32 |
| 33 // Deletes all data. |
| 34 virtual void DeleteAll() = 0; |
| 35 |
| 36 private: |
| 37 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); |
| 38 }; |
| 39 |
| 40 } // namespace net |
| 41 |
| 42 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
OLD | NEW |