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

Side by Side Diff: net/http/http_server_properties_impl.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
« no previous file with comments | « net/http/http_server_properties.h ('k') | net/http/http_server_properties_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_IMPL_H_ 5 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_
6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ 6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 void SetSupportsQuic(bool used_quic, const IPAddressNumber& address) override; 127 void SetSupportsQuic(bool used_quic, const IPAddressNumber& 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 private: 141 private:
139 friend class HttpServerPropertiesImplPeer; 142 friend class HttpServerPropertiesImplPeer;
140 143
141 // |spdy_servers_map_| has flattened representation of servers (host, port) 144 // |spdy_servers_map_| has flattened representation of servers (host, port)
142 // that either support or not support SPDY protocol. 145 // that either support or not support SPDY protocol.
143 typedef base::MRUCache<std::string, bool> SpdyServerHostPortMap; 146 typedef base::MRUCache<std::string, bool> SpdyServerHostPortMap;
144 typedef std::map<HostPortPair, HostPortPair> CanonicalHostMap; 147 typedef std::map<HostPortPair, HostPortPair> CanonicalHostMap;
145 typedef std::vector<std::string> CanonicalSufficList; 148 typedef std::vector<std::string> CanonicalSufficList;
146 typedef std::set<HostPortPair> Http11ServerHostPortSet; 149 typedef std::set<HostPortPair> Http11ServerHostPortSet;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // Map from a Canonical host/port (host is some postfix of host names) to an 183 // Map from a Canonical host/port (host is some postfix of host names) to an
181 // actual origin, which has a plausible alternate protocol mapping. 184 // actual origin, which has a plausible alternate protocol mapping.
182 CanonicalHostMap canonical_host_to_origin_map_; 185 CanonicalHostMap canonical_host_to_origin_map_;
183 // Contains list of suffixes (for exmaple ".c.youtube.com", 186 // Contains list of suffixes (for exmaple ".c.youtube.com",
184 // ".googlevideo.com", ".googleusercontent.com") of canonical hostnames. 187 // ".googlevideo.com", ".googleusercontent.com") of canonical hostnames.
185 CanonicalSufficList canonical_suffixes_; 188 CanonicalSufficList canonical_suffixes_;
186 189
187 double alternative_service_probability_threshold_; 190 double alternative_service_probability_threshold_;
188 191
189 QuicServerInfoMap quic_server_info_map_; 192 QuicServerInfoMap quic_server_info_map_;
193 size_t max_server_configs_stored_in_properties_;
190 194
191 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_; 195 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_;
192 196
193 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); 197 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl);
194 }; 198 };
195 199
196 } // namespace net 200 } // namespace net
197 201
198 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ 202 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_
OLDNEW
« no previous file with comments | « net/http/http_server_properties.h ('k') | net/http/http_server_properties_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698