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

Unified Diff: components/offline_pages/offline_page_metadata_store_sql.h

Issue 2339693002: [Offline pages] Splitting Add and Update methods in OPMStore (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: components/offline_pages/offline_page_metadata_store_sql.h
diff --git a/components/offline_pages/offline_page_metadata_store_sql.h b/components/offline_pages/offline_page_metadata_store_sql.h
index c3c50f2adaa057218792e4cbb93410bbebb027ae..402d5b549cb5187247f4d856abf7d2f974279eb4 100644
--- a/components/offline_pages/offline_page_metadata_store_sql.h
+++ b/components/offline_pages/offline_page_metadata_store_sql.h
@@ -35,8 +35,10 @@ class OfflinePageMetadataStoreSQL : public OfflinePageMetadataStore {
// Implementation methods.
void GetOfflinePages(const LoadCallback& callback) override;
- void AddOrUpdateOfflinePage(const OfflinePageItem& offline_page,
- const UpdateCallback& callback) override;
+ void AddOfflinePage(const OfflinePageItem& offline_page,
+ const AddCallback& callback) override;
+ void UpdateOfflinePages(const std::vector<OfflinePageItem>& pages,
+ const UpdateCallback& callback) override;
void RemoveOfflinePages(const std::vector<int64_t>& offline_ids,
const UpdateCallback& callback) override;
void Reset(const ResetCallback& callback) override;

Powered by Google App Engine
This is Rietveld 408576698