summaryrefslogtreecommitdiffstats
path: root/content/common/quota_messages.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/common/quota_messages.h')
-rw-r--r--content/common/quota_messages.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/content/common/quota_messages.h b/content/common/quota_messages.h
new file mode 100644
index 0000000..205c4a8
--- /dev/null
+++ b/content/common/quota_messages.h
@@ -0,0 +1,43 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Multiply-included message file, hence no include guard.
+
+#include "base/basictypes.h"
+#include "ipc/ipc_message_macros.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageQuotaError.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageQuotaType.h"
+
+#define IPC_MESSAGE_START QuotaMsgStart
+
+IPC_ENUM_TRAITS(WebKit::WebStorageQuotaType)
+IPC_ENUM_TRAITS(WebKit::WebStorageQuotaError)
+
+// Quota messages sent from the browser to the child process.
+
+IPC_MESSAGE_CONTROL2(QuotaMsg_DidGrantStorageQuota,
+ int /* request_id */,
+ int64 /* granted_quota */)
+
+IPC_MESSAGE_CONTROL3(QuotaMsg_DidQueryStorageUsageAndQuota,
+ int /* request_id */,
+ int64 /* current_usage */,
+ int64 /* current_quota */)
+
+IPC_MESSAGE_CONTROL2(QuotaMsg_DidFail,
+ int /* request_id */,
+ WebKit::WebStorageQuotaError /* error */)
+
+// Quota messages sent from the child process to the browser.
+
+IPC_MESSAGE_CONTROL3(QuotaHostMsg_QueryStorageUsageAndQuota,
+ int /* request_id */,
+ GURL /* origin_url */,
+ WebKit::WebStorageQuotaType /* type */)
+
+IPC_MESSAGE_CONTROL4(QuotaHostMsg_RequestStorageQuota,
+ int /* request_id */,
+ GURL /* origin_url */,
+ WebKit::WebStorageQuotaType /* type */,
+ int64 /* requested_size */)