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

Unified Diff: components/offline_pages/offline_page_model.h

Issue 2185973003: [Offline Pages] Delete associated page along with bookmark. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding offline_pages::ExternalListener. Created 4 years, 4 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 9c6efb7aaca737e960f67ac1ce10672776b32f3a..002284eca955289859821c67a6773c276cc57451 100644
--- a/components/offline_pages/offline_page_model.h
+++ b/components/offline_pages/offline_page_model.h
@@ -23,6 +23,10 @@ namespace base {
class Time;
} // namespace base
+namespace bookmarks {
+class BookmarkNode;
+} // namespace bookmarks
+
namespace offline_pages {
struct ClientId;
@@ -193,6 +197,10 @@ class OfflinePageModel : public base::SupportsUserData {
const base::Time& expiration_time,
const base::Callback<void(bool)>& callback) = 0;
+ // Expire the offline page whose associated bookmark was deleted.
+ virtual void ExpireRemovedBookmarkPage(
+ const bookmarks::BookmarkNode* node) = 0;
+
// Returns the policy controller.
virtual ClientPolicyController* GetPolicyController() = 0;

Powered by Google App Engine
This is Rietveld 408576698