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

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

Issue 1017453008: Make GetAlternateProtocol return AlternativeService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile error. Created 5 years, 9 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_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 <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // ----------------------------- 85 // -----------------------------
86 86
87 base::WeakPtr<HttpServerProperties> GetWeakPtr() override; 87 base::WeakPtr<HttpServerProperties> GetWeakPtr() override;
88 void Clear() override; 88 void Clear() override;
89 bool SupportsRequestPriority(const HostPortPair& server) override; 89 bool SupportsRequestPriority(const HostPortPair& server) override;
90 void SetSupportsSpdy(const HostPortPair& server, bool support_spdy) override; 90 void SetSupportsSpdy(const HostPortPair& server, bool support_spdy) override;
91 bool RequiresHTTP11(const HostPortPair& server) override; 91 bool RequiresHTTP11(const HostPortPair& server) override;
92 void SetHTTP11Required(const HostPortPair& server) override; 92 void SetHTTP11Required(const HostPortPair& server) override;
93 void MaybeForceHTTP11(const HostPortPair& server, 93 void MaybeForceHTTP11(const HostPortPair& server,
94 SSLConfig* ssl_config) override; 94 SSLConfig* ssl_config) override;
95 AlternateProtocolInfo GetAlternateProtocol( 95 AlternativeService GetAlternativeService(const HostPortPair& origin) override;
96 const HostPortPair& server) override;
97 void SetAlternateProtocol(const HostPortPair& server, 96 void SetAlternateProtocol(const HostPortPair& server,
98 uint16 alternate_port, 97 uint16 alternate_port,
99 AlternateProtocol alternate_protocol, 98 AlternateProtocol alternate_protocol,
100 double probability) override; 99 double probability) override;
101 void SetBrokenAlternateProtocol(const HostPortPair& server) override; 100 void SetBrokenAlternateProtocol(const HostPortPair& server) override;
102 void MarkAlternativeServiceRecentlyBroken( 101 void MarkAlternativeServiceRecentlyBroken(
103 const AlternativeService& alternative_service) override; 102 const AlternativeService& alternative_service) override;
104 bool IsAlternativeServiceBroken( 103 bool IsAlternativeServiceBroken(
105 const AlternativeService& alternative_service) override; 104 const AlternativeService& alternative_service) override;
106 bool WasAlternateProtocolRecentlyBroken(const HostPortPair& server) override; 105 bool WasAlternateProtocolRecentlyBroken(const HostPortPair& server) override;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 double alternate_protocol_probability_threshold_; 176 double alternate_protocol_probability_threshold_;
178 177
179 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_; 178 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_;
180 179
181 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); 180 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl);
182 }; 181 };
183 182
184 } // namespace net 183 } // namespace net
185 184
186 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ 185 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698