Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
|
jam
2014/03/28 18:03:10
nit: 2014
also note (per content api wiki) that e
Greg Billock
2014/03/28 18:17:45
Will do.
jam
2014/03/31 17:27:27
per http://www.chromium.org/developers/content-mod
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_PUBLIC_COMMON_QUOTA_TYPES_H_ | |
| 6 #define CONTENT_PUBLIC_COMMON_QUOTA_TYPES_H_ | |
| 7 | |
| 8 #include "content/common/content_export.h" | |
| 9 #include "ipc/ipc_message.h" | |
| 10 #include "url/gurl.h" | |
| 11 #include "webkit/common/quota/quota_types.h" | |
| 12 | |
| 13 namespace content { | |
| 14 | |
| 15 // Parameters from the renderer to the browser process on a | |
| 16 // RequestStorageQuota call. | |
| 17 struct CONTENT_EXPORT RequestStorageQuotaParams { | |
| 18 RequestStorageQuotaParams() | |
| 19 : render_view_id(MSG_ROUTING_NONE), | |
| 20 request_id(-1), | |
| 21 storage_type(quota::kStorageTypeTemporary), | |
| 22 requested_size(0), | |
| 23 user_gesture(false) {} | |
| 24 | |
| 25 int render_view_id; | |
| 26 int request_id; | |
| 27 GURL origin_url; | |
| 28 quota::StorageType storage_type; | |
| 29 uint64 requested_size; | |
| 30 | |
| 31 // Request was made in the context of a user gesture. | |
| 32 bool user_gesture; | |
| 33 }; | |
| 34 | |
| 35 } // namespace content | |
| 36 | |
| 37 #endif // CONTENT_PUBLIC_COMMON_QUOTA_TYPES_H_ | |
| OLD | NEW |