| 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 #ifndef CHROME_BROWSER_NTP_SNIPPETS_DOWNLOAD_SUGGESTIONS_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_NTP_SNIPPETS_DOWNLOAD_SUGGESTIONS_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_NTP_SNIPPETS_DOWNLOAD_SUGGESTIONS_PROVIDER_H_ | 6 #define CHROME_BROWSER_NTP_SNIPPETS_DOWNLOAD_SUGGESTIONS_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 private: | 78 private: |
| 79 friend class DownloadSuggestionsProviderTest; | 79 friend class DownloadSuggestionsProviderTest; |
| 80 | 80 |
| 81 void GetPagesMatchingQueryCallbackForGetDismissedSuggestions( | 81 void GetPagesMatchingQueryCallbackForGetDismissedSuggestions( |
| 82 const ntp_snippets::DismissedSuggestionsCallback& callback, | 82 const ntp_snippets::DismissedSuggestionsCallback& callback, |
| 83 const std::vector<offline_pages::OfflinePageItem>& offline_pages) const; | 83 const std::vector<offline_pages::OfflinePageItem>& offline_pages) const; |
| 84 | 84 |
| 85 // OfflinePageModel::Observer implementation. | 85 // OfflinePageModel::Observer implementation. |
| 86 void OfflinePageModelLoaded(offline_pages::OfflinePageModel* model) override; | 86 void OfflinePageModelLoaded(offline_pages::OfflinePageModel* model) override; |
| 87 void OfflinePageModelChanged(offline_pages::OfflinePageModel* model) override; | 87 void OfflinePageAdded( |
| 88 offline_pages::OfflinePageModel* model, |
| 89 const offline_pages::OfflinePageItem& added_page) override; |
| 88 void OfflinePageDeleted(int64_t offline_id, | 90 void OfflinePageDeleted(int64_t offline_id, |
| 89 const offline_pages::ClientId& client_id) override; | 91 const offline_pages::ClientId& client_id) override; |
| 90 | 92 |
| 91 // content::DownloadManager::Observer implementation. | 93 // content::DownloadManager::Observer implementation. |
| 92 void OnDownloadCreated(content::DownloadManager* manager, | 94 void OnDownloadCreated(content::DownloadManager* manager, |
| 93 content::DownloadItem* item) override; | 95 content::DownloadItem* item) override; |
| 94 void ManagerGoingDown(content::DownloadManager* manager) override; | 96 void ManagerGoingDown(content::DownloadManager* manager) override; |
| 95 | 97 |
| 96 // content::DownloadItem::Observer implementation. | 98 // content::DownloadItem::Observer implementation. |
| 97 void OnDownloadUpdated(content::DownloadItem* item) override; | 99 void OnDownloadUpdated(content::DownloadItem* item) override; |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 // Whether the Download Manager UI is enabled, in which case the More button | 219 // Whether the Download Manager UI is enabled, in which case the More button |
| 218 // for the Downloads section can redirect there. | 220 // for the Downloads section can redirect there. |
| 219 const bool download_manager_ui_enabled_; | 221 const bool download_manager_ui_enabled_; |
| 220 | 222 |
| 221 base::WeakPtrFactory<DownloadSuggestionsProvider> weak_ptr_factory_; | 223 base::WeakPtrFactory<DownloadSuggestionsProvider> weak_ptr_factory_; |
| 222 | 224 |
| 223 DISALLOW_COPY_AND_ASSIGN(DownloadSuggestionsProvider); | 225 DISALLOW_COPY_AND_ASSIGN(DownloadSuggestionsProvider); |
| 224 }; | 226 }; |
| 225 | 227 |
| 226 #endif // CHROME_BROWSER_NTP_SNIPPETS_DOWNLOAD_SUGGESTIONS_PROVIDER_H_ | 228 #endif // CHROME_BROWSER_NTP_SNIPPETS_DOWNLOAD_SUGGESTIONS_PROVIDER_H_ |
| OLD | NEW |