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

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

Issue 149073002: Apply automatic enum range checking for appcache enums acros IPC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
« no previous file with comments | « no previous file | webkit/common/appcache/appcache_interfaces.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 "ipc/ipc_message_macros.h" 7 #include "ipc/ipc_message_macros.h"
8 #include "webkit/common/appcache/appcache_interfaces.h" 8 #include "webkit/common/appcache/appcache_interfaces.h"
9 9
10 #define IPC_MESSAGE_START AppCacheMsgStart 10 #define IPC_MESSAGE_START AppCacheMsgStart
11 11
12 IPC_ENUM_TRAITS(appcache::EventID) 12 IPC_ENUM_TRAITS_MAX_VALUE(appcache::EventID, appcache::EVENT_ID_LAST)
13 IPC_ENUM_TRAITS(appcache::Status) 13 IPC_ENUM_TRAITS_MAX_VALUE(appcache::Status, appcache::STATUS_LAST)
14 14
15 IPC_STRUCT_TRAITS_BEGIN(appcache::AppCacheInfo) 15 IPC_STRUCT_TRAITS_BEGIN(appcache::AppCacheInfo)
16 IPC_STRUCT_TRAITS_MEMBER(manifest_url) 16 IPC_STRUCT_TRAITS_MEMBER(manifest_url)
17 IPC_STRUCT_TRAITS_MEMBER(creation_time) 17 IPC_STRUCT_TRAITS_MEMBER(creation_time)
18 IPC_STRUCT_TRAITS_MEMBER(last_update_time) 18 IPC_STRUCT_TRAITS_MEMBER(last_update_time)
19 IPC_STRUCT_TRAITS_MEMBER(last_access_time) 19 IPC_STRUCT_TRAITS_MEMBER(last_access_time)
20 IPC_STRUCT_TRAITS_MEMBER(cache_id) 20 IPC_STRUCT_TRAITS_MEMBER(cache_id)
21 IPC_STRUCT_TRAITS_MEMBER(group_id) 21 IPC_STRUCT_TRAITS_MEMBER(group_id)
22 IPC_STRUCT_TRAITS_MEMBER(status) 22 IPC_STRUCT_TRAITS_MEMBER(status)
23 IPC_STRUCT_TRAITS_MEMBER(size) 23 IPC_STRUCT_TRAITS_MEMBER(size)
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // Notifies the renderer of an AppCache logging message. 137 // Notifies the renderer of an AppCache logging message.
138 IPC_MESSAGE_CONTROL3(AppCacheMsg_LogMessage, 138 IPC_MESSAGE_CONTROL3(AppCacheMsg_LogMessage,
139 int /* host_id */, 139 int /* host_id */,
140 int /* log_level */, 140 int /* log_level */,
141 std::string /* message */) 141 std::string /* message */)
142 142
143 // Notifies the renderer of the fact that AppCache access was blocked. 143 // Notifies the renderer of the fact that AppCache access was blocked.
144 IPC_MESSAGE_CONTROL2(AppCacheMsg_ContentBlocked, 144 IPC_MESSAGE_CONTROL2(AppCacheMsg_ContentBlocked,
145 int /* host_id */, 145 int /* host_id */,
146 GURL /* manifest_url */) 146 GURL /* manifest_url */)
OLDNEW
« no previous file with comments | « no previous file | webkit/common/appcache/appcache_interfaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698