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_PUBLIC_BROWSER_STORAGE_PARTITION_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
6 #define CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ | 6 #define CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // Corresponds to quota::kStorageTypePersistent. | 65 // Corresponds to quota::kStorageTypePersistent. |
66 kQuotaManagedPersistentStorage = 1 << 2, | 66 kQuotaManagedPersistentStorage = 1 << 2, |
67 | 67 |
68 // Local dom storage. | 68 // Local dom storage. |
69 kLocalDomStorage = 1 << 3, | 69 kLocalDomStorage = 1 << 3, |
70 kSessionDomStorage = 1 << 4, | 70 kSessionDomStorage = 1 << 4, |
71 | 71 |
72 // Local shader storage. | 72 // Local shader storage. |
73 kShaderStorage = 1 << 5, | 73 kShaderStorage = 1 << 5, |
74 | 74 |
| 75 // Corresponds to quota::kStorageTypeSyncable. |
| 76 kQuotaManagedSyncableStorage = 1 << 6, |
| 77 |
75 kAllStorage = -1, | 78 kAllStorage = -1, |
76 }; | 79 }; |
77 | 80 |
78 // Starts an asynchronous task that does a best-effort clear the data | 81 // Starts an asynchronous task that does a best-effort clear the data |
79 // corresonding to the given |storage_mask| inside this StoragePartition for | 82 // corresonding to the given |storage_mask| inside this StoragePartition for |
80 // the given |storage_origin|. Note kSessionDomStorage is not cleared and the | 83 // the given |storage_origin|. Note kSessionDomStorage is not cleared and the |
81 // mask is ignored. | 84 // mask is ignored. |
82 // | 85 // |
83 // TODO(ajwong): Right now, the embedder may have some | 86 // TODO(ajwong): Right now, the embedder may have some |
84 // URLRequestContextGetter objects that the StoragePartition does not know | 87 // URLRequestContextGetter objects that the StoragePartition does not know |
(...skipping 18 matching lines...) Expand all Loading... |
103 const base::Time& begin, | 106 const base::Time& begin, |
104 const base::Time& end, | 107 const base::Time& end, |
105 const base::Closure& callback) = 0; | 108 const base::Closure& callback) = 0; |
106 protected: | 109 protected: |
107 virtual ~StoragePartition() {} | 110 virtual ~StoragePartition() {} |
108 }; | 111 }; |
109 | 112 |
110 } // namespace content | 113 } // namespace content |
111 | 114 |
112 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ | 115 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
OLD | NEW |