OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_MANAGER_H_ | 5 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ | 6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // provided, it will be fired on the pref thread when everything is done. | 74 // provided, it will be fired on the pref thread when everything is done. |
75 void Clear(const base::Closure& completion); | 75 void Clear(const base::Closure& completion); |
76 | 76 |
77 // ---------------------------------- | 77 // ---------------------------------- |
78 // HttpServerProperties methods: | 78 // HttpServerProperties methods: |
79 // ---------------------------------- | 79 // ---------------------------------- |
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 void SetSupportsSpdy(const HostPortPair& server, bool support_spdy) override; | 85 void SetSupportsSpdy(const HostPortPair& server, bool support_spdy) override; |
85 bool RequiresHTTP11(const HostPortPair& server) override; | 86 bool RequiresHTTP11(const HostPortPair& server) override; |
86 void SetHTTP11Required(const HostPortPair& server) override; | 87 void SetHTTP11Required(const HostPortPair& server) override; |
87 void MaybeForceHTTP11(const HostPortPair& server, | 88 void MaybeForceHTTP11(const HostPortPair& server, |
88 SSLConfig* ssl_config) override; | 89 SSLConfig* ssl_config) override; |
89 AlternativeService GetAlternativeService(const HostPortPair& origin) override; | 90 AlternativeService GetAlternativeService(const HostPortPair& origin) override; |
90 void SetAlternativeService(const HostPortPair& origin, | 91 void SetAlternativeService(const HostPortPair& origin, |
91 const AlternativeService& alternative_service, | 92 const AlternativeService& alternative_service, |
92 double alternative_probability) override; | 93 double alternative_probability) override; |
93 void MarkAlternativeServiceBroken( | 94 void MarkAlternativeServiceBroken( |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 // Used to get |weak_ptr_| to self on the network thread. | 269 // Used to get |weak_ptr_| to self on the network thread. |
269 scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> > | 270 scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> > |
270 network_weak_ptr_factory_; | 271 network_weak_ptr_factory_; |
271 | 272 |
272 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); | 273 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); |
273 }; | 274 }; |
274 | 275 |
275 } // namespace net | 276 } // namespace net |
276 | 277 |
277 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ | 278 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
OLD | NEW |