| Index: net/http/broken_alternative_services.h
|
| diff --git a/net/http/broken_alternative_services.h b/net/http/broken_alternative_services.h
|
| index cd1ab903c3f650c93a38ec5489f50923028c8361..df1990610cfbbd20dfdb3c6bd3d4b085fc5a2ed9 100644
|
| --- a/net/http/broken_alternative_services.h
|
| +++ b/net/http/broken_alternative_services.h
|
| @@ -84,6 +84,10 @@ class NET_EXPORT_PRIVATE BrokenAlternativeServices {
|
| // expiration time.
|
| // All AlternativeServices in |broken_alternative_service_list| must exist in
|
| // |recently_broken_alternative_services|.
|
| + //
|
| + // If a broken/recently-broken alt svc that's being added is already stored,
|
| + // the stored expiration/broken-count for that alt svc will be overwritten
|
| + // with the new value.
|
| void SetBrokenAndRecentlyBrokenAlternativeServices(
|
| std::unique_ptr<BrokenAlternativeServiceList>
|
| broken_alternative_service_list,
|
| @@ -100,12 +104,6 @@ class NET_EXPORT_PRIVATE BrokenAlternativeServices {
|
| // friendness is no longer required.
|
| friend class HttpServerPropertiesImplPeer;
|
|
|
| - struct AlternativeServiceHash {
|
| - size_t operator()(const net::AlternativeService& entry) const {
|
| - return entry.protocol ^ std::hash<std::string>()(entry.host) ^ entry.port;
|
| - }
|
| - };
|
| -
|
| typedef std::unordered_map<AlternativeService,
|
| BrokenAlternativeServiceList::iterator,
|
| AlternativeServiceHash>
|
|
|