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

Unified Diff: components/offline_pages/external_listener.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/external_listener.h
diff --git a/components/offline_pages/external_listener.h b/components/offline_pages/external_listener.h
new file mode 100644
index 0000000000000000000000000000000000000000..72fd7085dc87e0573b75128d04dbdac57e200e63
--- /dev/null
+++ b/components/offline_pages/external_listener.h
@@ -0,0 +1,30 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_OFFLINE_PAGES_EXTERNAL_LISTENER_H_
+#define COMPONENTS_OFFLINE_PAGES_EXTERNAL_LISTENER_H_
+
+#include "components/bookmarks/browser/base_bookmark_model_observer.h"
+
+namespace bookmarks {
+class BookmarkModel;
+class BookmarkNode;
+} // namespace base
+
+namespace offline_pages {
+
+class ExternalListener : public bookmarks::BaseBookmarkModelObserver {
Dmitry Titov 2016/08/12 05:43:43 Lets name it somehow with "Bookmark" word, somethi
romax 2016/08/16 19:05:44 Done.
+ public:
+ void BookmarkModelChanged() override {}
+
+ void BookmarkNodeRemoved(bookmarks::BookmarkModel* model,
+ const bookmarks::BookmarkNode* parent,
+ int old_index,
+ const bookmarks::BookmarkNode* node,
+ const std::set<GURL>& removed_urls) override {}
Dmitry Titov 2016/08/12 05:43:43 I think this can be made abstract method, since it
romax 2016/08/16 19:05:44 Done.
+};
+
+} // namespace offline_pages
+
+#endif // COMPONENTS_OFFLINE_PAGES_EXTERNAL_LISTENER_H_

Powered by Google App Engine
This is Rietveld 408576698