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

Side by Side Diff: chrome/browser/android/offline_pages/offline_page_bookmark_observer.h

Issue 2185973003: [Offline Pages] Delete associated page along with bookmark. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing debug lines. Created 4 years, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BOOKMARK_OBSERVER_H_
6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BOOKMARK_OBSERVER_H_
7
8 #include "chrome/browser/android/offline_pages/offline_page_model_factory.h"
9
10 #include "components/bookmarks/browser/owned_bookmark_model_observer.h"
11 #include "components/offline_pages/offline_page_types.h"
12
13 class GURL;
14 class Profile;
15
16 namespace bookmarks {
17 class BookmarkModel;
18 class BookmarkNode;
19 }
20
21 namespace offline_pages {
22
23 class OfflinePageBookmarkObserver
24 : public bookmarks::OwnedBookmarkModelObserver {
25 public:
26 explicit OfflinePageBookmarkObserver(Profile* profile);
27
28 ~OfflinePageBookmarkObserver() override {}
29
30 void BookmarkModelChanged() override {}
Dmitry Titov 2016/08/26 23:08:59 no need to override this. Also, we typically group
romax 2016/08/29 22:58:02 Done.
31
32 void BookmarkNodeRemoved(bookmarks::BookmarkModel* model,
33 const bookmarks::BookmarkNode* parent,
34 int old_index,
35 const bookmarks::BookmarkNode* node,
36 const std::set<GURL>& removed_urls) override;
37
38 void DoExpireRemovedBookmarkPages(const MultipleOfflineIdResult& offline_ids);
39
40 void OnExpireRemovedBookmarkPagesDone(bool result);
41
42 private:
43 Profile* profile_;
44
45 OfflinePageModel* offline_page_model_;
Dmitry Titov 2016/08/26 23:08:59 What is a lifetime of that? What if the OPM is des
romax 2016/08/29 22:58:02 The OPM itself should be independent, and if we de
46 };
47 } // namespace offline_pages
48
49 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BOOKMARK_OBSERVER_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698