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

Unified Diff: components/reading_list/ios/reading_list_model.h

Issue 2647763005: Store the distilled_url in Reading List entry in Reading List on iOS. (Closed)
Patch Set: feedback Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: components/reading_list/ios/reading_list_model.h
diff --git a/components/reading_list/ios/reading_list_model.h b/components/reading_list/ios/reading_list_model.h
index 5a95d7ac3c16d3d33bc1764869d402c83990b9ce..cf7f2bb42b857b0884d68b4cc8a30c201e3c7b9b 100644
--- a/components/reading_list/ios/reading_list_model.h
+++ b/components/reading_list/ios/reading_list_model.h
@@ -110,12 +110,18 @@ class ReadingListModel : public base::NonThreadSafe {
// Methods to mutate an entry. Will locate the relevant entry by URL. Does
// nothing if the entry is not found.
virtual void SetEntryTitle(const GURL& url, const std::string& title) = 0;
- virtual void SetEntryDistilledPath(const GURL& url,
- const base::FilePath& distilled_path) = 0;
virtual void SetEntryDistilledState(
const GURL& url,
ReadingListEntry::DistillationState state) = 0;
+ // Sets the Distilled info for the entry |url|. This method sets the
+ // DistillationState of the entry to PROCESSED and sets the |distilled_path|
+ // (path of the file on disk) and the |distilled_url| (url of the page that
+ // was distilled.
+ virtual void SetEntryDistilledInfo(const GURL& url,
+ const base::FilePath& distilled_path,
+ const GURL& distilled_url) = 0;
+
// Observer registration methods. The model will remove all observers upon
// destruction automatically.
void AddObserver(ReadingListModelObserver* observer);
« no previous file with comments | « components/reading_list/ios/reading_list_entry_unittest.cc ('k') | components/reading_list/ios/reading_list_model_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698