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

Side by Side Diff: webkit/common/quota/quota_types.h

Issue 185793004: [Quota] Pass user gesture state with quota request message. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 months 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/public/browser/quota_permission_context.h ('k') | webkit/common/quota/quota_types.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 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_
OLDNEW
« no previous file with comments | « content/public/browser/quota_permission_context.h ('k') | webkit/common/quota/quota_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698