Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: net/http/http_server_properties_manager.h

Issue 1860343002: SHP 1: Change SupportsSpdy dict to use SchemeHostPort as the key. No change to Pref data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git sync Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
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; 109 base::WeakPtr<HttpServerProperties> GetWeakPtr() override;
110 void Clear() override; 110 void Clear() override;
111 bool SupportsRequestPriority(const HostPortPair& server) override; 111 bool SupportsRequestPriority(const url::SchemeHostPort& server) override;
112 bool GetSupportsSpdy(const HostPortPair& server) override; 112 bool GetSupportsSpdy(const url::SchemeHostPort& server) override;
113 void SetSupportsSpdy(const HostPortPair& server, bool support_spdy) override; 113 void SetSupportsSpdy(const url::SchemeHostPort& server,
114 bool support_spdy) override;
114 bool RequiresHTTP11(const HostPortPair& server) override; 115 bool RequiresHTTP11(const HostPortPair& server) override;
115 void SetHTTP11Required(const HostPortPair& server) override; 116 void SetHTTP11Required(const HostPortPair& server) override;
116 void MaybeForceHTTP11(const HostPortPair& server, 117 void MaybeForceHTTP11(const HostPortPair& server,
117 SSLConfig* ssl_config) override; 118 SSLConfig* ssl_config) override;
118 AlternativeServiceVector GetAlternativeServices( 119 AlternativeServiceVector GetAlternativeServices(
119 const HostPortPair& origin) override; 120 const HostPortPair& origin) override;
120 bool SetAlternativeService(const HostPortPair& origin, 121 bool SetAlternativeService(const HostPortPair& origin,
121 const AlternativeService& alternative_service, 122 const AlternativeService& alternative_service,
122 base::Time expiration) override; 123 base::Time expiration) override;
123 bool SetAlternativeServices(const HostPortPair& origin, 124 bool SetAlternativeServices(const HostPortPair& origin,
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 // Used to get |weak_ptr_| to self on the network thread. 322 // Used to get |weak_ptr_| to self on the network thread.
322 std::unique_ptr<base::WeakPtrFactory<HttpServerPropertiesManager>> 323 std::unique_ptr<base::WeakPtrFactory<HttpServerPropertiesManager>>
323 network_weak_ptr_factory_; 324 network_weak_ptr_factory_;
324 325
325 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); 326 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager);
326 }; 327 };
327 328
328 } // namespace net 329 } // namespace net
329 330
330 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ 331 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_
OLDNEW
« no previous file with comments | « net/http/http_server_properties_impl_unittest.cc ('k') | net/http/http_server_properties_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698