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

Unified Diff: content/common/quota_messages.h

Issue 185793004: [Quota] Pass user gesture state with quota request message. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change name, file Created 6 years, 9 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
« no previous file with comments | « content/child/quota_dispatcher.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/quota_messages.h
diff --git a/content/common/quota_messages.h b/content/common/quota_messages.h
index d3d0f8392fe837c21c67df531e24ccc6bc3bb8b5..bbfd6e684f24c492d727f52d71771d6ef893ee15 100644
--- a/content/common/quota_messages.h
+++ b/content/common/quota_messages.h
@@ -5,6 +5,7 @@
// Multiply-included message file, hence no include guard.
#include "base/basictypes.h"
+#include "content/public/common/storage_quota_params.h"
#include "ipc/ipc_message_macros.h"
#include "url/gurl.h"
#include "webkit/common/quota/quota_types.h"
@@ -14,6 +15,15 @@
IPC_ENUM_TRAITS_MAX_VALUE(quota::StorageType, quota::kStorageTypeLast)
IPC_ENUM_TRAITS(quota::QuotaStatusCode)
+IPC_STRUCT_TRAITS_BEGIN(content::StorageQuotaParams)
+ IPC_STRUCT_TRAITS_MEMBER(render_view_id)
+ IPC_STRUCT_TRAITS_MEMBER(request_id)
+ IPC_STRUCT_TRAITS_MEMBER(origin_url)
+ IPC_STRUCT_TRAITS_MEMBER(storage_type)
+ IPC_STRUCT_TRAITS_MEMBER(requested_size)
+ IPC_STRUCT_TRAITS_MEMBER(user_gesture)
+IPC_STRUCT_TRAITS_END()
+
// Quota messages sent from the browser to the child process.
IPC_MESSAGE_CONTROL3(QuotaMsg_DidGrantStorageQuota,
@@ -37,9 +47,5 @@ IPC_MESSAGE_CONTROL3(QuotaHostMsg_QueryStorageUsageAndQuota,
GURL /* origin_url */,
quota::StorageType /* type */)
-IPC_MESSAGE_CONTROL5(QuotaHostMsg_RequestStorageQuota,
- int /* render_view_id */,
- int /* request_id */,
- GURL /* origin_url */,
- quota::StorageType /* type */,
- uint64 /* requested_size */)
+IPC_MESSAGE_CONTROL1(QuotaHostMsg_RequestStorageQuota,
+ content::StorageQuotaParams)
« no previous file with comments | « content/child/quota_dispatcher.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698