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

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

Issue 10449103: Update the DOMStorageContext public interface in the content layer to remove FilePaths and origin_i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 | 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 #pragma once 7 #pragma once
8 8
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 14 matching lines...) Expand all
25 // per-profile dom storage state. 25 // per-profile dom storage state.
26 class CONTENT_EXPORT DOMStorageContextImpl : 26 class CONTENT_EXPORT DOMStorageContextImpl :
27 NON_EXPORTED_BASE(public content::DOMStorageContext), 27 NON_EXPORTED_BASE(public content::DOMStorageContext),
28 public base::RefCountedThreadSafe<DOMStorageContextImpl> { 28 public base::RefCountedThreadSafe<DOMStorageContextImpl> {
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 DOMStorageContextImpl(const FilePath& data_path, 31 DOMStorageContextImpl(const FilePath& data_path,
32 quota::SpecialStoragePolicy* special_storage_policy); 32 quota::SpecialStoragePolicy* special_storage_policy);
33 33
34 // DOMStorageContext implementation. 34 // DOMStorageContext implementation.
35 virtual void GetUsageInfo(const GetUsageInfoCallback& callback) OVERRIDE;
36 virtual void DeleteOrigin(const GURL& origin) OVERRIDE;
37
38 // DEPRECATED DOMStorageContext implementation.
35 virtual void GetAllStorageFiles( 39 virtual void GetAllStorageFiles(
36 const GetAllStorageFilesCallback& callback) OVERRIDE; 40 const GetAllStorageFilesCallback& callback) OVERRIDE;
37 virtual FilePath GetFilePath(const string16& origin_id) const OVERRIDE; 41 virtual FilePath GetFilePath(const string16& origin_id) const OVERRIDE;
38 virtual void DeleteForOrigin(const string16& origin_id) OVERRIDE; 42 virtual void DeleteForOrigin(const string16& origin_id) OVERRIDE;
39 virtual void DeleteLocalStorageFile(const FilePath& file_path) OVERRIDE; 43 virtual void DeleteLocalStorageFile(const FilePath& file_path) OVERRIDE;
40 virtual void DeleteDataModifiedSince(const base::Time& cutoff) OVERRIDE; 44 virtual void DeleteDataModifiedSince(const base::Time& cutoff) OVERRIDE;
41 45
42 // Called to free up memory that's not strictly needed. 46 // Called to free up memory that's not strictly needed.
43 void PurgeMemory(); 47 void PurgeMemory();
44 48
(...skipping 18 matching lines...) Expand all
63 67
64 virtual ~DOMStorageContextImpl(); 68 virtual ~DOMStorageContextImpl();
65 dom_storage::DomStorageContext* context() const { return context_.get(); } 69 dom_storage::DomStorageContext* context() const { return context_.get(); }
66 70
67 scoped_refptr<dom_storage::DomStorageContext> context_; 71 scoped_refptr<dom_storage::DomStorageContext> context_;
68 72
69 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextImpl); 73 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextImpl);
70 }; 74 };
71 75
72 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_IMPL_H_ 76 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/dom_storage/dom_storage_context_impl.cc » ('j') | content/public/browser/dom_storage_context.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698