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

Side by Side Diff: content/common/quota_messages.h

Issue 203073003: Use of validating IPC enum macros for quota messages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« no previous file with comments | « AUTHORS ('k') | webkit/common/quota/quota_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ipc/ipc_message_macros.h" 8 #include "ipc/ipc_message_macros.h"
9 #include "url/gurl.h" 9 #include "url/gurl.h"
10 #include "webkit/common/quota/quota_types.h" 10 #include "webkit/common/quota/quota_types.h"
11 11
12 #define IPC_MESSAGE_START QuotaMsgStart 12 #define IPC_MESSAGE_START QuotaMsgStart
13 13
14 IPC_ENUM_TRAITS(quota::StorageType) 14 IPC_ENUM_TRAITS_MAX_VALUE(quota::StorageType, quota::kStorageTypeLast)
15 IPC_ENUM_TRAITS(quota::QuotaStatusCode) 15 IPC_ENUM_TRAITS(quota::QuotaStatusCode)
16 16
17 // Quota messages sent from the browser to the child process. 17 // Quota messages sent from the browser to the child process.
18 18
19 IPC_MESSAGE_CONTROL3(QuotaMsg_DidGrantStorageQuota, 19 IPC_MESSAGE_CONTROL3(QuotaMsg_DidGrantStorageQuota,
20 int /* request_id */, 20 int /* request_id */,
21 int64 /* current_usage */, 21 int64 /* current_usage */,
22 int64 /* granted_quota */) 22 int64 /* granted_quota */)
23 23
24 IPC_MESSAGE_CONTROL3(QuotaMsg_DidQueryStorageUsageAndQuota, 24 IPC_MESSAGE_CONTROL3(QuotaMsg_DidQueryStorageUsageAndQuota,
(...skipping 11 matching lines...) Expand all
36 int /* request_id */, 36 int /* request_id */,
37 GURL /* origin_url */, 37 GURL /* origin_url */,
38 quota::StorageType /* type */) 38 quota::StorageType /* type */)
39 39
40 IPC_MESSAGE_CONTROL5(QuotaHostMsg_RequestStorageQuota, 40 IPC_MESSAGE_CONTROL5(QuotaHostMsg_RequestStorageQuota,
41 int /* render_view_id */, 41 int /* render_view_id */,
42 int /* request_id */, 42 int /* request_id */,
43 GURL /* origin_url */, 43 GURL /* origin_url */,
44 quota::StorageType /* type */, 44 quota::StorageType /* type */,
45 uint64 /* requested_size */) 45 uint64 /* requested_size */)
OLDNEW
« no previous file with comments | « AUTHORS ('k') | webkit/common/quota/quota_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698