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

Unified Diff: components/bookmarks/browser/bookmark_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/bookmarks/browser/bookmark_model.h
diff --git a/components/bookmarks/browser/bookmark_model.h b/components/bookmarks/browser/bookmark_model.h
index 61cdfa48bc417a24941731d52af91ecfbd698d70..cdba90dda3e61563cf52b4ede4192641da5eb6d1 100644
--- a/components/bookmarks/browser/bookmark_model.h
+++ b/components/bookmarks/browser/bookmark_model.h
@@ -24,6 +24,7 @@
#include "components/bookmarks/browser/bookmark_node.h"
#include "components/bookmarks/browser/bookmark_undo_provider.h"
#include "components/keyed_service/core/keyed_service.h"
+#include "components/offline_pages/external_listener.h"
#include "ui/gfx/image/image.h"
#include "url/gurl.h"
@@ -73,7 +74,9 @@ class BookmarkModel : public BookmarkUndoProvider,
base::string16 title;
};
- explicit BookmarkModel(std::unique_ptr<BookmarkClient> client);
+ explicit BookmarkModel(
Dmitry Titov 2016/08/12 05:43:43 when ctor takes more then one arg, it should not b
romax 2016/08/16 19:05:44 Done.
+ std::unique_ptr<BookmarkClient> client,
+ std::unique_ptr<offline_pages::ExternalListener> offline_page_listener);
~BookmarkModel() override;
// KeyedService:
@@ -422,6 +425,8 @@ class BookmarkModel : public BookmarkUndoProvider,
std::unique_ptr<BookmarkClient> client_;
+ std::unique_ptr<offline_pages::ExternalListener> offline_page_listener_;
+
// Whether the initial set of data has been loaded.
bool loaded_;

Powered by Google App Engine
This is Rietveld 408576698