| OLD | NEW |
| 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 #include "chrome/browser/android/offline_pages/offline_page_bookmark_observer.h" | 5 #include "chrome/browser/android/offline_pages/offline_page_bookmark_observer.h" |
| 6 | 6 |
| 7 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
| 8 #include "components/bookmarks/browser/bookmark_node.h" | 8 #include "components/bookmarks/browser/bookmark_node.h" |
| 9 #include "components/offline_pages/client_namespace_constants.h" | 9 #include "components/offline_pages/core/client_namespace_constants.h" |
| 10 #include "components/offline_pages/offline_page_model.h" | 10 #include "components/offline_pages/core/offline_page_model.h" |
| 11 #include "url/gurl.h" | 11 #include "url/gurl.h" |
| 12 | 12 |
| 13 namespace offline_pages { | 13 namespace offline_pages { |
| 14 | 14 |
| 15 OfflinePageBookmarkObserver::OfflinePageBookmarkObserver( | 15 OfflinePageBookmarkObserver::OfflinePageBookmarkObserver( |
| 16 content::BrowserContext* context) | 16 content::BrowserContext* context) |
| 17 : context_(context), | 17 : context_(context), |
| 18 offline_page_model_(nullptr), | 18 offline_page_model_(nullptr), |
| 19 weak_ptr_factory_(this) {} | 19 weak_ptr_factory_(this) {} |
| 20 | 20 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 44 offline_page_model_->DeletePagesByOfflineId( | 44 offline_page_model_->DeletePagesByOfflineId( |
| 45 offline_ids, | 45 offline_ids, |
| 46 base::Bind(&OfflinePageBookmarkObserver::OnDeleteRemovedBookmarkPagesDone, | 46 base::Bind(&OfflinePageBookmarkObserver::OnDeleteRemovedBookmarkPagesDone, |
| 47 weak_ptr_factory_.GetWeakPtr())); | 47 weak_ptr_factory_.GetWeakPtr())); |
| 48 } | 48 } |
| 49 | 49 |
| 50 void OfflinePageBookmarkObserver::OnDeleteRemovedBookmarkPagesDone( | 50 void OfflinePageBookmarkObserver::OnDeleteRemovedBookmarkPagesDone( |
| 51 DeletePageResult result) {} | 51 DeletePageResult result) {} |
| 52 | 52 |
| 53 } // namespace offline_pages | 53 } // namespace offline_pages |
| OLD | NEW |