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

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

Issue 1017453008: Make GetAlternateProtocol return AlternativeService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/server/origin/g in other methods too. 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_MANAGER_H_ 5 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_
6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ 6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // ---------------------------------- 79 // ----------------------------------
80 80
81 base::WeakPtr<HttpServerProperties> GetWeakPtr() override; 81 base::WeakPtr<HttpServerProperties> GetWeakPtr() override;
82 void Clear() override; 82 void Clear() override;
83 bool SupportsRequestPriority(const HostPortPair& server) override; 83 bool SupportsRequestPriority(const HostPortPair& server) override;
84 void SetSupportsSpdy(const HostPortPair& server, bool support_spdy) override; 84 void SetSupportsSpdy(const HostPortPair& server, bool support_spdy) override;
85 bool RequiresHTTP11(const HostPortPair& server) override; 85 bool RequiresHTTP11(const HostPortPair& server) override;
86 void SetHTTP11Required(const HostPortPair& server) override; 86 void SetHTTP11Required(const HostPortPair& server) override;
87 void MaybeForceHTTP11(const HostPortPair& server, 87 void MaybeForceHTTP11(const HostPortPair& server,
88 SSLConfig* ssl_config) override; 88 SSLConfig* ssl_config) override;
89 AlternateProtocolInfo GetAlternateProtocol( 89 AlternativeService GetAlternativeService(const HostPortPair& origin) override;
90 const HostPortPair& server) override; 90 void SetAlternateProtocol(const HostPortPair& origin,
91 void SetAlternateProtocol(const HostPortPair& server,
92 uint16 alternate_port, 91 uint16 alternate_port,
93 AlternateProtocol alternate_protocol, 92 AlternateProtocol alternate_protocol,
94 double alternate_probability) override; 93 double alternate_probability) override;
95 void SetBrokenAlternateProtocol(const HostPortPair& server) override; 94 void SetBrokenAlternateProtocol(const HostPortPair& origin) override;
96 void MarkAlternativeServiceRecentlyBroken( 95 void MarkAlternativeServiceRecentlyBroken(
97 const AlternativeService& alternative_service) override; 96 const AlternativeService& alternative_service) override;
98 bool IsAlternativeServiceBroken( 97 bool IsAlternativeServiceBroken(
99 const AlternativeService& alternative_service) override; 98 const AlternativeService& alternative_service) override;
100 bool WasAlternateProtocolRecentlyBroken(const HostPortPair& server) override; 99 bool WasAlternateProtocolRecentlyBroken(const HostPortPair& origin) override;
101 void ConfirmAlternateProtocol(const HostPortPair& server) override; 100 void ConfirmAlternateProtocol(const HostPortPair& origin) override;
102 void ClearAlternateProtocol(const HostPortPair& server) override; 101 void ClearAlternateProtocol(const HostPortPair& origin) override;
103 const AlternateProtocolMap& alternate_protocol_map() const override; 102 const AlternateProtocolMap& alternate_protocol_map() const override;
104 void SetAlternateProtocolProbabilityThreshold(double threshold) override; 103 void SetAlternateProtocolProbabilityThreshold(double threshold) override;
105 const SettingsMap& GetSpdySettings( 104 const SettingsMap& GetSpdySettings(
106 const HostPortPair& host_port_pair) override; 105 const HostPortPair& host_port_pair) override;
107 bool SetSpdySetting(const HostPortPair& host_port_pair, 106 bool SetSpdySetting(const HostPortPair& host_port_pair,
108 SpdySettingsIds id, 107 SpdySettingsIds id,
109 SpdySettingsFlags flags, 108 SpdySettingsFlags flags,
110 uint32 value) override; 109 uint32 value) override;
111 void ClearSpdySettings(const HostPortPair& host_port_pair) override; 110 void ClearSpdySettings(const HostPortPair& host_port_pair) override;
112 void ClearAllSpdySettings() override; 111 void ClearAllSpdySettings() override;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // Used to get |weak_ptr_| to self on the network thread. 245 // Used to get |weak_ptr_| to self on the network thread.
247 scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> > 246 scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> >
248 network_weak_ptr_factory_; 247 network_weak_ptr_factory_;
249 248
250 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); 249 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager);
251 }; 250 };
252 251
253 } // namespace net 252 } // namespace net
254 253
255 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ 254 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_
OLDNEW
« no previous file with comments | « net/http/http_server_properties_impl_unittest.cc ('k') | net/http/http_server_properties_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698