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

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

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build Created 6 years, 4 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 | Annotate | Revision Log
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 "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/browser/dom_storage_context.h" 10 #include "content/public/browser/dom_storage_context.h"
11 11
12 namespace base { 12 namespace base {
13 class FilePath; 13 class FilePath;
14 } 14 }
15 15
16 namespace quota { 16 namespace storage {
17 class SpecialStoragePolicy; 17 class SpecialStoragePolicy;
18 } 18 }
19 19
20 namespace content { 20 namespace content {
21 21
22 class DOMStorageContextImpl; 22 class DOMStorageContextImpl;
23 23
24 // This is owned by BrowserContext (aka Profile) and encapsulates all 24 // This is owned by BrowserContext (aka Profile) and encapsulates all
25 // per-profile dom storage state. 25 // per-profile dom storage state.
26 class CONTENT_EXPORT DOMStorageContextWrapper : 26 class CONTENT_EXPORT DOMStorageContextWrapper :
27 NON_EXPORTED_BASE(public DOMStorageContext), 27 NON_EXPORTED_BASE(public DOMStorageContext),
28 public base::RefCountedThreadSafe<DOMStorageContextWrapper> { 28 public base::RefCountedThreadSafe<DOMStorageContextWrapper> {
29 public: 29 public:
30 // If |data_path| is empty, nothing will be saved to disk. 30 // If |data_path| is empty, nothing will be saved to disk.
31 DOMStorageContextWrapper(const base::FilePath& data_path, 31 DOMStorageContextWrapper(
32 quota::SpecialStoragePolicy* special_storage_policy); 32 const base::FilePath& data_path,
33 storage::SpecialStoragePolicy* special_storage_policy);
33 34
34 // DOMStorageContext implementation. 35 // DOMStorageContext implementation.
35 virtual void GetLocalStorageUsage( 36 virtual void GetLocalStorageUsage(
36 const GetLocalStorageUsageCallback& callback) OVERRIDE; 37 const GetLocalStorageUsageCallback& callback) OVERRIDE;
37 virtual void GetSessionStorageUsage( 38 virtual void GetSessionStorageUsage(
38 const GetSessionStorageUsageCallback& callback) OVERRIDE; 39 const GetSessionStorageUsageCallback& callback) OVERRIDE;
39 virtual void DeleteLocalStorage(const GURL& origin) OVERRIDE; 40 virtual void DeleteLocalStorage(const GURL& origin) OVERRIDE;
40 virtual void DeleteSessionStorage( 41 virtual void DeleteSessionStorage(
41 const SessionStorageUsageInfo& usage_info) OVERRIDE; 42 const SessionStorageUsageInfo& usage_info) OVERRIDE;
42 virtual void SetSaveSessionStorageOnDisk() OVERRIDE; 43 virtual void SetSaveSessionStorageOnDisk() OVERRIDE;
(...skipping 19 matching lines...) Expand all
62 DOMStorageContextImpl* context() const { return context_.get(); } 63 DOMStorageContextImpl* context() const { return context_.get(); }
63 64
64 scoped_refptr<DOMStorageContextImpl> context_; 65 scoped_refptr<DOMStorageContextImpl> context_;
65 66
66 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextWrapper); 67 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextWrapper);
67 }; 68 };
68 69
69 } // namespace content 70 } // namespace content
70 71
71 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_ 72 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_
OLDNEW
« no previous file with comments | « content/browser/dom_storage/dom_storage_context_impl.cc ('k') | content/browser/dom_storage/dom_storage_context_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698