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

Unified Diff: components/offline_pages/offline_page_model_impl.h

Issue 2067143004: [Offline Pages] Duplicate pages when save/delete bookmarks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments from dimich@. Created 4 years, 6 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 11769ee919fd4c47f7cea81fca071f3ebde3e8c2..1e74a3f39f5894ad66314666f59188ef7056a8ad 100644
--- a/components/offline_pages/offline_page_model_impl.h
+++ b/components/offline_pages/offline_page_model_impl.h
@@ -208,6 +208,13 @@ class OfflinePageModelImpl : public OfflinePageModel, public KeyedService {
void OnDeleteOrphanedArchivesDone(const std::vector<base::FilePath>& archives,
bool success);
+ // Callbacks for deleting pages with same URL when saving pages.
+ void OnPagesFoundWithSameURL(const ClientId& client_id,
+ int64_t offline_id,
+ size_t pages_allowed,
+ const MultipleOfflinePageItemResult& items);
+ void OnDeleteOldPagesWithSameURL(DeletePageResult result);
+
// Steps for clearing all.
void OnRemoveAllFilesDoneForClearAll(const base::Closure& callback,
DeletePageResult result);
@@ -241,6 +248,9 @@ class OfflinePageModelImpl : public OfflinePageModel, public KeyedService {
void OnStorageCleared(size_t expired_page_count,
OfflinePageStorageManager::ClearStorageResult result);
+ // Post task to clear storage.
+ void PostClearStorageIfNeededTask();
+
void RunWhenLoaded(const base::Closure& job);
// Persistent store for offline page metadata.
« no previous file with comments | « components/offline_pages/offline_page_client_policy.h ('k') | components/offline_pages/offline_page_model_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698