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

Side by Side Diff: content/browser/storage_partition_impl.h

Issue 11362268: Implement the ability to obliterate a storage partition from disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: source control is hard, let's go shopping! Created 8 years, 1 month 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
« no previous file with comments | « content/browser/browser_context.cc ('k') | content/browser/storage_partition_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_STORAGE_PARTITION_IMPL_H_ 5 #ifndef CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_
6 #define CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ 6 #define CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
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 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() OVERRIDE; 25 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() OVERRIDE;
26 virtual quota::QuotaManager* GetQuotaManager() OVERRIDE; 26 virtual quota::QuotaManager* GetQuotaManager() OVERRIDE;
27 virtual ChromeAppCacheService* GetAppCacheService() OVERRIDE; 27 virtual ChromeAppCacheService* GetAppCacheService() OVERRIDE;
28 virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE; 28 virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE;
29 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() OVERRIDE; 29 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() OVERRIDE;
30 virtual DOMStorageContextImpl* GetDOMStorageContext() OVERRIDE; 30 virtual DOMStorageContextImpl* GetDOMStorageContext() OVERRIDE;
31 virtual IndexedDBContextImpl* GetIndexedDBContext() OVERRIDE; 31 virtual IndexedDBContextImpl* GetIndexedDBContext() OVERRIDE;
32 virtual void AsyncClearDataForOrigin( 32 virtual void AsyncClearDataForOrigin(
33 const GURL& storage_origin, 33 const GURL& storage_origin,
34 net::URLRequestContextGetter* request_context_getter) OVERRIDE; 34 net::URLRequestContextGetter* request_context_getter) OVERRIDE;
35 virtual void AsyncClearAllData() OVERRIDE;
35 36
36 private: 37 private:
37 friend class StoragePartitionImplMap; 38 friend class StoragePartitionImplMap;
38 39
39 // The |partition_path| is the absolute path to the root of this 40 // The |partition_path| is the absolute path to the root of this
40 // StoragePartition's on-disk storage. 41 // StoragePartition's on-disk storage.
41 // 42 //
42 // If |in_memory| is true, the |partition_path| is (ab)used as a way of 43 // If |in_memory| is true, the |partition_path| is (ab)used as a way of
43 // distinguishing different in-memory partitions, but nothing is persisted 44 // distinguishing different in-memory partitions, but nothing is persisted
44 // on to disk. 45 // on to disk.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; 81 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_;
81 scoped_refptr<DOMStorageContextImpl> dom_storage_context_; 82 scoped_refptr<DOMStorageContextImpl> dom_storage_context_;
82 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; 83 scoped_refptr<IndexedDBContextImpl> indexed_db_context_;
83 84
84 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); 85 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl);
85 }; 86 };
86 87
87 } // namespace content 88 } // namespace content
88 89
89 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ 90 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/browser_context.cc ('k') | content/browser/storage_partition_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698