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

Side by Side Diff: components/reading_list/ios/reading_list_model_impl.h

Issue 2770723004: Remove all ReadingList entries on managed account signout. (Closed)
Patch Set: Created 3 years, 9 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_READING_LIST_IOS_READING_LIST_MODEL_IMPL_H_ 5 #ifndef COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_IMPL_H_
6 #define COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_IMPL_H_ 6 #define COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 void SetEntryDistilledInfo(const GURL& url, 72 void SetEntryDistilledInfo(const GURL& url,
73 const base::FilePath& distilled_path, 73 const base::FilePath& distilled_path,
74 const GURL& distilled_url, 74 const GURL& distilled_url,
75 int64_t distillation_size, 75 int64_t distillation_size,
76 int64_t distillation_date) override; 76 int64_t distillation_date) override;
77 77
78 void SyncAddEntry(std::unique_ptr<ReadingListEntry> entry) override; 78 void SyncAddEntry(std::unique_ptr<ReadingListEntry> entry) override;
79 ReadingListEntry* SyncMergeEntry( 79 ReadingListEntry* SyncMergeEntry(
80 std::unique_ptr<ReadingListEntry> entry) override; 80 std::unique_ptr<ReadingListEntry> entry) override;
81 void SyncRemoveEntry(const GURL& url) override; 81 void SyncRemoveEntry(const GURL& url) override;
82 bool DeleteAllEntries() override;
82 83
83 std::unique_ptr<ReadingListModel::ScopedReadingListBatchUpdate> 84 std::unique_ptr<ReadingListModel::ScopedReadingListBatchUpdate>
84 CreateBatchToken() override; 85 CreateBatchToken() override;
85 86
86 // Helper class that is used to scope batch updates. 87 // Helper class that is used to scope batch updates.
87 class ScopedReadingListBatchUpdate 88 class ScopedReadingListBatchUpdate
88 : public ReadingListModel::ScopedReadingListBatchUpdate { 89 : public ReadingListModel::ScopedReadingListBatchUpdate {
89 public: 90 public:
90 explicit ScopedReadingListBatchUpdate(ReadingListModelImpl* model); 91 explicit ScopedReadingListBatchUpdate(ReadingListModelImpl* model);
91 92
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 134
134 std::unique_ptr<ReadingListModelStorage> storage_layer_; 135 std::unique_ptr<ReadingListModelStorage> storage_layer_;
135 PrefService* pref_service_; 136 PrefService* pref_service_;
136 bool has_unseen_; 137 bool has_unseen_;
137 bool loaded_; 138 bool loaded_;
138 base::WeakPtrFactory<ReadingListModelImpl> weak_ptr_factory_; 139 base::WeakPtrFactory<ReadingListModelImpl> weak_ptr_factory_;
139 DISALLOW_COPY_AND_ASSIGN(ReadingListModelImpl); 140 DISALLOW_COPY_AND_ASSIGN(ReadingListModelImpl);
140 }; 141 };
141 142
142 #endif // COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_IMPL_H_ 143 #endif // COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_IMPL_H_
OLDNEW
« no previous file with comments | « components/reading_list/ios/reading_list_model.h ('k') | components/reading_list/ios/reading_list_model_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698