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

Unified Diff: chrome/browser/android/offline_pages/external_listener_impl.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: chrome/browser/android/offline_pages/external_listener_impl.h
diff --git a/chrome/browser/android/offline_pages/external_listener_impl.h b/chrome/browser/android/offline_pages/external_listener_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..4085002b6e01a1b0dbef62e1eabd90a8293b0217
--- /dev/null
+++ b/chrome/browser/android/offline_pages/external_listener_impl.h
@@ -0,0 +1,35 @@
+// 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 CHROME_BROWSER_ANDROID_OFFLINE_PAGES_EXTERNAL_LISTENER_IMPL_H_
+#define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_EXTERNAL_LISTENER_IMPL_H_
+
+#include "chrome/browser/android/offline_pages/offline_page_model_factory.h"
+#include "components/offline_pages/external_listener.h"
+
+class Profile;
+
+namespace bookmarks {
+class BookmarkModel;
+class BookmarkNode;
+}
+
+namespace offline_pages {
+
+class ExternalListenerImpl : public ExternalListener {
+ public:
+ explicit ExternalListenerImpl(Profile* profile);
+
+ void BookmarkNodeRemoved(bookmarks::BookmarkModel* model,
+ const bookmarks::BookmarkNode* parent,
+ int old_index,
+ const bookmarks::BookmarkNode* node,
+ const std::set<GURL>& removed_urls) override;
+
+ private:
+ Profile* profile_;
+};
+} // namespace offline_pages
+
+#endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_EXTERNAL_LISTENER_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698