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

Unified Diff: components/offline_pages/offline_page_bookmark_bridge.h

Issue 1904613005: [Offline pages] Removing bookmarks dependency from offline pages component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit tests compilation Created 4 years, 8 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
« no previous file with comments | « components/offline_pages/DEPS ('k') | components/offline_pages/offline_page_bookmark_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/offline_pages/offline_page_bookmark_bridge.h
diff --git a/components/offline_pages/offline_page_bookmark_bridge.h b/components/offline_pages/offline_page_bookmark_bridge.h
deleted file mode 100644
index 75cbc7e15aaf3e8abfbeed621b9c6aec86643d5a..0000000000000000000000000000000000000000
--- a/components/offline_pages/offline_page_bookmark_bridge.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// 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_OFFLINE_PAGE_BOOKMARK_BRIDGE_H_
-#define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_BOOKMARK_BRIDGE_H_
-
-#include <set>
-
-#include "components/bookmarks/browser/base_bookmark_model_observer.h"
-
-namespace offline_pages {
-
-class OfflinePageModel;
-
-// A bridge that adapts the bookmark observer to the OfflinePageModel
-class OfflinePageBookmarkBridge : public bookmarks::BaseBookmarkModelObserver {
- public:
- // constructor, does not take ownership of either pointer.
- OfflinePageBookmarkBridge(OfflinePageModel* model,
- bookmarks::BookmarkModel* bookmark_model);
-
- // Overridden from bookmarks::BaseBookmarkModelObserver
- void BookmarkModelChanged() override;
- // Invoked from the destructor of the BookmarkModel.
- void BookmarkModelBeingDeleted(bookmarks::BookmarkModel* model) override;
-
- void BookmarkNodeAdded(bookmarks::BookmarkModel* model,
- const bookmarks::BookmarkNode* parent,
- int index) override;
- void BookmarkNodeRemoved(bookmarks::BookmarkModel* model,
- const bookmarks::BookmarkNode* parent,
- int old_index,
- const bookmarks::BookmarkNode* node,
- const std::set<GURL>& removed_urls) override;
- void BookmarkNodeChanged(bookmarks::BookmarkModel* model,
- const bookmarks::BookmarkNode* node) override;
-
- private:
- // Not owned.
- OfflinePageModel* offline_model_;
- bookmarks::BookmarkModel* bookmark_model_;
- DISALLOW_COPY_AND_ASSIGN(OfflinePageBookmarkBridge);
-};
-} // namespace offline_pages
-#endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_BOOKMARK_BRIDGE_H_
« no previous file with comments | « components/offline_pages/DEPS ('k') | components/offline_pages/offline_page_bookmark_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698