| Index: components/precache/core/precache_session_table.h
|
| diff --git a/components/precache/core/precache_session_table.h b/components/precache/core/precache_session_table.h
|
| index e4be3238107b612c86c52de6a835066c706b21cf..f084a7e734f1bccbbcbedb82429c7ef0ac1fc2d3 100644
|
| --- a/components/precache/core/precache_session_table.h
|
| +++ b/components/precache/core/precache_session_table.h
|
| @@ -29,6 +29,8 @@ class PrecacheUnfinishedWork;
|
| enum SessionDataType {
|
| // Unfinished work to do sometime later.
|
| UNFINISHED_WORK = 0,
|
| + // Timestamp of the last precache.
|
| + LAST_PRECACHE_TIMESTAMP = 1,
|
| };
|
|
|
| class PrecacheSessionTable {
|
| @@ -41,6 +43,13 @@ class PrecacheSessionTable {
|
| // Init must be called before any other methods.
|
| bool Init(sql::Connection* db);
|
|
|
| + // -- Time since last precache --
|
| + void SetLastPrecacheTimestamp(const base::Time& time);
|
| + base::Time GetLastPrecacheTimestamp();
|
| + void DeleteLastPrecacheTimestamp();
|
| +
|
| + // -- Unfinished work --
|
| +
|
| // Stores unfinished work.
|
| void SaveUnfinishedWork(
|
| std::unique_ptr<PrecacheUnfinishedWork> unfinished_work);
|
|
|