Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(673)

Side by Side Diff: components/offline_pages/offline_page_model_impl.h

Issue 2185973003: [Offline Pages] Delete associated page along with bookmark. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename Owned* to OfflinePageBookmarkObserver and Impl classes. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 std::unique_ptr<OfflinePageMetadataStore> store_; 267 std::unique_ptr<OfflinePageMetadataStore> store_;
268 268
269 // Location where all of the archive files will be stored. 269 // Location where all of the archive files will be stored.
270 base::FilePath archives_dir_; 270 base::FilePath archives_dir_;
271 271
272 // The observers. 272 // The observers.
273 base::ObserverList<Observer> observers_; 273 base::ObserverList<Observer> observers_;
274 274
275 bool is_loaded_; 275 bool is_loaded_;
276 276
277 // In memory copy of the offline page metadata, keyed by bookmark IDs. 277 // In memory copy of the offline page metadata, keyed by offline IDs.
278 std::map<int64_t, OfflinePageItem> offline_pages_; 278 std::map<int64_t, OfflinePageItem> offline_pages_;
279 279
280 // Pending archivers owned by this model. 280 // Pending archivers owned by this model.
281 PendingArchivers pending_archivers_; 281 PendingArchivers pending_archivers_;
282 282
283 // Delayed tasks that should be invoked after the loading is done. 283 // Delayed tasks that should be invoked after the loading is done.
284 std::vector<base::Closure> delayed_tasks_; 284 std::vector<base::Closure> delayed_tasks_;
285 285
286 // Controller of the client policies. 286 // Controller of the client policies.
287 std::unique_ptr<ClientPolicyController> policy_controller_; 287 std::unique_ptr<ClientPolicyController> policy_controller_;
288 288
289 // Manager for the storage consumed by archives and responsible for 289 // Manager for the storage consumed by archives and responsible for
290 // automatic page clearing. 290 // automatic page clearing.
291 std::unique_ptr<OfflinePageStorageManager> storage_manager_; 291 std::unique_ptr<OfflinePageStorageManager> storage_manager_;
292 292
293 // Manager for the offline archive files and directory. 293 // Manager for the offline archive files and directory.
294 std::unique_ptr<ArchiveManager> archive_manager_; 294 std::unique_ptr<ArchiveManager> archive_manager_;
295 295
296 // Logger to facilitate recording of events. 296 // Logger to facilitate recording of events.
297 OfflinePageModelEventLogger offline_event_logger_; 297 OfflinePageModelEventLogger offline_event_logger_;
298 298
299 base::WeakPtrFactory<OfflinePageModelImpl> weak_ptr_factory_; 299 base::WeakPtrFactory<OfflinePageModelImpl> weak_ptr_factory_;
300 300
301 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelImpl); 301 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelImpl);
302 }; 302 };
303 303
304 } // namespace offline_pages 304 } // namespace offline_pages
305 305
306 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ 306 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698