Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Unified Diff: content/common/quota_messages.h

Issue 6811022: Add IPC plumbing code for Quota API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/quota_messages.h
diff --git a/content/common/quota_messages.h b/content/common/quota_messages.h
new file mode 100644
index 0000000000000000000000000000000000000000..0f167477707589770142ce90f4a045314aa24085
--- /dev/null
+++ b/content/common/quota_messages.h
@@ -0,0 +1,40 @@
+// 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 "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_CONTROL3(QuotaMsg_DidHandleRequestStorageQuota,
+ int /* request_id */,
+ WebKit::WebStorageQuotaError /* error */,
+ int64 /* granted_quota */);
+
+IPC_MESSAGE_CONTROL4(QuotaMsg_DidHandleQueryUsageAndQuotaQuery,
ericu 2011/04/08 03:31:18 The last Query seems redundant. But if you don't
kinuko 2011/04/08 09:02:53 Renamed this to DidQueryStorageUsageAndQuota too.
+ int /* request_id */,
+ WebKit::WebStorageQuotaError /* error */,
+ int64 /* current_usage */,
+ int64 /* current_quota */);
+
+// 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 /* requesting_size */);
ericu 2011/04/08 03:31:18 s/requesting/requested/
kinuko 2011/04/08 09:02:53 Done.

Powered by Google App Engine
This is Rietveld 408576698