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

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

Issue 1101053002: Apply automatic range checks to content enum types across IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incoporated review comments Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | storage/common/quota/quota_status_code.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 "content/public/common/storage_quota_params.h" 8 #include "content/public/common/storage_quota_params.h"
9 #include "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
10 #include "storage/common/quota/quota_types.h" 10 #include "storage/common/quota/quota_types.h"
11 #include "url/gurl.h" 11 #include "url/gurl.h"
12 12
13 #define IPC_MESSAGE_START QuotaMsgStart 13 #define IPC_MESSAGE_START QuotaMsgStart
14 14
15 IPC_ENUM_TRAITS_MAX_VALUE(storage::StorageType, storage::kStorageTypeLast) 15 IPC_ENUM_TRAITS_MAX_VALUE(storage::StorageType, storage::kStorageTypeLast)
16 IPC_ENUM_TRAITS(storage::QuotaStatusCode) 16 IPC_ENUM_TRAITS_MAX_VALUE(storage::QuotaStatusCode, storage::kQuotaStatusLast)
17 17
18 IPC_STRUCT_TRAITS_BEGIN(content::StorageQuotaParams) 18 IPC_STRUCT_TRAITS_BEGIN(content::StorageQuotaParams)
19 IPC_STRUCT_TRAITS_MEMBER(render_view_id) 19 IPC_STRUCT_TRAITS_MEMBER(render_view_id)
20 IPC_STRUCT_TRAITS_MEMBER(request_id) 20 IPC_STRUCT_TRAITS_MEMBER(request_id)
21 IPC_STRUCT_TRAITS_MEMBER(origin_url) 21 IPC_STRUCT_TRAITS_MEMBER(origin_url)
22 IPC_STRUCT_TRAITS_MEMBER(storage_type) 22 IPC_STRUCT_TRAITS_MEMBER(storage_type)
23 IPC_STRUCT_TRAITS_MEMBER(requested_size) 23 IPC_STRUCT_TRAITS_MEMBER(requested_size)
24 IPC_STRUCT_TRAITS_MEMBER(user_gesture) 24 IPC_STRUCT_TRAITS_MEMBER(user_gesture)
25 IPC_STRUCT_TRAITS_END() 25 IPC_STRUCT_TRAITS_END()
26 26
(...skipping 15 matching lines...) Expand all
42 42
43 // Quota messages sent from the child process to the browser. 43 // Quota messages sent from the child process to the browser.
44 44
45 IPC_MESSAGE_CONTROL3(QuotaHostMsg_QueryStorageUsageAndQuota, 45 IPC_MESSAGE_CONTROL3(QuotaHostMsg_QueryStorageUsageAndQuota,
46 int /* request_id */, 46 int /* request_id */,
47 GURL /* origin_url */, 47 GURL /* origin_url */,
48 storage::StorageType /* type */) 48 storage::StorageType /* type */)
49 49
50 IPC_MESSAGE_CONTROL1(QuotaHostMsg_RequestStorageQuota, 50 IPC_MESSAGE_CONTROL1(QuotaHostMsg_RequestStorageQuota,
51 content::StorageQuotaParams) 51 content::StorageQuotaParams)
OLDNEW
« no previous file with comments | « no previous file | storage/common/quota/quota_status_code.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698