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

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

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_IMPL_H_ 5 #ifndef CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_IMPL_H_
6 #define CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_IMPL_H_ 6 #define CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_IMPL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "content/public/browser/dom_storage_context.h" 9 #include "content/public/browser/dom_storage_context.h"
10 10
11 namespace base {
11 class FilePath; 12 class FilePath;
13 }
12 14
13 namespace dom_storage { 15 namespace dom_storage {
14 class DomStorageContext; 16 class DomStorageContext;
15 } 17 }
16 18
17 namespace quota { 19 namespace quota {
18 class SpecialStoragePolicy; 20 class SpecialStoragePolicy;
19 } 21 }
20 22
21 namespace content { 23 namespace content {
22 24
23 // This is owned by BrowserContext (aka Profile) and encapsulates all 25 // This is owned by BrowserContext (aka Profile) and encapsulates all
24 // per-profile dom storage state. 26 // per-profile dom storage state.
25 class CONTENT_EXPORT DOMStorageContextImpl : 27 class CONTENT_EXPORT DOMStorageContextImpl :
26 NON_EXPORTED_BASE(public DOMStorageContext), 28 NON_EXPORTED_BASE(public DOMStorageContext),
27 public base::RefCountedThreadSafe<DOMStorageContextImpl> { 29 public base::RefCountedThreadSafe<DOMStorageContextImpl> {
28 public: 30 public:
29 // If |data_path| is empty, nothing will be saved to disk. 31 // If |data_path| is empty, nothing will be saved to disk.
30 DOMStorageContextImpl(const FilePath& data_path, 32 DOMStorageContextImpl(const base::FilePath& data_path,
31 quota::SpecialStoragePolicy* special_storage_policy); 33 quota::SpecialStoragePolicy* special_storage_policy);
32 34
33 // DOMStorageContext implementation. 35 // DOMStorageContext implementation.
34 virtual void GetLocalStorageUsage( 36 virtual void GetLocalStorageUsage(
35 const GetLocalStorageUsageCallback& callback) OVERRIDE; 37 const GetLocalStorageUsageCallback& callback) OVERRIDE;
36 virtual void GetSessionStorageUsage( 38 virtual void GetSessionStorageUsage(
37 const GetSessionStorageUsageCallback& callback) OVERRIDE; 39 const GetSessionStorageUsageCallback& callback) OVERRIDE;
38 virtual void DeleteLocalStorage(const GURL& origin) OVERRIDE; 40 virtual void DeleteLocalStorage(const GURL& origin) OVERRIDE;
39 virtual void DeleteSessionStorage( 41 virtual void DeleteSessionStorage(
40 const dom_storage::SessionStorageUsageInfo& usage_info) OVERRIDE; 42 const dom_storage::SessionStorageUsageInfo& usage_info) OVERRIDE;
(...skipping 23 matching lines...) Expand all
64 dom_storage::DomStorageContext* context() const { return context_.get(); } 66 dom_storage::DomStorageContext* context() const { return context_.get(); }
65 67
66 scoped_refptr<dom_storage::DomStorageContext> context_; 68 scoped_refptr<dom_storage::DomStorageContext> context_;
67 69
68 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextImpl); 70 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextImpl);
69 }; 71 };
70 72
71 } // namespace content 73 } // namespace content
72 74
73 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_IMPL_H_ 75 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/child_process_security_policy_impl.h ('k') | content/browser/download/download_item_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698