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

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

Issue 1158823005: HttpServerProperties - Don't persist if SetServerNetworkStats is called (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update_http_props
Patch Set: Always update memory cache Created 5 years, 6 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 bool SetSpdySetting(const HostPortPair& host_port_pair, 109 bool SetSpdySetting(const HostPortPair& host_port_pair,
110 SpdySettingsIds id, 110 SpdySettingsIds id,
111 SpdySettingsFlags flags, 111 SpdySettingsFlags flags,
112 uint32 value) override; 112 uint32 value) override;
113 void ClearSpdySettings(const HostPortPair& host_port_pair) override; 113 void ClearSpdySettings(const HostPortPair& host_port_pair) override;
114 void ClearAllSpdySettings() override; 114 void ClearAllSpdySettings() override;
115 const SpdySettingsMap& spdy_settings_map() const override; 115 const SpdySettingsMap& spdy_settings_map() const override;
116 bool GetSupportsQuic(IPAddressNumber* last_address) const override; 116 bool GetSupportsQuic(IPAddressNumber* last_address) const override;
117 void SetSupportsQuic(bool used_quic, 117 void SetSupportsQuic(bool used_quic,
118 const IPAddressNumber& last_address) override; 118 const IPAddressNumber& last_address) override;
119 void SetServerNetworkStats(const HostPortPair& host_port_pair, 119 bool SetServerNetworkStats(const HostPortPair& host_port_pair,
120 ServerNetworkStats stats) override; 120 ServerNetworkStats stats) override;
121 const ServerNetworkStats* GetServerNetworkStats( 121 const ServerNetworkStats* GetServerNetworkStats(
122 const HostPortPair& host_port_pair) override; 122 const HostPortPair& host_port_pair) override;
123 const ServerNetworkStatsMap& server_network_stats_map() const override; 123 const ServerNetworkStatsMap& server_network_stats_map() const override;
124 124
125 protected: 125 protected:
126 // The location where ScheduleUpdatePrefsOnNetworkThread was called. 126 // The location where ScheduleUpdatePrefsOnNetworkThread was called.
127 enum Location { 127 enum Location {
128 SUPPORTS_SPDY = 0, 128 SUPPORTS_SPDY = 0,
129 HTTP_11_REQUIRED = 1, 129 HTTP_11_REQUIRED = 1,
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 // Used to get |weak_ptr_| to self on the network thread. 268 // Used to get |weak_ptr_| to self on the network thread.
269 scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> > 269 scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> >
270 network_weak_ptr_factory_; 270 network_weak_ptr_factory_;
271 271
272 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); 272 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager);
273 }; 273 };
274 274
275 } // namespace net 275 } // namespace net
276 276
277 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ 277 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698