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

Unified Diff: components/offline_pages/offline_page_model_impl.h

Issue 2343743002: [Offline pages] Updating the UpdateCallback in OPMStoreSQL (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_model_impl.h
diff --git a/components/offline_pages/offline_page_model_impl.h b/components/offline_pages/offline_page_model_impl.h
index 521893111dadb3ccd1694dfcfdf25f215b43179c..6b8a11d389566adf878eb7418ebb0e63b3338581 100644
--- a/components/offline_pages/offline_page_model_impl.h
+++ b/components/offline_pages/offline_page_model_impl.h
@@ -191,14 +191,19 @@ class OfflinePageModelImpl : public OfflinePageModel, public KeyedService {
void OnDeleteArchiveFilesDone(const std::vector<int64_t>& offline_ids,
const DeletePageCallback& callback,
bool success);
- void OnRemoveOfflinePagesDone(const std::vector<int64_t>& offline_ids,
- const DeletePageCallback& callback,
- bool success);
+ void OnRemoveOfflinePagesDone(
+ const DeletePageCallback& callback,
+ const std::map<int64_t, OfflinePageMetadataStore::ItemActionStatus>&
+ failed_items,
+ const std::vector<OfflinePageItem>& removed_pages);
void InformDeletePageDone(const DeletePageCallback& callback,
DeletePageResult result);
- void OnMarkPageAccesseDone(const OfflinePageItem& offline_page_item,
- bool success);
+ void OnMarkPageAccesseDone(
+ const OfflinePageItem& offline_page_item,
+ const std::map<int64_t, OfflinePageMetadataStore::ItemActionStatus>&
+ failed_results,
+ const std::vector<OfflinePageItem>& updated_items);
// Callbacks for checking metadata consistency.
void CheckMetadataConsistencyForArchivePaths(
@@ -243,9 +248,11 @@ class OfflinePageModelImpl : public OfflinePageModel, public KeyedService {
const DeletePageCallback& callback);
// Callback completing page expiration.
- void OnExpirePageDone(const std::vector<OfflinePageItem>& expired_pages,
- const base::Time& expiration_time,
- bool success);
+ void OnExpirePageDone(
+ const base::Time& expiration_time,
+ const std::map<int64_t, OfflinePageMetadataStore::ItemActionStatus>&
+ failed_results,
+ const std::vector<OfflinePageItem>& expired_pages);
// Clears expired pages if there are any.
void ClearStorageIfNeeded(

Powered by Google App Engine
This is Rietveld 408576698