OLD | NEW |
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 CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
6 #define CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ | 6 #define CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 // Returns true if |server| supports SPDY. Should only be called from IO | 90 // Returns true if |server| supports SPDY. Should only be called from IO |
91 // thread. | 91 // thread. |
92 virtual bool SupportsSpdy(const net::HostPortPair& server) const OVERRIDE; | 92 virtual bool SupportsSpdy(const net::HostPortPair& server) const OVERRIDE; |
93 | 93 |
94 // Add |server| as the SPDY server which supports SPDY protocol into the | 94 // Add |server| as the SPDY server which supports SPDY protocol into the |
95 // persisitent store. Should only be called from IO thread. | 95 // persisitent store. Should only be called from IO thread. |
96 virtual void SetSupportsSpdy(const net::HostPortPair& server, | 96 virtual void SetSupportsSpdy(const net::HostPortPair& server, |
97 bool support_spdy) OVERRIDE; | 97 bool support_spdy) OVERRIDE; |
98 | 98 |
99 // Returns true if |server| has an Alternate-Protocol header. | 99 // Returns true if |server| has an Alternate-Protocol header. |
100 virtual bool HasAlternateProtocol(const net::HostPortPair& server) OVERRIDE; | 100 virtual bool HasAlternateProtocol( |
| 101 const net::HostPortPair& server) const OVERRIDE; |
101 | 102 |
102 // Returns the Alternate-Protocol and port for |server|. | 103 // Returns the Alternate-Protocol and port for |server|. |
103 // HasAlternateProtocol(server) must be true. | 104 // HasAlternateProtocol(server) must be true. |
104 virtual net::PortAlternateProtocolPair GetAlternateProtocol( | 105 virtual net::PortAlternateProtocolPair GetAlternateProtocol( |
105 const net::HostPortPair& server) OVERRIDE; | 106 const net::HostPortPair& server) const OVERRIDE; |
106 | 107 |
107 // Sets the Alternate-Protocol for |server|. | 108 // Sets the Alternate-Protocol for |server|. |
108 virtual void SetAlternateProtocol( | 109 virtual void SetAlternateProtocol( |
109 const net::HostPortPair& server, | 110 const net::HostPortPair& server, |
110 uint16 alternate_port, | 111 uint16 alternate_port, |
111 net::AlternateProtocol alternate_protocol) OVERRIDE; | 112 net::AlternateProtocol alternate_protocol) OVERRIDE; |
112 | 113 |
113 // Sets the Alternate-Protocol for |server| to be BROKEN. | 114 // Sets the Alternate-Protocol for |server| to be BROKEN. |
114 virtual void SetBrokenAlternateProtocol( | 115 virtual void SetBrokenAlternateProtocol( |
115 const net::HostPortPair& server) OVERRIDE; | 116 const net::HostPortPair& server) OVERRIDE; |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 io_prefs_update_timer_; | 247 io_prefs_update_timer_; |
247 | 248 |
248 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_impl_; | 249 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_impl_; |
249 | 250 |
250 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); | 251 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); |
251 }; | 252 }; |
252 | 253 |
253 } // namespace chrome_browser_net | 254 } // namespace chrome_browser_net |
254 | 255 |
255 #endif // CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ | 256 #endif // CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
OLD | NEW |