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

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

Issue 2512073002: [Offline Pages] Removes two-step expiration related. (Closed)
Patch Set: adding unit in histograms. Created 4 years 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
« no previous file with comments | « no previous file | chrome/browser/android/offline_pages/offline_page_bookmark_observer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BOOKMARK_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BOOKMARK_OBSERVER_H_
6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BOOKMARK_OBSERVER_H_ 6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BOOKMARK_OBSERVER_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "chrome/browser/android/offline_pages/offline_page_model_factory.h" 9 #include "chrome/browser/android/offline_pages/offline_page_model_factory.h"
10 #include "components/bookmarks/browser/base_bookmark_model_observer.h" 10 #include "components/bookmarks/browser/base_bookmark_model_observer.h"
(...skipping 20 matching lines...) Expand all
31 31
32 // Implement bookmarks::OfflinePageBookmarkObserver 32 // Implement bookmarks::OfflinePageBookmarkObserver
33 void BookmarkModelChanged() override; 33 void BookmarkModelChanged() override;
34 void BookmarkNodeRemoved(bookmarks::BookmarkModel* model, 34 void BookmarkNodeRemoved(bookmarks::BookmarkModel* model,
35 const bookmarks::BookmarkNode* parent, 35 const bookmarks::BookmarkNode* parent,
36 int old_index, 36 int old_index,
37 const bookmarks::BookmarkNode* node, 37 const bookmarks::BookmarkNode* node,
38 const std::set<GURL>& removed_urls) override; 38 const std::set<GURL>& removed_urls) override;
39 39
40 private: 40 private:
41 // Does work for actual expiring. 41 // Does work for actual deleting removed bookmark pages.
42 void DoExpireRemovedBookmarkPages(const MultipleOfflineIdResult& offline_ids); 42 void DoDeleteRemovedBookmarkPages(const MultipleOfflineIdResult& offline_ids);
43 43
44 // Callback for expiring removed bookmark pages. 44 // Callback for deleting removed bookmark pages.
45 void OnExpireRemovedBookmarkPagesDone(bool result); 45 void OnDeleteRemovedBookmarkPagesDone(DeletePageResult result);
46 46
47 content::BrowserContext* context_; 47 content::BrowserContext* context_;
48 48
49 OfflinePageModel* offline_page_model_; 49 OfflinePageModel* offline_page_model_;
50 50
51 base::WeakPtrFactory<OfflinePageBookmarkObserver> weak_ptr_factory_; 51 base::WeakPtrFactory<OfflinePageBookmarkObserver> weak_ptr_factory_;
52 }; 52 };
53 } // namespace offline_pages 53 } // namespace offline_pages
54 54
55 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BOOKMARK_OBSERVER_H _ 55 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_BOOKMARK_OBSERVER_H _
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/offline_pages/offline_page_bookmark_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698