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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |