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

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

Issue 2511723002: Enable RL sync by default on iOS (Closed)
Patch Set: rebase Created 4 years 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_READING_LIST_STORE_DELEGATE_H_ 5 #ifndef COMPONENTS_READING_LIST_IOS_READING_LIST_STORE_DELEGATE_H_
6 #define COMPONENTS_READING_LIST_READING_LIST_STORE_DELEGATE_H_ 6 #define COMPONENTS_READING_LIST_IOS_READING_LIST_STORE_DELEGATE_H_
7 7
8 class ReadingListEntry; 8 class ReadingListEntry;
9 9
10 // The delegate to handle callbacks from the ReadingListStore. 10 // The delegate to handle callbacks from the ReadingListStore.
11 class ReadingListStoreDelegate { 11 class ReadingListStoreDelegate {
12 public: 12 public:
13 // These three mathods handle callbacks from a ReadingListStore. 13 // These three mathods handle callbacks from a ReadingListStore.
14 virtual void StoreLoaded(std::unique_ptr<ReadingListEntries> unread, 14 virtual void StoreLoaded(std::unique_ptr<ReadingListEntries> unread,
15 std::unique_ptr<ReadingListEntries> read) = 0; 15 std::unique_ptr<ReadingListEntries> read) = 0;
16 // Handle sync events. 16 // Handle sync events.
17 // Called to add a new entry to the model. 17 // Called to add a new entry to the model.
18 // |entry| must not already exist in the model. 18 // |entry| must not already exist in the model.
19 virtual void SyncAddEntry(std::unique_ptr<ReadingListEntry> entry, 19 virtual void SyncAddEntry(std::unique_ptr<ReadingListEntry> entry,
20 bool read) = 0; 20 bool read) = 0;
21 21
22 // Called to merge a sync entry with a local entry in the model. 22 // Called to merge a sync entry with a local entry in the model.
23 // A local entry with the same URL must exist in the local store and have an 23 // A local entry with the same URL must exist in the local store and have an
24 // older UpdateTime. 24 // older UpdateTime.
25 // Return a pointer to the merged entry. 25 // Return a pointer to the merged entry.
26 virtual ReadingListEntry* SyncMergeEntry( 26 virtual ReadingListEntry* SyncMergeEntry(
27 std::unique_ptr<ReadingListEntry> entry, 27 std::unique_ptr<ReadingListEntry> entry,
28 bool read) = 0; 28 bool read) = 0;
29 29
30 // Called to remove an entry to the model. 30 // Called to remove an entry to the model.
31 virtual void SyncRemoveEntry(const GURL& url) = 0; 31 virtual void SyncRemoveEntry(const GURL& url) = 0;
32 }; 32 };
33 33
34 #endif // COMPONENTS_READING_LIST_READING_LIST_STORE_DELEGATE_H_ 34 #endif // COMPONENTS_READING_LIST_IOS_READING_LIST_STORE_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/reading_list/ios/reading_list_store.cc ('k') | components/reading_list/ios/reading_list_store_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698