| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 typedef std::map<AlternativeService, int> RecentlyBrokenAlternativeServices; | 154 typedef std::map<AlternativeService, int> RecentlyBrokenAlternativeServices; |
| 155 | 155 |
| 156 // Return the iterator for |server|, or for its canonical host, or end. | 156 // Return the iterator for |server|, or for its canonical host, or end. |
| 157 AlternativeServiceMap::const_iterator GetAlternateProtocolIterator( | 157 AlternativeServiceMap::const_iterator GetAlternateProtocolIterator( |
| 158 const url::SchemeHostPort& server); | 158 const url::SchemeHostPort& server); |
| 159 | 159 |
| 160 // Return the canonical host for |server|, or end if none exists. | 160 // Return the canonical host for |server|, or end if none exists. |
| 161 CanonicalHostMap::const_iterator GetCanonicalHost( | 161 CanonicalHostMap::const_iterator GetCanonicalHost( |
| 162 const url::SchemeHostPort& server) const; | 162 const url::SchemeHostPort& server) const; |
| 163 | 163 |
| 164 // Remove the cononical host for |server| if |server| is the value in the map. | 164 // Remove the cononical host for |server|. |
| 165 void RemoveCanonicalHost(const url::SchemeHostPort& server); | 165 void RemoveCanonicalHost(const url::SchemeHostPort& server); |
| 166 void ExpireBrokenAlternateProtocolMappings(); | 166 void ExpireBrokenAlternateProtocolMappings(); |
| 167 void ScheduleBrokenAlternateProtocolMappingsExpiration(); | 167 void ScheduleBrokenAlternateProtocolMappingsExpiration(); |
| 168 | 168 |
| 169 SpdyServersMap spdy_servers_map_; | 169 SpdyServersMap spdy_servers_map_; |
| 170 Http11ServerHostPortSet http11_servers_; | 170 Http11ServerHostPortSet http11_servers_; |
| 171 | 171 |
| 172 AlternativeServiceMap alternative_service_map_; | 172 AlternativeServiceMap alternative_service_map_; |
| 173 BrokenAlternativeServices broken_alternative_services_; | 173 BrokenAlternativeServices broken_alternative_services_; |
| 174 // Class invariant: Every alternative service in broken_alternative_services_ | 174 // Class invariant: Every alternative service in broken_alternative_services_ |
| (...skipping 15 matching lines...) Expand all Loading... |
| 190 size_t max_server_configs_stored_in_properties_; | 190 size_t max_server_configs_stored_in_properties_; |
| 191 | 191 |
| 192 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_; | 192 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_; |
| 193 | 193 |
| 194 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); | 194 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); |
| 195 }; | 195 }; |
| 196 | 196 |
| 197 } // namespace net | 197 } // namespace net |
| 198 | 198 |
| 199 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ | 199 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ |
| OLD | NEW |