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

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: Remove unintended changes. 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..c45c0930ad8c25b9b39efb6d6ed138fef72d7d65 100644
--- a/components/offline_pages/offline_page_model.h
+++ b/components/offline_pages/offline_page_model.h
@@ -15,7 +15,7 @@
#include "base/supports_user_data.h"
#include "components/offline_pages/offline_event_logger.h"
#include "components/offline_pages/offline_page_archiver.h"
-#include "components/offline_pages/offline_page_storage_manager.h"
+#include "components/offline_pages/offline_page_bookmark_observer.h"
#include "components/offline_pages/offline_page_types.h"
class GURL;
@@ -23,11 +23,17 @@ namespace base {
class Time;
} // namespace base
+namespace bookmarks {
+class BookmarkNode;
+} // namespace bookmarks
+
namespace offline_pages {
struct ClientId;
struct OfflinePageItem;
+class ClientPolicyController;
+
// Service for saving pages offline, storing the offline copy and metadata, and
// retrieving them upon request.
//
@@ -193,6 +199,13 @@ 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;
+
+ // Get the bookmark model observer.
+ virtual OfflinePageBookmarkObserver* GetBookmarkObserver() = 0;
+
// Returns the policy controller.
virtual ClientPolicyController* GetPolicyController() = 0;

Powered by Google App Engine
This is Rietveld 408576698