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

Side by Side Diff: chrome/browser/ntp_snippets/download_suggestions_provider.h

Issue 2469933002: Offline Pages: Replace Observer::OfflinePageModelChanged with OfflinePageAdded. (Closed)
Patch Set: Test fix Created 4 years, 1 month 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
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 private: 77 private:
78 friend class DownloadSuggestionsProviderTest; 78 friend class DownloadSuggestionsProviderTest;
79 79
80 void GetPagesMatchingQueryCallbackForGetDismissedSuggestions( 80 void GetPagesMatchingQueryCallbackForGetDismissedSuggestions(
81 const ntp_snippets::DismissedSuggestionsCallback& callback, 81 const ntp_snippets::DismissedSuggestionsCallback& callback,
82 const std::vector<offline_pages::OfflinePageItem>& offline_pages) const; 82 const std::vector<offline_pages::OfflinePageItem>& offline_pages) const;
83 83
84 // OfflinePageModel::Observer implementation. 84 // OfflinePageModel::Observer implementation.
85 void OfflinePageModelLoaded(offline_pages::OfflinePageModel* model) override; 85 void OfflinePageModelLoaded(offline_pages::OfflinePageModel* model) override;
86 void OfflinePageModelChanged(offline_pages::OfflinePageModel* model) override; 86 void OfflinePageAdded(
87 offline_pages::OfflinePageModel* model,
88 const offline_pages::OfflinePageItem& added_page) override;
87 void OfflinePageDeleted(int64_t offline_id, 89 void OfflinePageDeleted(int64_t offline_id,
88 const offline_pages::ClientId& client_id) override; 90 const offline_pages::ClientId& client_id) override;
89 91
90 // content::DownloadManager::Observer implementation. 92 // content::DownloadManager::Observer implementation.
91 void OnDownloadCreated(content::DownloadManager* manager, 93 void OnDownloadCreated(content::DownloadManager* manager,
92 content::DownloadItem* item) override; 94 content::DownloadItem* item) override;
93 void ManagerGoingDown(content::DownloadManager* manager) override; 95 void ManagerGoingDown(content::DownloadManager* manager) override;
94 96
95 // content::DownloadItem::Observer implementation. 97 // content::DownloadItem::Observer implementation.
96 void OnDownloadUpdated(content::DownloadItem* item) override; 98 void OnDownloadUpdated(content::DownloadItem* item) override;
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 // Whether the Download Manager UI is enabled, in which case the More button 217 // Whether the Download Manager UI is enabled, in which case the More button
216 // for the Downloads section can redirect there. 218 // for the Downloads section can redirect there.
217 const bool download_manager_ui_enabled_; 219 const bool download_manager_ui_enabled_;
218 220
219 base::WeakPtrFactory<DownloadSuggestionsProvider> weak_ptr_factory_; 221 base::WeakPtrFactory<DownloadSuggestionsProvider> weak_ptr_factory_;
220 222
221 DISALLOW_COPY_AND_ASSIGN(DownloadSuggestionsProvider); 223 DISALLOW_COPY_AND_ASSIGN(DownloadSuggestionsProvider);
222 }; 224 };
223 225
224 #endif // CHROME_BROWSER_NTP_SNIPPETS_DOWNLOAD_SUGGESTIONS_PROVIDER_H_ 226 #endif // CHROME_BROWSER_NTP_SNIPPETS_DOWNLOAD_SUGGESTIONS_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698