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

Unified Diff: components/offline_pages/offline_page_model.h

Issue 2067143004: [Offline Pages] Duplicate pages when save/delete bookmarks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moving to model level. 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 side-by-side diff with in-line comments
Download patch
Index: components/offline_pages/offline_page_model.h
diff --git a/components/offline_pages/offline_page_model.h b/components/offline_pages/offline_page_model.h
index 9d73acef9ceecb20214891b5eca1097aebd9540c..a12c38aa698358431c3f0f9bc7d07f091c4dfba5 100644
--- a/components/offline_pages/offline_page_model.h
+++ b/components/offline_pages/offline_page_model.h
@@ -74,6 +74,9 @@ class OfflinePageModel : public base::SupportsUserData {
// Returns true if saving an offline page may be attempted for |url|.
static bool CanSaveURL(const GURL& url);
+ // Returns true if the page with |client_id| is initiated by user.
+ static bool IsUserInitiated(const ClientId& client_id);
+
OfflinePageModel();
~OfflinePageModel() override;
« no previous file with comments | « no previous file | components/offline_pages/offline_page_model.cc » ('j') | components/offline_pages/offline_page_model_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698