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

Unified Diff: content/browser/dom_storage/local_storage_context_mojo.h

Issue 2847013002: Switch to mojo localstorage backend by default. (Closed)
Patch Set: rebase Created 3 years, 7 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: content/browser/dom_storage/local_storage_context_mojo.h
diff --git a/content/browser/dom_storage/local_storage_context_mojo.h b/content/browser/dom_storage/local_storage_context_mojo.h
index 342fe0a9e619688664465a2ae4e10b172bc4aa24..019e605d253d691bcefe6390d92af8aae2edff9c 100644
--- a/content/browser/dom_storage/local_storage_context_mojo.h
+++ b/content/browser/dom_storage/local_storage_context_mojo.h
@@ -28,8 +28,8 @@ class DOMStorageTaskRunner;
class LevelDBWrapperImpl;
struct LocalStorageUsageInfo;
-// Used for mojo-based LocalStorage implementation (behind --mojo-local-storage
-// for now).
+// Used for mojo-based LocalStorage implementation (can be disabled with
+// --disable-mojo-local-storage for now).
// Created on the UI thread, but all further methods are called on the IO
// thread. Furthermore since destruction of this class can involve asynchronous
// steps, it can only be deleted by calling ShutdownAndDelete (on the IO
@@ -70,7 +70,8 @@ class CONTENT_EXPORT LocalStorageContextMojo {
// storage for a particular origin will reload the data from the database.
void PurgeMemory();
- leveldb::mojom::LevelDBDatabaseAssociatedRequest DatabaseRequestForTesting();
+ void SetDatabaseForTesting(
+ leveldb::mojom::LevelDBDatabaseAssociatedPtr database);
// Converts a string from the old storage format to the new storage format.
static std::vector<uint8_t> MigrateString(const base::string16& input);

Powered by Google App Engine
This is Rietveld 408576698