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

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

Issue 2023293002: OfflinePageModel cleanups - improved CanSavePage() and moved static kInvalidOfflineId to impl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: synced Created 4 years, 6 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 22 matching lines...) Expand all
33 class GURL; 33 class GURL;
34 namespace base { 34 namespace base {
35 class SequencedTaskRunner; 35 class SequencedTaskRunner;
36 class Time; 36 class Time;
37 class TimeDelta; 37 class TimeDelta;
38 class TimeTicks; 38 class TimeTicks;
39 } // namespace base 39 } // namespace base
40 40
41 namespace offline_pages { 41 namespace offline_pages {
42 42
43 static const int64_t kInvalidOfflineId = 0;
44
43 struct ClientId; 45 struct ClientId;
44 struct OfflinePageItem; 46 struct OfflinePageItem;
45 47
46 class ArchiveManager; 48 class ArchiveManager;
47 class ClientPolicyController; 49 class ClientPolicyController;
48 class OfflinePageMetadataStore; 50 class OfflinePageMetadataStore;
49 class OfflinePageStorageManager; 51 class OfflinePageStorageManager;
50 52
51 // Implementation of service for saving pages offline, storing the offline 53 // Implementation of service for saving pages offline, storing the offline
52 // copy and metadata, and retrieving them upon request. 54 // copy and metadata, and retrieving them upon request.
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 std::unique_ptr<ArchiveManager> archive_manager_; 266 std::unique_ptr<ArchiveManager> archive_manager_;
265 267
266 base::WeakPtrFactory<OfflinePageModelImpl> weak_ptr_factory_; 268 base::WeakPtrFactory<OfflinePageModelImpl> weak_ptr_factory_;
267 269
268 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelImpl); 270 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelImpl);
269 }; 271 };
270 272
271 } // namespace offline_pages 273 } // namespace offline_pages
272 274
273 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ 275 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_
OLDNEW
« no previous file with comments | « components/offline_pages/offline_page_model.cc ('k') | components/offline_pages/offline_page_model_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698