| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 std::unique_ptr<OfflinePageMetadataStore> store_; | 271 std::unique_ptr<OfflinePageMetadataStore> store_; |
| 272 | 272 |
| 273 // Location where all of the archive files will be stored. | 273 // Location where all of the archive files will be stored. |
| 274 base::FilePath archives_dir_; | 274 base::FilePath archives_dir_; |
| 275 | 275 |
| 276 // The observers. | 276 // The observers. |
| 277 base::ObserverList<Observer> observers_; | 277 base::ObserverList<Observer> observers_; |
| 278 | 278 |
| 279 bool is_loaded_; | 279 bool is_loaded_; |
| 280 | 280 |
| 281 // In memory copy of the offline page metadata, keyed by bookmark IDs. | 281 // In memory copy of the offline page metadata, keyed by offline IDs. |
| 282 std::map<int64_t, OfflinePageItem> offline_pages_; | 282 std::map<int64_t, OfflinePageItem> offline_pages_; |
| 283 | 283 |
| 284 // Pending archivers owned by this model. | 284 // Pending archivers owned by this model. |
| 285 PendingArchivers pending_archivers_; | 285 PendingArchivers pending_archivers_; |
| 286 | 286 |
| 287 // Delayed tasks that should be invoked after the loading is done. | 287 // Delayed tasks that should be invoked after the loading is done. |
| 288 std::vector<base::Closure> delayed_tasks_; | 288 std::vector<base::Closure> delayed_tasks_; |
| 289 | 289 |
| 290 // Controller of the client policies. | 290 // Controller of the client policies. |
| 291 std::unique_ptr<ClientPolicyController> policy_controller_; | 291 std::unique_ptr<ClientPolicyController> policy_controller_; |
| 292 | 292 |
| 293 // Manager for the storage consumed by archives and responsible for | 293 // Manager for the storage consumed by archives and responsible for |
| 294 // automatic page clearing. | 294 // automatic page clearing. |
| 295 std::unique_ptr<OfflinePageStorageManager> storage_manager_; | 295 std::unique_ptr<OfflinePageStorageManager> storage_manager_; |
| 296 | 296 |
| 297 // Manager for the offline archive files and directory. | 297 // Manager for the offline archive files and directory. |
| 298 std::unique_ptr<ArchiveManager> archive_manager_; | 298 std::unique_ptr<ArchiveManager> archive_manager_; |
| 299 | 299 |
| 300 // Logger to facilitate recording of events. | 300 // Logger to facilitate recording of events. |
| 301 OfflinePageModelEventLogger offline_event_logger_; | 301 OfflinePageModelEventLogger offline_event_logger_; |
| 302 | 302 |
| 303 base::WeakPtrFactory<OfflinePageModelImpl> weak_ptr_factory_; | 303 base::WeakPtrFactory<OfflinePageModelImpl> weak_ptr_factory_; |
| 304 | 304 |
| 305 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelImpl); | 305 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelImpl); |
| 306 }; | 306 }; |
| 307 | 307 |
| 308 } // namespace offline_pages | 308 } // namespace offline_pages |
| 309 | 309 |
| 310 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ | 310 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ |
| OLD | NEW |