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..e81c5853b72dc3728ce137c4b4d8ba1c1b5ffb88 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. |
@@ -62,9 +64,8 @@ class CONTENT_EXPORT DOMStorageContextWrapper : |
void Flush(); |
// See StoragePartitionService interface. |
- void OpenLocalStorage( |
- const mojo::String& origin, |
- mojo::InterfaceRequest<LevelDBWrapper> request); |
+ void OpenLocalStorage(const mojo::String& origin, |
+ LevelDBWrapperRequest request); |
private: |
friend class DOMStorageMessageFilter; // for access to context() |
@@ -74,12 +75,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. |
michaeln
2016/03/16 03:11:13
thnx
|
+ class MojoState; |
+ scoped_ptr<MojoState> mojo_state_; |
scoped_refptr<DOMStorageContextImpl> context_; |