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

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

Issue 1737933002: mojo leveldb: Get profile and leveldb connected to DOMStorageContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add OWNERS file by request. Created 4 years, 9 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/dom_storage_context_wrapper.h
diff --git a/content/browser/dom_storage/dom_storage_context_wrapper.h b/content/browser/dom_storage/dom_storage_context_wrapper.h
index b16b7235faff85f57550ef714a6760307fa91726..837bce7d67ad32b7d7a2487e3c842576022f9572 100644
--- a/content/browser/dom_storage/dom_storage_context_wrapper.h
+++ b/content/browser/dom_storage/dom_storage_context_wrapper.h
@@ -35,7 +35,9 @@ class CONTENT_EXPORT DOMStorageContextWrapper :
public:
// If |data_path| is empty, nothing will be saved to disk.
DOMStorageContextWrapper(
+ const std::string& mojo_user_id,
const base::FilePath& data_path,
+ const base::FilePath& local_partition_path,
storage::SpecialStoragePolicy* special_storage_policy);
// DOMStorageContext implementation.
@@ -74,12 +76,10 @@ class CONTENT_EXPORT DOMStorageContextWrapper :
~DOMStorageContextWrapper() override;
DOMStorageContextImpl* context() const { return context_.get(); }
- void LevelDBWrapperImplHasNoBindings(const std::string& origin);
-
- // Used for mojo-based LocalStorage implementation (behind
- // --mojo-local-storage for now). Maps between an origin and its prefixed
- // LevelDB view.
- std::map<std::string, scoped_ptr<LevelDBWrapperImpl>> level_db_wrappers_;
+ // An inner class to keep all mojo-ish details together and not bleed them
+ // through the public interface.
+ class MojoState;
+ scoped_ptr<MojoState> mojo_state_;
scoped_refptr<DOMStorageContextImpl> context_;

Powered by Google App Engine
This is Rietveld 408576698