OLD | NEW |
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 CHROME_BROWSER_EXTENSIONS_UPDATER_LOCAL_EXTENSION_CACHE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_LOCAL_EXTENSION_CACHE_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_LOCAL_EXTENSION_CACHE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_LOCAL_EXTENSION_CACHE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 188 |
189 // Task runner for executing file I/O tasks. | 189 // Task runner for executing file I/O tasks. |
190 scoped_refptr<base::SequencedTaskRunner> backend_task_runner_; | 190 scoped_refptr<base::SequencedTaskRunner> backend_task_runner_; |
191 | 191 |
192 // Track state of the instance. | 192 // Track state of the instance. |
193 State state_; | 193 State state_; |
194 | 194 |
195 // This contains info about all cached extensions. | 195 // This contains info about all cached extensions. |
196 CacheMap cached_extensions_; | 196 CacheMap cached_extensions_; |
197 | 197 |
| 198 // Delay between polling cache status. |
| 199 base::TimeDelta cache_status_polling_delay_; |
| 200 |
198 // Weak factory for callbacks from the backend and delayed tasks. | 201 // Weak factory for callbacks from the backend and delayed tasks. |
199 base::WeakPtrFactory<LocalExtensionCache> weak_ptr_factory_; | 202 base::WeakPtrFactory<LocalExtensionCache> weak_ptr_factory_; |
200 | 203 |
201 // Delay between polling cache status. | |
202 base::TimeDelta cache_status_polling_delay_; | |
203 | |
204 DISALLOW_COPY_AND_ASSIGN(LocalExtensionCache); | 204 DISALLOW_COPY_AND_ASSIGN(LocalExtensionCache); |
205 }; | 205 }; |
206 | 206 |
207 } // namespace extensions | 207 } // namespace extensions |
208 | 208 |
209 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_LOCAL_EXTENSION_CACHE_H_ | 209 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_LOCAL_EXTENSION_CACHE_H_ |
OLD | NEW |