OLD | NEW |
---|---|
1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
151 // preferences. It gets the data on UI thread and calls | 151 // preferences. It gets the data on UI thread and calls |
152 // UpdateSpdyServersFromPrefsOnIO() to perform the update on IO thread. | 152 // UpdateSpdyServersFromPrefsOnIO() to perform the update on IO thread. |
153 virtual void UpdateCacheFromPrefsOnUI(); | 153 virtual void UpdateCacheFromPrefsOnUI(); |
154 | 154 |
155 // Starts the update of cached prefs in |http_server_properties_impl_| on the | 155 // Starts the update of cached prefs in |http_server_properties_impl_| on the |
156 // IO thread. Protected for testing. | 156 // IO thread. Protected for testing. |
157 void UpdateCacheFromPrefsOnIO( | 157 void UpdateCacheFromPrefsOnIO( |
158 std::vector<std::string>* spdy_servers, | 158 std::vector<std::string>* spdy_servers, |
159 net::SpdySettingsMap* spdy_settings_map, | 159 net::SpdySettingsMap* spdy_settings_map, |
160 net::AlternateProtocolMap* alternate_protocol_map, | 160 net::AlternateProtocolMap* alternate_protocol_map, |
161 net::PipelineCapabilityMap* pipeline_capability_map); | 161 net::PipelineCapabilityMap* pipeline_capability_map, |
162 bool deleted_corrupted_prefs); | |
wtc
2012/01/11 03:26:41
deleted => detected
ramant (doing other things)
2012/01/11 03:30:03
Done.
| |
162 | 163 |
163 // These are used to delay updating the preferences when cached data in | 164 // These are used to delay updating the preferences when cached data in |
164 // |http_server_properties_impl_| is changing, and execute only one update per | 165 // |http_server_properties_impl_| is changing, and execute only one update per |
165 // simultaneous spdy_servers or spdy_settings or alternate_protocol changes. | 166 // simultaneous spdy_servers or spdy_settings or alternate_protocol changes. |
166 void ScheduleUpdatePrefsOnIO(); | 167 void ScheduleUpdatePrefsOnIO(); |
167 | 168 |
168 // Starts the timers to update the prefs from cache. This are overridden in | 169 // Starts the timers to update the prefs from cache. This are overridden in |
169 // tests to prevent the delay. | 170 // tests to prevent the delay. |
170 virtual void StartPrefsUpdateTimerOnIO(base::TimeDelta delay); | 171 virtual void StartPrefsUpdateTimerOnIO(base::TimeDelta delay); |
171 | 172 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
217 io_prefs_update_timer_; | 218 io_prefs_update_timer_; |
218 | 219 |
219 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_impl_; | 220 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_impl_; |
220 | 221 |
221 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); | 222 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); |
222 }; | 223 }; |
223 | 224 |
224 } // namespace chrome_browser_net | 225 } // namespace chrome_browser_net |
225 | 226 |
226 #endif // CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ | 227 #endif // CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
OLD | NEW |