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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 155 |
156 // Returns all SPDY persistent settings. | 156 // Returns all SPDY persistent settings. |
157 virtual const net::SpdySettingsMap& spdy_settings_map() const OVERRIDE; | 157 virtual const net::SpdySettingsMap& spdy_settings_map() const OVERRIDE; |
158 | 158 |
159 virtual void SetServerNetworkStats(const net::HostPortPair& host_port_pair, | 159 virtual void SetServerNetworkStats(const net::HostPortPair& host_port_pair, |
160 NetworkStats stats) OVERRIDE; | 160 NetworkStats stats) OVERRIDE; |
161 | 161 |
162 virtual const NetworkStats* GetServerNetworkStats( | 162 virtual const NetworkStats* GetServerNetworkStats( |
163 const net::HostPortPair& host_port_pair) const OVERRIDE; | 163 const net::HostPortPair& host_port_pair) const OVERRIDE; |
164 | 164 |
| 165 virtual void SetClientVersion(const std::string& client_version) OVERRIDE; |
| 166 virtual const std::string GetClientVersion() const OVERRIDE; |
| 167 |
165 protected: | 168 protected: |
166 // -------------------- | 169 // -------------------- |
167 // SPDY related methods | 170 // SPDY related methods |
168 | 171 |
169 // These are used to delay updating of the cached data in | 172 // These are used to delay updating of the cached data in |
170 // |http_server_properties_impl_| while the preferences are changing, and | 173 // |http_server_properties_impl_| while the preferences are changing, and |
171 // execute only one update per simultaneous prefs changes. | 174 // execute only one update per simultaneous prefs changes. |
172 void ScheduleUpdateCacheOnUI(); | 175 void ScheduleUpdateCacheOnUI(); |
173 | 176 |
174 // Starts the timers to update the cached prefs. This are overridden in tests | 177 // Starts the timers to update the cached prefs. This are overridden in tests |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 io_prefs_update_timer_; | 253 io_prefs_update_timer_; |
251 | 254 |
252 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_impl_; | 255 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_impl_; |
253 | 256 |
254 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); | 257 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); |
255 }; | 258 }; |
256 | 259 |
257 } // namespace chrome_browser_net | 260 } // namespace chrome_browser_net |
258 | 261 |
259 #endif // CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ | 262 #endif // CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
OLD | NEW |