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

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

Issue 2801533002: Persist QUIC Broken State 0: change RecentlyBrokenAlternativeServies (Closed)
Patch Set: Address #4 Created 3 years, 8 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 typedef std::vector<std::string> CanonicalSufficList; 132 typedef std::vector<std::string> CanonicalSufficList;
133 typedef std::set<HostPortPair> Http11ServerHostPortSet; 133 typedef std::set<HostPortPair> Http11ServerHostPortSet;
134 134
135 // Linked hash map from AlternativeService to expiration time. This container 135 // Linked hash map from AlternativeService to expiration time. This container
136 // is a queue with O(1) enqueue and dequeue, and a hash_map with O(1) lookup 136 // is a queue with O(1) enqueue and dequeue, and a hash_map with O(1) lookup
137 // at the same time. 137 // at the same time.
138 typedef linked_hash_map<AlternativeService, 138 typedef linked_hash_map<AlternativeService,
139 base::TimeTicks, 139 base::TimeTicks,
140 AlternativeServiceHash> 140 AlternativeServiceHash>
141 BrokenAlternativeServices; 141 BrokenAlternativeServices;
142 // Map to the number of times each alternative service has been marked broken.
143 typedef std::map<AlternativeService, int> RecentlyBrokenAlternativeServices;
144 142
145 // Return the iterator for |server|, or for its canonical host, or end. 143 // Return the iterator for |server|, or for its canonical host, or end.
146 AlternativeServiceMap::const_iterator GetAlternateProtocolIterator( 144 AlternativeServiceMap::const_iterator GetAlternateProtocolIterator(
147 const url::SchemeHostPort& server); 145 const url::SchemeHostPort& server);
148 146
149 // Return the canonical host for |server|, or end if none exists. 147 // Return the canonical host for |server|, or end if none exists.
150 CanonicalHostMap::const_iterator GetCanonicalHost( 148 CanonicalHostMap::const_iterator GetCanonicalHost(
151 const url::SchemeHostPort& server) const; 149 const url::SchemeHostPort& server) const;
152 150
153 // Remove the cononical host for |server|. 151 // Remove the cononical host for |server|.
(...skipping 24 matching lines...) Expand all
178 size_t max_server_configs_stored_in_properties_; 176 size_t max_server_configs_stored_in_properties_;
179 177
180 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_; 178 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_;
181 179
182 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); 180 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl);
183 }; 181 };
184 182
185 } // namespace net 183 } // namespace net
186 184
187 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ 185 #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