OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Multiply-included message file, hence no include guard. | 5 // Multiply-included message file, hence no include guard. |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "ipc/ipc_message_macros.h" | 8 #include "ipc/ipc_message_macros.h" |
9 #include "url/gurl.h" | 9 #include "url/gurl.h" |
10 #include "webkit/common/quota/quota_types.h" | 10 #include "webkit/common/quota/quota_types.h" |
11 | 11 |
12 #define IPC_MESSAGE_START QuotaMsgStart | 12 #define IPC_MESSAGE_START QuotaMsgStart |
13 | 13 |
14 IPC_ENUM_TRAITS(quota::StorageType) | 14 IPC_ENUM_TRAITS(quota::StorageType) |
15 IPC_ENUM_TRAITS(quota::QuotaStatusCode) | 15 IPC_ENUM_TRAITS(quota::QuotaStatusCode) |
16 | 16 |
| 17 IPC_STRUCT_TRAITS_BEGIN(quota::RequestStorageQuotaParams) |
| 18 IPC_STRUCT_TRAITS_MEMBER(render_view_id) |
| 19 IPC_STRUCT_TRAITS_MEMBER(request_id) |
| 20 IPC_STRUCT_TRAITS_MEMBER(origin_url) |
| 21 IPC_STRUCT_TRAITS_MEMBER(storage_type) |
| 22 IPC_STRUCT_TRAITS_MEMBER(requested_size) |
| 23 IPC_STRUCT_TRAITS_MEMBER(user_gesture) |
| 24 IPC_STRUCT_TRAITS_END() |
| 25 |
17 // Quota messages sent from the browser to the child process. | 26 // Quota messages sent from the browser to the child process. |
18 | 27 |
19 IPC_MESSAGE_CONTROL3(QuotaMsg_DidGrantStorageQuota, | 28 IPC_MESSAGE_CONTROL3(QuotaMsg_DidGrantStorageQuota, |
20 int /* request_id */, | 29 int /* request_id */, |
21 int64 /* current_usage */, | 30 int64 /* current_usage */, |
22 int64 /* granted_quota */) | 31 int64 /* granted_quota */) |
23 | 32 |
24 IPC_MESSAGE_CONTROL3(QuotaMsg_DidQueryStorageUsageAndQuota, | 33 IPC_MESSAGE_CONTROL3(QuotaMsg_DidQueryStorageUsageAndQuota, |
25 int /* request_id */, | 34 int /* request_id */, |
26 int64 /* current_usage */, | 35 int64 /* current_usage */, |
27 int64 /* current_quota */) | 36 int64 /* current_quota */) |
28 | 37 |
29 IPC_MESSAGE_CONTROL2(QuotaMsg_DidFail, | 38 IPC_MESSAGE_CONTROL2(QuotaMsg_DidFail, |
30 int /* request_id */, | 39 int /* request_id */, |
31 quota::QuotaStatusCode /* error */) | 40 quota::QuotaStatusCode /* error */) |
32 | 41 |
33 // Quota messages sent from the child process to the browser. | 42 // Quota messages sent from the child process to the browser. |
34 | 43 |
35 IPC_MESSAGE_CONTROL3(QuotaHostMsg_QueryStorageUsageAndQuota, | 44 IPC_MESSAGE_CONTROL3(QuotaHostMsg_QueryStorageUsageAndQuota, |
36 int /* request_id */, | 45 int /* request_id */, |
37 GURL /* origin_url */, | 46 GURL /* origin_url */, |
38 quota::StorageType /* type */) | 47 quota::StorageType /* type */) |
39 | 48 |
40 IPC_MESSAGE_CONTROL5(QuotaHostMsg_RequestStorageQuota, | 49 IPC_MESSAGE_CONTROL1(QuotaHostMsg_RequestStorageQuota, |
41 int /* render_view_id */, | 50 quota::RequestStorageQuotaParams) |
42 int /* request_id */, | |
43 GURL /* origin_url */, | |
44 quota::StorageType /* type */, | |
45 uint64 /* requested_size */) | |
OLD | NEW |