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

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

Issue 2949513005: Update param types of HttpServerPropertiesImpl setters and getters. Fix MRU order when loading (Closed)
Patch Set: Added missing newline Created 3 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 (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_H_ 5 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_H_
6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_H_ 6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 bool operator!=(const ServerNetworkStats& other) const { 193 bool operator!=(const ServerNetworkStats& other) const {
194 return !this->operator==(other); 194 return !this->operator==(other);
195 } 195 }
196 196
197 base::TimeDelta srtt; 197 base::TimeDelta srtt;
198 QuicBandwidth bandwidth_estimate; 198 QuicBandwidth bandwidth_estimate;
199 }; 199 };
200 200
201 typedef std::vector<AlternativeService> AlternativeServiceVector; 201 typedef std::vector<AlternativeService> AlternativeServiceVector;
202 typedef std::vector<AlternativeServiceInfo> AlternativeServiceInfoVector; 202 typedef std::vector<AlternativeServiceInfo> AlternativeServiceInfoVector;
203 // |spdy_servers_map_| has flattened representation of servers
Ryan Hamilton 2017/06/22 02:45:52 I suspect this is cut-paste, but I don't think |sp
wangyix1 2017/06/22 17:45:09 Done.
204 // (scheme, host, port) that either support or not support SPDY protocol.
205 typedef base::MRUCache<std::string, bool> SpdyServersMap;
203 typedef base::MRUCache<url::SchemeHostPort, AlternativeServiceInfoVector> 206 typedef base::MRUCache<url::SchemeHostPort, AlternativeServiceInfoVector>
204 AlternativeServiceMap; 207 AlternativeServiceMap;
205 // Pairs of broken alternative services and when their brokenness expires. 208 // Pairs of broken alternative services and when their brokenness expires.
206 typedef std::list<std::pair<AlternativeService, base::TimeTicks>> 209 typedef std::list<std::pair<AlternativeService, base::TimeTicks>>
207 BrokenAlternativeServiceList; 210 BrokenAlternativeServiceList;
208 // Map to the number of times each alternative service has been marked broken. 211 // Map to the number of times each alternative service has been marked broken.
209 typedef base::MRUCache<AlternativeService, int> 212 typedef base::MRUCache<AlternativeService, int>
210 RecentlyBrokenAlternativeServices; 213 RecentlyBrokenAlternativeServices;
211 typedef base::MRUCache<url::SchemeHostPort, ServerNetworkStats> 214 typedef base::MRUCache<url::SchemeHostPort, ServerNetworkStats>
212 ServerNetworkStatsMap; 215 ServerNetworkStatsMap;
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 // Returns whether HttpServerProperties is initialized. 364 // Returns whether HttpServerProperties is initialized.
362 virtual bool IsInitialized() const = 0; 365 virtual bool IsInitialized() const = 0;
363 366
364 private: 367 private:
365 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); 368 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties);
366 }; 369 };
367 370
368 } // namespace net 371 } // namespace net
369 372
370 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ 373 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_server_properties_impl.h » ('j') | net/http/http_server_properties_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698