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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 int version_number); | 99 int version_number); |
100 | 100 |
101 // Deletes all data. Works asynchronously, but if a |completion| callback is | 101 // Deletes all data. Works asynchronously, but if a |completion| callback is |
102 // provided, it will be fired on the pref thread when everything is done. | 102 // provided, it will be fired on the pref thread when everything is done. |
103 void Clear(const base::Closure& completion); | 103 void Clear(const base::Closure& completion); |
104 | 104 |
105 // ---------------------------------- | 105 // ---------------------------------- |
106 // HttpServerProperties methods: | 106 // HttpServerProperties methods: |
107 // ---------------------------------- | 107 // ---------------------------------- |
108 | 108 |
109 base::WeakPtr<HttpServerProperties> GetWeakPtr() override; | |
110 void Clear() override; | 109 void Clear() override; |
111 bool SupportsRequestPriority(const url::SchemeHostPort& server) override; | 110 bool SupportsRequestPriority(const url::SchemeHostPort& server) override; |
112 bool GetSupportsSpdy(const url::SchemeHostPort& server) override; | 111 bool GetSupportsSpdy(const url::SchemeHostPort& server) override; |
113 void SetSupportsSpdy(const url::SchemeHostPort& server, | 112 void SetSupportsSpdy(const url::SchemeHostPort& server, |
114 bool support_spdy) override; | 113 bool support_spdy) override; |
115 bool RequiresHTTP11(const HostPortPair& server) override; | 114 bool RequiresHTTP11(const HostPortPair& server) override; |
116 void SetHTTP11Required(const HostPortPair& server) override; | 115 void SetHTTP11Required(const HostPortPair& server) override; |
117 void MaybeForceHTTP11(const HostPortPair& server, | 116 void MaybeForceHTTP11(const HostPortPair& server, |
118 SSLConfig* ssl_config) override; | 117 SSLConfig* ssl_config) override; |
119 AlternativeServiceVector GetAlternativeServices( | 118 AlternativeServiceVector GetAlternativeServices( |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 // Used to get |weak_ptr_| to self on the network thread. | 321 // Used to get |weak_ptr_| to self on the network thread. |
323 std::unique_ptr<base::WeakPtrFactory<HttpServerPropertiesManager>> | 322 std::unique_ptr<base::WeakPtrFactory<HttpServerPropertiesManager>> |
324 network_weak_ptr_factory_; | 323 network_weak_ptr_factory_; |
325 | 324 |
326 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); | 325 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); |
327 }; | 326 }; |
328 | 327 |
329 } // namespace net | 328 } // namespace net |
330 | 329 |
331 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ | 330 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
OLD | NEW |