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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // ---------------------------------- | 82 // ---------------------------------- |
83 | 83 |
84 // Gets a weak pointer for this object. | 84 // Gets a weak pointer for this object. |
85 virtual base::WeakPtr<net::HttpServerProperties> GetWeakPtr() OVERRIDE; | 85 virtual base::WeakPtr<net::HttpServerProperties> GetWeakPtr() OVERRIDE; |
86 | 86 |
87 // Deletes all data. Works asynchronously. | 87 // Deletes all data. Works asynchronously. |
88 virtual void Clear() OVERRIDE; | 88 virtual void Clear() OVERRIDE; |
89 | 89 |
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) 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(const net::HostPortPair& server) OVERRIDE; |
101 | 101 |
102 // Returns the Alternate-Protocol and port for |server|. | 102 // Returns the Alternate-Protocol and port for |server|. |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 io_prefs_update_timer_; | 257 io_prefs_update_timer_; |
258 | 258 |
259 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_impl_; | 259 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_impl_; |
260 | 260 |
261 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); | 261 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); |
262 }; | 262 }; |
263 | 263 |
264 } // namespace chrome_browser_net | 264 } // namespace chrome_browser_net |
265 | 265 |
266 #endif // CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ | 266 #endif // CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
OLD | NEW |