| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_COMMON_STORAGE_QUOTA_PARAMS_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_STORAGE_QUOTA_PARAMS_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_STORAGE_QUOTA_PARAMS_H_ | 6 #define CONTENT_PUBLIC_COMMON_STORAGE_QUOTA_PARAMS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 #include "ipc/ipc_message.h" | 11 #include "ipc/ipc_message.h" |
| 12 #include "storage/common/quota/quota_types.h" | 12 #include "storage/common/quota/quota_types.h" |
| 13 #include "url/gurl.h" | 13 #include "url/gurl.h" |
| 14 | 14 |
| 15 namespace content { | 15 namespace content { |
| 16 | 16 |
| 17 // Parameters from the renderer to the browser process on a | 17 // Parameters from the renderer to the browser process on a |
| 18 // RequestStorageQuota call. | 18 // RequestStorageQuota call. |
| 19 struct CONTENT_EXPORT StorageQuotaParams { | 19 struct CONTENT_EXPORT StorageQuotaParams { |
| 20 StorageQuotaParams() | 20 StorageQuotaParams() |
| 21 : render_view_id(MSG_ROUTING_NONE), | 21 : render_frame_id(MSG_ROUTING_NONE), |
| 22 request_id(-1), | 22 request_id(-1), |
| 23 storage_type(storage::kStorageTypeTemporary), | 23 storage_type(storage::kStorageTypeTemporary), |
| 24 requested_size(0), | 24 requested_size(0), |
| 25 user_gesture(false) {} | 25 user_gesture(false) {} |
| 26 | 26 |
| 27 int render_view_id; | 27 int render_frame_id; |
| 28 int request_id; | 28 int request_id; |
| 29 GURL origin_url; | 29 GURL origin_url; |
| 30 storage::StorageType storage_type; | 30 storage::StorageType storage_type; |
| 31 uint64_t requested_size; | 31 uint64_t requested_size; |
| 32 | 32 |
| 33 // Request was made in the context of a user gesture. | 33 // Request was made in the context of a user gesture. |
| 34 bool user_gesture; | 34 bool user_gesture; |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 } // namespace content | 37 } // namespace content |
| 38 | 38 |
| 39 #endif // CONTENT_PUBLIC_COMMON_STORAGE_QUOTA_PARAMS_H_ | 39 #endif // CONTENT_PUBLIC_COMMON_STORAGE_QUOTA_PARAMS_H_ |
| OLD | NEW |