| 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 <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 base::WeakPtr<HttpServerProperties> GetWeakPtr() override; | 81 base::WeakPtr<HttpServerProperties> GetWeakPtr() override; |
| 82 void Clear() override; | 82 void Clear() override; |
| 83 bool SupportsRequestPriority(const HostPortPair& server) override; | 83 bool SupportsRequestPriority(const HostPortPair& server) override; |
| 84 bool GetSupportsSpdy(const HostPortPair& server) override; | 84 bool GetSupportsSpdy(const HostPortPair& server) override; |
| 85 void SetSupportsSpdy(const HostPortPair& server, bool support_spdy) override; | 85 void SetSupportsSpdy(const HostPortPair& server, bool support_spdy) override; |
| 86 bool RequiresHTTP11(const HostPortPair& server) override; | 86 bool RequiresHTTP11(const HostPortPair& server) override; |
| 87 void SetHTTP11Required(const HostPortPair& server) override; | 87 void SetHTTP11Required(const HostPortPair& server) override; |
| 88 void MaybeForceHTTP11(const HostPortPair& server, | 88 void MaybeForceHTTP11(const HostPortPair& server, |
| 89 SSLConfig* ssl_config) override; | 89 SSLConfig* ssl_config) override; |
| 90 AlternativeService GetAlternativeService(const HostPortPair& origin) override; | 90 AlternativeServiceVector GetAlternativeServices( |
| 91 void SetAlternativeService(const HostPortPair& origin, | 91 const HostPortPair& origin) override; |
| 92 void AddAlternativeService(const HostPortPair& origin, |
| 92 const AlternativeService& alternative_service, | 93 const AlternativeService& alternative_service, |
| 93 double alternative_probability) override; | 94 double alternative_probability) override; |
| 94 void MarkAlternativeServiceBroken( | 95 void MarkAlternativeServiceBroken( |
| 95 const AlternativeService& alternative_service) override; | 96 const AlternativeService& alternative_service) override; |
| 96 void MarkAlternativeServiceRecentlyBroken( | 97 void MarkAlternativeServiceRecentlyBroken( |
| 97 const AlternativeService& alternative_service) override; | 98 const AlternativeService& alternative_service) override; |
| 98 bool IsAlternativeServiceBroken( | 99 bool IsAlternativeServiceBroken( |
| 99 const AlternativeService& alternative_service) const override; | 100 const AlternativeService& alternative_service) const override; |
| 100 bool WasAlternativeServiceRecentlyBroken( | 101 bool WasAlternativeServiceRecentlyBroken( |
| 101 const AlternativeService& alternative_service) override; | 102 const AlternativeService& alternative_service) override; |
| 102 void ConfirmAlternativeService( | 103 void ConfirmAlternativeService( |
| 103 const AlternativeService& alternative_service) override; | 104 const AlternativeService& alternative_service) override; |
| 104 void ClearAlternativeService(const HostPortPair& origin) override; | 105 void ClearAlternativeServices(const HostPortPair& origin) override; |
| 105 const AlternativeServiceMap& alternative_service_map() const override; | 106 const AlternativeServiceMap& alternative_service_map() const override; |
| 106 scoped_ptr<base::Value> GetAlternativeServiceInfoAsValue() const override; | 107 scoped_ptr<base::Value> GetAlternativeServiceInfoAsValue() const override; |
| 107 void SetAlternativeServiceProbabilityThreshold(double threshold) override; | 108 void SetAlternativeServiceProbabilityThreshold(double threshold) override; |
| 108 const SettingsMap& GetSpdySettings( | 109 const SettingsMap& GetSpdySettings( |
| 109 const HostPortPair& host_port_pair) override; | 110 const HostPortPair& host_port_pair) override; |
| 110 bool SetSpdySetting(const HostPortPair& host_port_pair, | 111 bool SetSpdySetting(const HostPortPair& host_port_pair, |
| 111 SpdySettingsIds id, | 112 SpdySettingsIds id, |
| 112 SpdySettingsFlags flags, | 113 SpdySettingsFlags flags, |
| 113 uint32 value) override; | 114 uint32 value) override; |
| 114 void ClearSpdySettings(const HostPortPair& host_port_pair) override; | 115 void ClearSpdySettings(const HostPortPair& host_port_pair) override; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 double alternative_service_probability_threshold_; | 175 double alternative_service_probability_threshold_; |
| 175 | 176 |
| 176 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_; | 177 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_; |
| 177 | 178 |
| 178 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); | 179 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); |
| 179 }; | 180 }; |
| 180 | 181 |
| 181 } // namespace net | 182 } // namespace net |
| 182 | 183 |
| 183 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ | 184 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ |
| OLD | NEW |