OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 WEBKIT_COMMON_QUOTA_QUOTA_TYPES_H_ | 5 #ifndef WEBKIT_COMMON_QUOTA_QUOTA_TYPES_H_ |
6 #define WEBKIT_COMMON_QUOTA_QUOTA_TYPES_H_ | 6 #define WEBKIT_COMMON_QUOTA_QUOTA_TYPES_H_ |
7 | 7 |
| 8 #include "url/gurl.h" |
8 #include "webkit/common/quota/quota_status_code.h" | 9 #include "webkit/common/quota/quota_status_code.h" |
| 10 #include "webkit/common/webkit_storage_common_export.h" |
9 | 11 |
10 namespace quota { | 12 namespace quota { |
11 | 13 |
12 enum StorageType { | 14 enum StorageType { |
13 kStorageTypeTemporary, | 15 kStorageTypeTemporary, |
14 kStorageTypePersistent, | 16 kStorageTypePersistent, |
15 kStorageTypeSyncable, | 17 kStorageTypeSyncable, |
16 kStorageTypeQuotaNotManaged, | 18 kStorageTypeQuotaNotManaged, |
17 kStorageTypeUnknown, | 19 kStorageTypeUnknown, |
18 }; | 20 }; |
19 | 21 |
20 enum QuotaLimitType { | 22 enum QuotaLimitType { |
21 kQuotaLimitTypeUnknown, | 23 kQuotaLimitTypeUnknown, |
22 kQuotaLimitTypeLimited, | 24 kQuotaLimitTypeLimited, |
23 kQuotaLimitTypeUnlimited, | 25 kQuotaLimitTypeUnlimited, |
24 }; | 26 }; |
25 | 27 |
| 28 struct WEBKIT_STORAGE_COMMON_EXPORT RequestStorageQuotaParams { |
| 29 RequestStorageQuotaParams(); |
| 30 ~RequestStorageQuotaParams(); |
| 31 |
| 32 int render_view_id; |
| 33 int request_id; |
| 34 GURL origin_url; |
| 35 quota::StorageType storage_type; |
| 36 uint64 requested_size; |
| 37 bool user_gesture; |
| 38 }; |
| 39 |
26 } // namespace quota | 40 } // namespace quota |
27 | 41 |
28 #endif // WEBKIT_COMMON_QUOTA_QUOTA_TYPES_H_ | 42 #endif // WEBKIT_COMMON_QUOTA_QUOTA_TYPES_H_ |
OLD | NEW |