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

Unified Diff: components/offline_pages/offline_page_model.h

Issue 1345043002: Update access info when an offline page is being visited (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some more fixes Created 5 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.h
diff --git a/components/offline_pages/offline_page_model.h b/components/offline_pages/offline_page_model.h
index dd55a7e623af4c897380b82904d4cfcc84583e05..648a0f4002758696ef7cafbc70a3291bf15c0b16 100644
--- a/components/offline_pages/offline_page_model.h
+++ b/components/offline_pages/offline_page_model.h
@@ -130,6 +130,11 @@ class OfflinePageModel : public KeyedService,
scoped_ptr<OfflinePageArchiver> archiver,
const SavePageCallback& callback);
+ // Marks that the offline page related to the passed |bookmark_id| has been
+ // accessed. Its access info, including last access time and access count,
+ // will be updated. Requires that the model is loaded.
+ void MarkPageAccessed(int64 bookmark_id);
+
// Deletes an offline page related to the passed |bookmark_id|. Requires that
// the model is loaded.
void DeletePageByBookmarkId(int64 bookmark_id,
@@ -203,6 +208,9 @@ class OfflinePageModel : public KeyedService,
void InformDeletePageDone(const DeletePageCallback& callback,
DeletePageResult result);
+ void OnUpdateOfflinePageDone(const OfflinePageItem& offline_page_item,
+ bool success);
+
// Persistent store for offline page metadata.
scoped_ptr<OfflinePageMetadataStore> store_;
« no previous file with comments | « components/offline_pages/offline_page_metadata_store_impl_unittest.cc ('k') | components/offline_pages/offline_page_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698