OLD | NEW |
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/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 16 matching lines...) Expand all Loading... |
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 uint32 storage_mask, | 33 uint32 storage_mask, |
34 const GURL& storage_origin, | 34 const GURL& storage_origin, |
35 net::URLRequestContextGetter* request_context_getter) OVERRIDE; | 35 net::URLRequestContextGetter* request_context_getter) OVERRIDE; |
36 virtual void AsyncClearData(uint32 storage_mask) OVERRIDE; | 36 virtual void AsyncClearData(uint32 storage_mask) OVERRIDE; |
| 37 virtual void AsyncClearDataBetween( |
| 38 uint32 storage_mask, |
| 39 const base::Time& begin, |
| 40 const base::Time& end, |
| 41 const base::Closure& callback) OVERRIDE; |
37 | 42 |
38 private: | 43 private: |
39 friend class StoragePartitionImplMap; | 44 friend class StoragePartitionImplMap; |
| 45 FRIEND_TEST_ALL_PREFIXES(StoragePartitionShaderClearTest, ClearShaderCache); |
40 | 46 |
41 // The |partition_path| is the absolute path to the root of this | 47 // The |partition_path| is the absolute path to the root of this |
42 // StoragePartition's on-disk storage. | 48 // StoragePartition's on-disk storage. |
43 // | 49 // |
44 // If |in_memory| is true, the |partition_path| is (ab)used as a way of | 50 // If |in_memory| is true, the |partition_path| is (ab)used as a way of |
45 // distinguishing different in-memory partitions, but nothing is persisted | 51 // distinguishing different in-memory partitions, but nothing is persisted |
46 // on to disk. | 52 // on to disk. |
47 static StoragePartitionImpl* Create(BrowserContext* context, | 53 static StoragePartitionImpl* Create(BrowserContext* context, |
48 bool in_memory, | 54 bool in_memory, |
49 const base::FilePath& profile_path); | 55 const base::FilePath& profile_path); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; | 88 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; |
83 scoped_refptr<DOMStorageContextImpl> dom_storage_context_; | 89 scoped_refptr<DOMStorageContextImpl> dom_storage_context_; |
84 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; | 90 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; |
85 | 91 |
86 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); | 92 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); |
87 }; | 93 }; |
88 | 94 |
89 } // namespace content | 95 } // namespace content |
90 | 96 |
91 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ | 97 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ |
OLD | NEW |