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

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: Remove stray mark. 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 7ec0899a0230884cd8609dbe561d0f2592f2dbca..4de7f5f48dc6bce2b84519d83fdc5eb688c0d784 100644
--- a/content/browser/dom_storage/dom_storage_context_wrapper.h
+++ b/content/browser/dom_storage/dom_storage_context_wrapper.h
@@ -36,7 +36,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.
@@ -63,9 +65,8 @@ class CONTENT_EXPORT DOMStorageContextWrapper :
void Flush();
// See StoragePartitionService interface.
- void OpenLocalStorage(
- const url::Origin& origin,
- mojo::InterfaceRequest<LevelDBWrapper> request);
+ void OpenLocalStorage(const url::Origin& origin,
+ LevelDBWrapperRequest request);
private:
friend class DOMStorageMessageFilter; // for access to context()
@@ -75,12 +76,10 @@ class CONTENT_EXPORT DOMStorageContextWrapper :
~DOMStorageContextWrapper() override;
DOMStorageContextImpl* context() const { return context_.get(); }
- void LevelDBWrapperImplHasNoBindings(const url::Origin& origin);
-
- // Used for mojo-based LocalStorage implementation (behind
- // --mojo-local-storage for now). Maps between an origin and its prefixed
- // LevelDB view.
- std::map<url::Origin, 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