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

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

Issue 1572753003: QUIC - Allow cronet apps to specify how many server configs are to be (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments in Patch set 4 Created 4 years, 11 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 <string> 10 #include <string>
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 const IPAddressNumber& last_address) override; 127 const IPAddressNumber& last_address) override;
128 void SetServerNetworkStats(const HostPortPair& host_port_pair, 128 void SetServerNetworkStats(const HostPortPair& host_port_pair,
129 ServerNetworkStats stats) override; 129 ServerNetworkStats stats) override;
130 const ServerNetworkStats* GetServerNetworkStats( 130 const ServerNetworkStats* GetServerNetworkStats(
131 const HostPortPair& host_port_pair) override; 131 const HostPortPair& host_port_pair) override;
132 const ServerNetworkStatsMap& server_network_stats_map() const override; 132 const ServerNetworkStatsMap& server_network_stats_map() const override;
133 bool SetQuicServerInfo(const QuicServerId& server_id, 133 bool SetQuicServerInfo(const QuicServerId& server_id,
134 const std::string& server_info) override; 134 const std::string& server_info) override;
135 const std::string* GetQuicServerInfo(const QuicServerId& server_id) override; 135 const std::string* GetQuicServerInfo(const QuicServerId& server_id) override;
136 const QuicServerInfoMap& quic_server_info_map() const override; 136 const QuicServerInfoMap& quic_server_info_map() const override;
137 size_t max_server_configs_stored_in_properties() const override;
138 void SetMaxServerConfigsStoredInProperties(
139 size_t max_server_configs_stored_in_properties) override;
137 140
138 protected: 141 protected:
139 // The location where ScheduleUpdatePrefsOnNetworkThread was called. 142 // The location where ScheduleUpdatePrefsOnNetworkThread was called.
140 enum Location { 143 enum Location {
141 SUPPORTS_SPDY = 0, 144 SUPPORTS_SPDY = 0,
142 HTTP_11_REQUIRED = 1, 145 HTTP_11_REQUIRED = 1,
143 SET_ALTERNATIVE_SERVICES = 2, 146 SET_ALTERNATIVE_SERVICES = 2,
144 MARK_ALTERNATIVE_SERVICE_BROKEN = 3, 147 MARK_ALTERNATIVE_SERVICE_BROKEN = 3,
145 MARK_ALTERNATIVE_SERVICE_RECENTLY_BROKEN = 4, 148 MARK_ALTERNATIVE_SERVICE_RECENTLY_BROKEN = 4,
146 CONFIRM_ALTERNATIVE_SERVICE = 5, 149 CONFIRM_ALTERNATIVE_SERVICE = 5,
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 // Used to get |weak_ptr_| to self on the network thread. 301 // Used to get |weak_ptr_| to self on the network thread.
299 scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> > 302 scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> >
300 network_weak_ptr_factory_; 303 network_weak_ptr_factory_;
301 304
302 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); 305 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager);
303 }; 306 };
304 307
305 } // namespace net 308 } // namespace net
306 309
307 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ 310 #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