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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "content/public/common/quota_types.h"
8 #include "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
9 #include "url/gurl.h" 10 #include "url/gurl.h"
10 #include "webkit/common/quota/quota_types.h" 11 #include "webkit/common/quota/quota_types.h"
11 12
12 #define IPC_MESSAGE_START QuotaMsgStart 13 #define IPC_MESSAGE_START QuotaMsgStart
13 14
14 IPC_ENUM_TRAITS(quota::StorageType) 15 IPC_ENUM_TRAITS(quota::StorageType)
15 IPC_ENUM_TRAITS(quota::QuotaStatusCode) 16 IPC_ENUM_TRAITS(quota::QuotaStatusCode)
16 17
18 IPC_STRUCT_TRAITS_BEGIN(content::RequestStorageQuotaParams)
19 IPC_STRUCT_TRAITS_MEMBER(render_view_id)
20 IPC_STRUCT_TRAITS_MEMBER(request_id)
21 IPC_STRUCT_TRAITS_MEMBER(origin_url)
22 IPC_STRUCT_TRAITS_MEMBER(storage_type)
23 IPC_STRUCT_TRAITS_MEMBER(requested_size)
24 IPC_STRUCT_TRAITS_MEMBER(user_gesture)
25 IPC_STRUCT_TRAITS_END()
26
17 // Quota messages sent from the browser to the child process. 27 // Quota messages sent from the browser to the child process.
18 28
19 IPC_MESSAGE_CONTROL3(QuotaMsg_DidGrantStorageQuota, 29 IPC_MESSAGE_CONTROL3(QuotaMsg_DidGrantStorageQuota,
20 int /* request_id */, 30 int /* request_id */,
21 int64 /* current_usage */, 31 int64 /* current_usage */,
22 int64 /* granted_quota */) 32 int64 /* granted_quota */)
23 33
24 IPC_MESSAGE_CONTROL3(QuotaMsg_DidQueryStorageUsageAndQuota, 34 IPC_MESSAGE_CONTROL3(QuotaMsg_DidQueryStorageUsageAndQuota,
25 int /* request_id */, 35 int /* request_id */,
26 int64 /* current_usage */, 36 int64 /* current_usage */,
27 int64 /* current_quota */) 37 int64 /* current_quota */)
28 38
29 IPC_MESSAGE_CONTROL2(QuotaMsg_DidFail, 39 IPC_MESSAGE_CONTROL2(QuotaMsg_DidFail,
30 int /* request_id */, 40 int /* request_id */,
31 quota::QuotaStatusCode /* error */) 41 quota::QuotaStatusCode /* error */)
32 42
33 // Quota messages sent from the child process to the browser. 43 // Quota messages sent from the child process to the browser.
34 44
35 IPC_MESSAGE_CONTROL3(QuotaHostMsg_QueryStorageUsageAndQuota, 45 IPC_MESSAGE_CONTROL3(QuotaHostMsg_QueryStorageUsageAndQuota,
36 int /* request_id */, 46 int /* request_id */,
37 GURL /* origin_url */, 47 GURL /* origin_url */,
38 quota::StorageType /* type */) 48 quota::StorageType /* type */)
39 49
40 IPC_MESSAGE_CONTROL5(QuotaHostMsg_RequestStorageQuota, 50 IPC_MESSAGE_CONTROL1(QuotaHostMsg_RequestStorageQuota,
41 int /* render_view_id */, 51 content::RequestStorageQuotaParams)
42 int /* request_id */,
43 GURL /* origin_url */,
44 quota::StorageType /* type */,
45 uint64 /* requested_size */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698