| 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_IMPL_H_ | 5 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ |
| 6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ | 6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 virtual void Clear() OVERRIDE; | 80 virtual void Clear() OVERRIDE; |
| 81 | 81 |
| 82 // Returns true if |server| supports SPDY. | 82 // Returns true if |server| supports SPDY. |
| 83 virtual bool SupportsSpdy(const HostPortPair& server) const OVERRIDE; | 83 virtual bool SupportsSpdy(const HostPortPair& server) const OVERRIDE; |
| 84 | 84 |
| 85 // Add |server| into the persistent store. | 85 // Add |server| into the persistent store. |
| 86 virtual void SetSupportsSpdy(const HostPortPair& server, | 86 virtual void SetSupportsSpdy(const HostPortPair& server, |
| 87 bool support_spdy) OVERRIDE; | 87 bool support_spdy) OVERRIDE; |
| 88 | 88 |
| 89 // Returns true if |server| has an Alternate-Protocol header. | 89 // Returns true if |server| has an Alternate-Protocol header. |
| 90 virtual bool HasAlternateProtocol(const HostPortPair& server) OVERRIDE; | 90 virtual bool HasAlternateProtocol(const HostPortPair& server) const OVERRIDE; |
| 91 | 91 |
| 92 // Returns the Alternate-Protocol and port for |server|. | 92 // Returns the Alternate-Protocol and port for |server|. |
| 93 // HasAlternateProtocol(server) must be true. | 93 // HasAlternateProtocol(server) must be true. |
| 94 virtual PortAlternateProtocolPair GetAlternateProtocol( | 94 virtual PortAlternateProtocolPair GetAlternateProtocol( |
| 95 const HostPortPair& server) OVERRIDE; | 95 const HostPortPair& server) const OVERRIDE; |
| 96 | 96 |
| 97 // Sets the Alternate-Protocol for |server|. | 97 // Sets the Alternate-Protocol for |server|. |
| 98 virtual void SetAlternateProtocol( | 98 virtual void SetAlternateProtocol( |
| 99 const HostPortPair& server, | 99 const HostPortPair& server, |
| 100 uint16 alternate_port, | 100 uint16 alternate_port, |
| 101 AlternateProtocol alternate_protocol) OVERRIDE; | 101 AlternateProtocol alternate_protocol) OVERRIDE; |
| 102 | 102 |
| 103 // Sets the Alternate-Protocol for |server| to be BROKEN. | 103 // Sets the Alternate-Protocol for |server| to be BROKEN. |
| 104 virtual void SetBrokenAlternateProtocol(const HostPortPair& server) OVERRIDE; | 104 virtual void SetBrokenAlternateProtocol(const HostPortPair& server) OVERRIDE; |
| 105 | 105 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 CanonicalSufficList canoncial_suffixes_; | 172 CanonicalSufficList canoncial_suffixes_; |
| 173 | 173 |
| 174 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_; | 174 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_; |
| 175 | 175 |
| 176 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); | 176 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); |
| 177 }; | 177 }; |
| 178 | 178 |
| 179 } // namespace net | 179 } // namespace net |
| 180 | 180 |
| 181 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ | 181 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ |
| OLD | NEW |