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
3 // found in the LICENSE file.
5 // Multiply-included message file, hence no include guard.
7 #include "base/basictypes.h"
8 #include "ipc/ipc_message_macros.h"
10 #include "webkit/common/quota/quota_types.h"
12 #define IPC_MESSAGE_START QuotaMsgStart
14 IPC_ENUM_TRAITS(quota::StorageType)
15 IPC_ENUM_TRAITS(quota::QuotaStatusCode)
17 // Quota messages sent from the browser to the child process.
19 IPC_MESSAGE_CONTROL3(QuotaMsg_DidGrantStorageQuota,
21 int64 /* current_usage */,
22 int64 /* granted_quota */)
24 IPC_MESSAGE_CONTROL3(QuotaMsg_DidQueryStorageUsageAndQuota,
26 int64 /* current_usage */,
27 int64 /* current_quota */)
29 IPC_MESSAGE_CONTROL2(QuotaMsg_DidFail,
31 quota::QuotaStatusCode /* error */)
33 // Quota messages sent from the child process to the browser.
35 IPC_MESSAGE_CONTROL3(QuotaHostMsg_QueryStorageUsageAndQuota,
37 GURL /* origin_url */,
38 quota::StorageType /* type */)
40 IPC_MESSAGE_CONTROL5(QuotaHostMsg_RequestStorageQuota,
41 int /* render_view_id */,
43 GURL /* origin_url */,
44 quota::StorageType /* type */,
45 int64 /* requested_size */)