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

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

Issue 312193005: Pass chrome version and channel in CHLO message to server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 // Returns all persistent SPDY settings. 136 // Returns all persistent SPDY settings.
137 virtual const SpdySettingsMap& spdy_settings_map() const OVERRIDE; 137 virtual const SpdySettingsMap& spdy_settings_map() const OVERRIDE;
138 138
139 virtual void SetServerNetworkStats(const HostPortPair& host_port_pair, 139 virtual void SetServerNetworkStats(const HostPortPair& host_port_pair,
140 NetworkStats stats) OVERRIDE; 140 NetworkStats stats) OVERRIDE;
141 141
142 virtual const NetworkStats* GetServerNetworkStats( 142 virtual const NetworkStats* GetServerNetworkStats(
143 const HostPortPair& host_port_pair) const OVERRIDE; 143 const HostPortPair& host_port_pair) const OVERRIDE;
144 144
145 virtual void SetClientVersion(const std::string& client_version) OVERRIDE;
146 virtual const std::string GetClientVersion() const OVERRIDE;
147
145 private: 148 private:
146 // |spdy_servers_map_| has flattened representation of servers (host, port) 149 // |spdy_servers_map_| has flattened representation of servers (host, port)
147 // that either support or not support SPDY protocol. 150 // that either support or not support SPDY protocol.
148 typedef base::MRUCache<std::string, bool> SpdyServerHostPortMap; 151 typedef base::MRUCache<std::string, bool> SpdyServerHostPortMap;
149 typedef std::map<HostPortPair, NetworkStats> ServerNetworkStatsMap; 152 typedef std::map<HostPortPair, NetworkStats> ServerNetworkStatsMap;
150 typedef std::map<HostPortPair, HostPortPair> CanonicalHostMap; 153 typedef std::map<HostPortPair, HostPortPair> CanonicalHostMap;
151 typedef std::vector<std::string> CanonicalSufficList; 154 typedef std::vector<std::string> CanonicalSufficList;
152 // List of broken host:ports and the times when they can be expired. 155 // List of broken host:ports and the times when they can be expired.
153 struct BrokenAlternateProtocolEntry { 156 struct BrokenAlternateProtocolEntry {
154 HostPortPair server; 157 HostPortPair server;
(...skipping 21 matching lines...) Expand all
176 SpdySettingsMap spdy_settings_map_; 179 SpdySettingsMap spdy_settings_map_;
177 ServerNetworkStatsMap server_network_stats_map_; 180 ServerNetworkStatsMap server_network_stats_map_;
178 // Contains a map of servers which could share the same alternate protocol. 181 // Contains a map of servers which could share the same alternate protocol.
179 // Map from a Canonical host/port (host is some postfix of host names) to an 182 // Map from a Canonical host/port (host is some postfix of host names) to an
180 // actual origin, which has a plausible alternate protocol mapping. 183 // actual origin, which has a plausible alternate protocol mapping.
181 CanonicalHostMap canonical_host_to_origin_map_; 184 CanonicalHostMap canonical_host_to_origin_map_;
182 // Contains list of suffixes (for exmaple ".c.youtube.com", 185 // Contains list of suffixes (for exmaple ".c.youtube.com",
183 // ".googlevideo.com", ".googleusercontent.com") of canoncial hostnames. 186 // ".googlevideo.com", ".googleusercontent.com") of canoncial hostnames.
184 CanonicalSufficList canoncial_suffixes_; 187 CanonicalSufficList canoncial_suffixes_;
185 188
189 // Client version and it is passed in QUIC's CHLO message.
190 std::string client_version_;
Ryan Hamilton 2014/06/04 22:31:15 It doesn't seem to me that client_version_ is some
ramant (doing other things) 2014/06/05 02:51:55 Done.
191
186 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_; 192 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_;
187 193
188 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); 194 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl);
189 }; 195 };
190 196
191 } // namespace net 197 } // namespace net
192 198
193 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ 199 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698