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

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

Issue 2420253002: Rename shell namespace to service_manager (Closed)
Patch Set: . Created 4 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_DOM_STORAGE_CONTEXT_WRAPPER_H_ 5 #ifndef CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_
6 #define CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_ 6 #define CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/memory_coordinator_client.h" 12 #include "base/memory/memory_coordinator_client.h"
13 #include "base/memory/memory_pressure_listener.h" 13 #include "base/memory/memory_pressure_listener.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "content/browser/dom_storage/dom_storage_context_impl.h" 15 #include "content/browser/dom_storage/dom_storage_context_impl.h"
16 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
17 #include "content/common/storage_partition_service.mojom.h" 17 #include "content/common/storage_partition_service.mojom.h"
18 #include "content/public/browser/dom_storage_context.h" 18 #include "content/public/browser/dom_storage_context.h"
19 #include "url/origin.h" 19 #include "url/origin.h"
20 20
21 namespace base { 21 namespace base {
22 class FilePath; 22 class FilePath;
23 } 23 }
24 24
25 namespace shell { 25 namespace service_manager {
26 class Connector; 26 class Connector;
27 } 27 }
28 28
29 namespace storage { 29 namespace storage {
30 class SpecialStoragePolicy; 30 class SpecialStoragePolicy;
31 } 31 }
32 32
33 namespace content { 33 namespace content {
34 34
35 class DOMStorageContextImpl; 35 class DOMStorageContextImpl;
36 class LevelDBWrapperImpl; 36 class LevelDBWrapperImpl;
37 37
38 // This is owned by Storage Partition and encapsulates all its dom storage 38 // This is owned by Storage Partition and encapsulates all its dom storage
39 // state. 39 // state.
40 class CONTENT_EXPORT DOMStorageContextWrapper : 40 class CONTENT_EXPORT DOMStorageContextWrapper :
41 NON_EXPORTED_BASE(public DOMStorageContext), 41 NON_EXPORTED_BASE(public DOMStorageContext),
42 public base::RefCountedThreadSafe<DOMStorageContextWrapper>, 42 public base::RefCountedThreadSafe<DOMStorageContextWrapper>,
43 public base::MemoryCoordinatorClient { 43 public base::MemoryCoordinatorClient {
44 public: 44 public:
45 // If |data_path| is empty, nothing will be saved to disk. 45 // If |data_path| is empty, nothing will be saved to disk.
46 DOMStorageContextWrapper( 46 DOMStorageContextWrapper(
47 shell::Connector* connector, 47 service_manager::Connector* connector,
48 const base::FilePath& data_path, 48 const base::FilePath& data_path,
49 const base::FilePath& local_partition_path, 49 const base::FilePath& local_partition_path,
50 storage::SpecialStoragePolicy* special_storage_policy); 50 storage::SpecialStoragePolicy* special_storage_policy);
51 51
52 // DOMStorageContext implementation. 52 // DOMStorageContext implementation.
53 void GetLocalStorageUsage( 53 void GetLocalStorageUsage(
54 const GetLocalStorageUsageCallback& callback) override; 54 const GetLocalStorageUsageCallback& callback) override;
55 void GetSessionStorageUsage( 55 void GetSessionStorageUsage(
56 const GetSessionStorageUsageCallback& callback) override; 56 const GetSessionStorageUsageCallback& callback) override;
57 void DeleteLocalStorage(const GURL& origin) override; 57 void DeleteLocalStorage(const GURL& origin) override;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; 103 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_;
104 104
105 scoped_refptr<DOMStorageContextImpl> context_; 105 scoped_refptr<DOMStorageContextImpl> context_;
106 106
107 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextWrapper); 107 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextWrapper);
108 }; 108 };
109 109
110 } // namespace content 110 } // namespace content
111 111
112 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_ 112 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698