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

Side by Side Diff: content/browser/dom_storage/local_storage_context_mojo.h

Issue 2847013002: Switch to mojo localstorage backend by default. (Closed)
Patch Set: minor cleanup Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_DOM_STORAGE_LOCAL_STORAGE_CONTEXT_MOJO_H_ 5 #ifndef CONTENT_BROWSER_DOM_STORAGE_LOCAL_STORAGE_CONTEXT_MOJO_H_
6 #define CONTENT_BROWSER_DOM_STORAGE_LOCAL_STORAGE_CONTEXT_MOJO_H_ 6 #define CONTENT_BROWSER_DOM_STORAGE_LOCAL_STORAGE_CONTEXT_MOJO_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 10 matching lines...) Expand all
21 namespace storage { 21 namespace storage {
22 class SpecialStoragePolicy; 22 class SpecialStoragePolicy;
23 } 23 }
24 24
25 namespace content { 25 namespace content {
26 26
27 class DOMStorageTaskRunner; 27 class DOMStorageTaskRunner;
28 class LevelDBWrapperImpl; 28 class LevelDBWrapperImpl;
29 struct LocalStorageUsageInfo; 29 struct LocalStorageUsageInfo;
30 30
31 // Used for mojo-based LocalStorage implementation (behind --mojo-local-storage 31 // Used for mojo-based LocalStorage implementation (can be disabled with
32 // for now). 32 // --disable-mojo-local-storage for now).
33 // Created on the UI thread, but all further methods are called on the IO 33 // Created on the UI thread, but all further methods are called on the IO
34 // thread. Furthermore since destruction of this class can involve asynchronous 34 // thread. Furthermore since destruction of this class can involve asynchronous
35 // steps, it can only be deleted by calling ShutdownAndDelete (on the IO 35 // steps, it can only be deleted by calling ShutdownAndDelete (on the IO
36 // thread), 36 // thread),
37 class CONTENT_EXPORT LocalStorageContextMojo { 37 class CONTENT_EXPORT LocalStorageContextMojo {
38 public: 38 public:
39 using GetStorageUsageCallback = 39 using GetStorageUsageCallback =
40 base::OnceCallback<void(std::vector<LocalStorageUsageInfo>)>; 40 base::OnceCallback<void(std::vector<LocalStorageUsageInfo>)>;
41 41
42 LocalStorageContextMojo( 42 LocalStorageContextMojo(
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 // Used to access old data for migration. 148 // Used to access old data for migration.
149 scoped_refptr<DOMStorageTaskRunner> task_runner_; 149 scoped_refptr<DOMStorageTaskRunner> task_runner_;
150 base::FilePath old_localstorage_path_; 150 base::FilePath old_localstorage_path_;
151 151
152 base::WeakPtrFactory<LocalStorageContextMojo> weak_ptr_factory_; 152 base::WeakPtrFactory<LocalStorageContextMojo> weak_ptr_factory_;
153 }; 153 };
154 154
155 } // namespace content 155 } // namespace content
156 156
157 #endif // CONTENT_BROWSER_DOM_STORAGE_LOCAL_STORAGE_CONTEXT_MOJO_H_ 157 #endif // CONTENT_BROWSER_DOM_STORAGE_LOCAL_STORAGE_CONTEXT_MOJO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698