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

Side by Side Diff: ios/chrome/browser/reading_list/reading_list_model_impl.h

Issue 2352973002: Method to call a method with an entry based on its url (Closed)
Patch Set: Add tests 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 IOS_CHROME_BROWSER_READING_LIST_READING_LIST_MODEL_IMPL_H_ 5 #ifndef IOS_CHROME_BROWSER_READING_LIST_READING_LIST_MODEL_IMPL_H_
6 #define IOS_CHROME_BROWSER_READING_LIST_READING_LIST_MODEL_IMPL_H_ 6 #define IOS_CHROME_BROWSER_READING_LIST_READING_LIST_MODEL_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "components/keyed_service/core/keyed_service.h" 10 #include "components/keyed_service/core/keyed_service.h"
(...skipping 21 matching lines...) Expand all
32 size_t unread_size() const override; 32 size_t unread_size() const override;
33 size_t read_size() const override; 33 size_t read_size() const override;
34 34
35 bool HasUnseenEntries() const override; 35 bool HasUnseenEntries() const override;
36 void ResetUnseenEntries() override; 36 void ResetUnseenEntries() override;
37 37
38 // Returns a specific entry. 38 // Returns a specific entry.
39 const ReadingListEntry& GetUnreadEntryAtIndex(size_t index) const override; 39 const ReadingListEntry& GetUnreadEntryAtIndex(size_t index) const override;
40 const ReadingListEntry& GetReadEntryAtIndex(size_t index) const override; 40 const ReadingListEntry& GetReadEntryAtIndex(size_t index) const override;
41 41
42 bool CallbackEntryURL(
43 const GURL& url,
44 base::Callback<void(const ReadingListEntry&)> callback) const override;
45
42 void RemoveEntryByUrl(const GURL& url) override; 46 void RemoveEntryByUrl(const GURL& url) override;
43 47
44 const ReadingListEntry& AddEntry(const GURL& url, 48 const ReadingListEntry& AddEntry(const GURL& url,
45 const std::string& title) override; 49 const std::string& title) override;
46 50
47 void MarkReadByURL(const GURL& url) override; 51 void MarkReadByURL(const GURL& url) override;
48 52
49 void SetEntryTitle(const GURL& url, const std::string& title) override; 53 void SetEntryTitle(const GURL& url, const std::string& title) override;
50 void SetEntryDistilledURL(const GURL& url, 54 void SetEntryDistilledURL(const GURL& url,
51 const GURL& distilled_url) override; 55 const GURL& distilled_url) override;
(...skipping 10 matching lines...) Expand all
62 ReadingListEntries unread_; 66 ReadingListEntries unread_;
63 ReadingListEntries read_; 67 ReadingListEntries read_;
64 std::unique_ptr<ReadingListModelStorage> storageLayer_; 68 std::unique_ptr<ReadingListModelStorage> storageLayer_;
65 bool hasUnseen_; 69 bool hasUnseen_;
66 bool loaded_; 70 bool loaded_;
67 71
68 DISALLOW_COPY_AND_ASSIGN(ReadingListModelImpl); 72 DISALLOW_COPY_AND_ASSIGN(ReadingListModelImpl);
69 }; 73 };
70 74
71 #endif // IOS_CHROME_BROWSER_READING_LIST_READING_LIST_MODEL_MEMORY_H_ 75 #endif // IOS_CHROME_BROWSER_READING_LIST_READING_LIST_MODEL_MEMORY_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/reading_list/reading_list_model.h ('k') | ios/chrome/browser/reading_list/reading_list_model_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698