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 CONTENT_BROWSER_APPCACHE_APPCACHE_UPDATE_JOB_H_ | 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_UPDATE_JOB_H_ |
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_UPDATE_JOB_H_ | 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_UPDATE_JOB_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 // objects. | 272 // objects. |
273 scoped_refptr<AppCacheStorageReference> disabled_storage_reference_; | 273 scoped_refptr<AppCacheStorageReference> disabled_storage_reference_; |
274 | 274 |
275 scoped_refptr<AppCache> inprogress_cache_; | 275 scoped_refptr<AppCache> inprogress_cache_; |
276 | 276 |
277 AppCacheGroup* group_; | 277 AppCacheGroup* group_; |
278 | 278 |
279 UpdateType update_type_; | 279 UpdateType update_type_; |
280 InternalUpdateState internal_state_; | 280 InternalUpdateState internal_state_; |
281 base::Time last_progress_time_; | 281 base::Time last_progress_time_; |
| 282 bool doing_full_update_check_; |
282 | 283 |
283 PendingMasters pending_master_entries_; | 284 PendingMasters pending_master_entries_; |
284 size_t master_entries_completed_; | 285 size_t master_entries_completed_; |
285 | 286 |
286 // TODO(jennb): Delete when update no longer fetches master entries directly. | 287 // TODO(jennb): Delete when update no longer fetches master entries directly. |
287 // Helper containers to track which pending master entries have yet to be | 288 // Helper containers to track which pending master entries have yet to be |
288 // fetched and which are currently being fetched. Master entries that | 289 // fetched and which are currently being fetched. Master entries that |
289 // are listed in the manifest may be fetched as a regular URL instead of | 290 // are listed in the manifest may be fetched as a regular URL instead of |
290 // as a separate master entry fetch to optimize against duplicate fetches. | 291 // as a separate master entry fetch to optimize against duplicate fetches. |
291 std::set<GURL> master_entries_to_fetch_; | 292 std::set<GURL> master_entries_to_fetch_; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 base::WeakPtrFactory<AppCacheUpdateJob> weak_factory_; | 340 base::WeakPtrFactory<AppCacheUpdateJob> weak_factory_; |
340 | 341 |
341 FRIEND_TEST_ALL_PREFIXES(content::AppCacheGroupTest, QueueUpdate); | 342 FRIEND_TEST_ALL_PREFIXES(content::AppCacheGroupTest, QueueUpdate); |
342 | 343 |
343 DISALLOW_COPY_AND_ASSIGN(AppCacheUpdateJob); | 344 DISALLOW_COPY_AND_ASSIGN(AppCacheUpdateJob); |
344 }; | 345 }; |
345 | 346 |
346 } // namespace content | 347 } // namespace content |
347 | 348 |
348 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_UPDATE_JOB_H_ | 349 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_UPDATE_JOB_H_ |
OLD | NEW |