| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "content/browser/service_worker/service_worker_disk_cache.h" | 5 #include "content/browser/service_worker/service_worker_disk_cache.h" |
| 6 | 6 |
| 7 #include "base/id_map.h" | 7 #include "base/id_map.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "content/browser/service_worker/service_worker_database.h" | 9 #include "content/browser/service_worker/service_worker_database.h" |
| 10 #include "content/common/service_worker/service_worker_status_code.h" | 10 #include "content/common/service_worker/service_worker_status_code.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 scoped_ptr<disk_cache::Backend::Iterator> iterator_; | 51 scoped_ptr<disk_cache::Backend::Iterator> iterator_; |
| 52 ServiceWorkerDiskCache* src_; | 52 ServiceWorkerDiskCache* src_; |
| 53 ServiceWorkerDiskCache* dest_; | 53 ServiceWorkerDiskCache* dest_; |
| 54 | 54 |
| 55 InflightTaskMap::KeyType next_task_id_ = 0; | 55 InflightTaskMap::KeyType next_task_id_ = 0; |
| 56 InflightTaskMap inflight_tasks_; | 56 InflightTaskMap inflight_tasks_; |
| 57 scoped_ptr<Task> pending_task_; | 57 scoped_ptr<Task> pending_task_; |
| 58 size_t max_number_of_inflight_tasks_ = 10; | 58 size_t max_number_of_inflight_tasks_ = 10; |
| 59 | 59 |
| 60 base::TimeTicks start_time_; |
| 61 size_t number_of_migrated_resources_ = 0; |
| 62 |
| 60 StatusCallback callback_; | 63 StatusCallback callback_; |
| 61 | 64 |
| 62 base::WeakPtrFactory<ServiceWorkerDiskCacheMigrator> weak_factory_; | 65 base::WeakPtrFactory<ServiceWorkerDiskCacheMigrator> weak_factory_; |
| 63 | 66 |
| 64 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDiskCacheMigrator); | 67 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDiskCacheMigrator); |
| 65 }; | 68 }; |
| 66 | 69 |
| 67 } // namespace content | 70 } // namespace content |
| OLD | NEW |