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 { | |
kinuko
2014/03/04 01:55:40
It feels having this in content/common/quota is mo
Greg Billock
2014/03/04 18:49:37
So in the messages file itself? I can do that.
kinuko
2014/03/05 01:07:35
I meant another file in content/common, but the cu
Greg Billock
2014/03/05 18:20:31
Done. I'll leave it here, then, esp. if these are
| |
29 RequestStorageQuotaParams(); | |
30 ~RequestStorageQuotaParams(); | |
31 | |
32 int render_view_id; | |
kinuko
2014/03/04 01:49:09
Strictly speaking referring render_view_id in webk
Greg Billock
2014/03/04 18:49:37
ok.
| |
33 int request_id; | |
34 GURL origin_url; | |
35 quota::StorageType storage_type; | |
kinuko
2014/03/04 01:49:09
nit: no need of quota:: here
Greg Billock
2014/03/04 18:49:37
Done.
| |
36 uint64 requested_size; | |
37 bool user_gesture; | |
kinuko
2014/03/04 01:55:40
It's not obvious what does this flag means here--
Greg Billock
2014/03/04 18:49:37
Basically that the message originated in the conte
| |
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 |