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

Unified Diff: components/leveldb_proto/proto_database.h

Issue 1420003004: Wipe out offline page data on clearing cookie and site data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 5 years, 2 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/leveldb_proto/proto_database.h
diff --git a/components/leveldb_proto/proto_database.h b/components/leveldb_proto/proto_database.h
index 319d0b8e93c24bf03882351bcced513a9570c41b..1c0a063be6d887f04972b2a3e29d6ddfb954a6e0 100644
--- a/components/leveldb_proto/proto_database.h
+++ b/components/leveldb_proto/proto_database.h
@@ -27,6 +27,7 @@ class ProtoDatabase {
using UpdateCallback = base::Callback<void(bool success)>;
using LoadCallback =
base::Callback<void(bool success, scoped_ptr<std::vector<T>>)>;
+ using DestroyCallback = base::Callback<void(bool success)>;
// A list of key-value (string, T) tuples.
using KeyEntryVector = std::vector<std::pair<std::string, T>>;
@@ -50,6 +51,9 @@ class ProtoDatabase {
// Asynchronously loads all entries from the database and invokes |callback|
// when complete.
virtual void LoadEntries(const LoadCallback& callback) = 0;
+
+ // Asynchronously destroys the database.
+ virtual void Destroy(const DestroyCallback& callback) = 0;
};
} // namespace leveldb_proto

Powered by Google App Engine
This is Rietveld 408576698