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

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

Issue 1866983006: SHP 2: Change SpdySettingsMap to use SchemeHostPort as the key. No change to Pref data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SHP_1
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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 const AlternativeService& alternative_service) const override; 132 const AlternativeService& alternative_service) const override;
133 bool WasAlternativeServiceRecentlyBroken( 133 bool WasAlternativeServiceRecentlyBroken(
134 const AlternativeService& alternative_service) override; 134 const AlternativeService& alternative_service) override;
135 void ConfirmAlternativeService( 135 void ConfirmAlternativeService(
136 const AlternativeService& alternative_service) override; 136 const AlternativeService& alternative_service) override;
137 void ClearAlternativeServices(const HostPortPair& origin) override; 137 void ClearAlternativeServices(const HostPortPair& origin) override;
138 const AlternativeServiceMap& alternative_service_map() const override; 138 const AlternativeServiceMap& alternative_service_map() const override;
139 std::unique_ptr<base::Value> GetAlternativeServiceInfoAsValue() 139 std::unique_ptr<base::Value> GetAlternativeServiceInfoAsValue()
140 const override; 140 const override;
141 const SettingsMap& GetSpdySettings( 141 const SettingsMap& GetSpdySettings(
142 const HostPortPair& host_port_pair) override; 142 const url::SchemeHostPort& server) override;
143 bool SetSpdySetting(const HostPortPair& host_port_pair, 143 bool SetSpdySetting(const url::SchemeHostPort& server,
144 SpdySettingsIds id, 144 SpdySettingsIds id,
145 SpdySettingsFlags flags, 145 SpdySettingsFlags flags,
146 uint32_t value) override; 146 uint32_t value) override;
147 void ClearSpdySettings(const HostPortPair& host_port_pair) override; 147 void ClearSpdySettings(const url::SchemeHostPort& server) override;
148 void ClearAllSpdySettings() override; 148 void ClearAllSpdySettings() override;
149 const SpdySettingsMap& spdy_settings_map() const override; 149 const SpdySettingsMap& spdy_settings_map() const override;
150 bool GetSupportsQuic(IPAddress* last_address) const override; 150 bool GetSupportsQuic(IPAddress* last_address) const override;
151 void SetSupportsQuic(bool used_quic, const IPAddress& last_address) override; 151 void SetSupportsQuic(bool used_quic, const IPAddress& last_address) override;
152 void SetServerNetworkStats(const HostPortPair& host_port_pair, 152 void SetServerNetworkStats(const HostPortPair& host_port_pair,
153 ServerNetworkStats stats) override; 153 ServerNetworkStats stats) override;
154 const ServerNetworkStats* GetServerNetworkStats( 154 const ServerNetworkStats* GetServerNetworkStats(
155 const HostPortPair& host_port_pair) override; 155 const HostPortPair& host_port_pair) override;
156 const ServerNetworkStatsMap& server_network_stats_map() const override; 156 const ServerNetworkStatsMap& server_network_stats_map() const override;
157 bool SetQuicServerInfo(const QuicServerId& server_id, 157 bool SetQuicServerInfo(const QuicServerId& server_id,
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 AddToAlternativeServiceMap); 249 AddToAlternativeServiceMap);
250 FRIEND_TEST_ALL_PREFIXES(HttpServerPropertiesManagerTest, 250 FRIEND_TEST_ALL_PREFIXES(HttpServerPropertiesManagerTest,
251 DoNotLoadExpiredAlternativeService); 251 DoNotLoadExpiredAlternativeService);
252 void OnHttpServerPropertiesChanged(); 252 void OnHttpServerPropertiesChanged();
253 253
254 bool AddServersData(const base::DictionaryValue& server_dict, 254 bool AddServersData(const base::DictionaryValue& server_dict,
255 ServerList* spdy_servers, 255 ServerList* spdy_servers,
256 SpdySettingsMap* spdy_settings_map, 256 SpdySettingsMap* spdy_settings_map,
257 AlternativeServiceMap* alternative_service_map, 257 AlternativeServiceMap* alternative_service_map,
258 ServerNetworkStatsMap* network_stats_map); 258 ServerNetworkStatsMap* network_stats_map);
259 void AddToSpdySettingsMap(const HostPortPair& server, 259 void AddToSpdySettingsMap(const url::SchemeHostPort& server,
260 const base::DictionaryValue& server_dict, 260 const base::DictionaryValue& server_dict,
261 SpdySettingsMap* spdy_settings_map); 261 SpdySettingsMap* spdy_settings_map);
262 bool ParseAlternativeServiceDict( 262 bool ParseAlternativeServiceDict(
263 const base::DictionaryValue& alternative_service_dict, 263 const base::DictionaryValue& alternative_service_dict,
264 const std::string& server_str, 264 const std::string& server_str,
265 AlternativeServiceInfo* alternative_service_info); 265 AlternativeServiceInfo* alternative_service_info);
266 bool AddToAlternativeServiceMap( 266 bool AddToAlternativeServiceMap(
267 const HostPortPair& server, 267 const HostPortPair& server,
268 const base::DictionaryValue& server_dict, 268 const base::DictionaryValue& server_dict,
269 AlternativeServiceMap* alternative_service_map); 269 AlternativeServiceMap* alternative_service_map);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 // Used to get |weak_ptr_| to self on the network thread. 322 // Used to get |weak_ptr_| to self on the network thread.
323 std::unique_ptr<base::WeakPtrFactory<HttpServerPropertiesManager>> 323 std::unique_ptr<base::WeakPtrFactory<HttpServerPropertiesManager>>
324 network_weak_ptr_factory_; 324 network_weak_ptr_factory_;
325 325
326 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); 326 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager);
327 }; 327 };
328 328
329 } // namespace net 329 } // namespace net
330 330
331 #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