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

Side by Side Diff: content/common/fileapi/file_system_messages.h

Issue 603673003: Apply automatic range checks to storage enum types across IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // IPC messages for the file system. 5 // IPC messages for the file system.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "ipc/ipc_message_macros.h" 8 #include "ipc/ipc_message_macros.h"
9 #include "ipc/ipc_platform_file.h" 9 #include "ipc/ipc_platform_file.h"
10 #include "storage/common/fileapi/directory_entry.h" 10 #include "storage/common/fileapi/directory_entry.h"
(...skipping 11 matching lines...) Expand all
22 IPC_STRUCT_TRAITS_MEMBER(is_directory) 22 IPC_STRUCT_TRAITS_MEMBER(is_directory)
23 IPC_STRUCT_TRAITS_END() 23 IPC_STRUCT_TRAITS_END()
24 24
25 IPC_STRUCT_TRAITS_BEGIN(storage::FileSystemInfo) 25 IPC_STRUCT_TRAITS_BEGIN(storage::FileSystemInfo)
26 IPC_STRUCT_TRAITS_MEMBER(name) 26 IPC_STRUCT_TRAITS_MEMBER(name)
27 IPC_STRUCT_TRAITS_MEMBER(root_url) 27 IPC_STRUCT_TRAITS_MEMBER(root_url)
28 IPC_STRUCT_TRAITS_MEMBER(mount_type) 28 IPC_STRUCT_TRAITS_MEMBER(mount_type)
29 IPC_STRUCT_TRAITS_END() 29 IPC_STRUCT_TRAITS_END()
30 30
31 IPC_ENUM_TRAITS(storage::FileSystemType) 31 IPC_ENUM_TRAITS(storage::FileSystemType)
32 IPC_ENUM_TRAITS(storage::QuotaLimitType) 32 IPC_ENUM_TRAITS_MAX_VALUE(storage::QuotaLimitType, storage::kQuotaLimitTypeLast)
33 33
34 // File system messages sent from the browser to the child process. 34 // File system messages sent from the browser to the child process.
35 35
36 // WebFrameClient::openFileSystem response messages. 36 // WebFrameClient::openFileSystem response messages.
37 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidOpenFileSystem, 37 IPC_MESSAGE_CONTROL3(FileSystemMsg_DidOpenFileSystem,
38 int /* request_id */, 38 int /* request_id */,
39 std::string /* name */, 39 std::string /* name */,
40 GURL /* root_url */) 40 GURL /* root_url */)
41 41
42 // WebFileSystem response messages. 42 // WebFileSystem response messages.
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // Renderers are expected to send this message after having processed 160 // Renderers are expected to send this message after having processed
161 // the FileSystemMsg_DidCreateSnapshotFile message. In particular, 161 // the FileSystemMsg_DidCreateSnapshotFile message. In particular,
162 // after having created a BlobDataHandle backed by the snapshot file. 162 // after having created a BlobDataHandle backed by the snapshot file.
163 IPC_MESSAGE_CONTROL1(FileSystemHostMsg_DidReceiveSnapshotFile, 163 IPC_MESSAGE_CONTROL1(FileSystemHostMsg_DidReceiveSnapshotFile,
164 int /* request_id */) 164 int /* request_id */)
165 165
166 // For Pepper's URL loader. 166 // For Pepper's URL loader.
167 IPC_SYNC_MESSAGE_CONTROL1_1(FileSystemHostMsg_SyncGetPlatformPath, 167 IPC_SYNC_MESSAGE_CONTROL1_1(FileSystemHostMsg_SyncGetPlatformPath,
168 GURL /* file path */, 168 GURL /* file path */,
169 base::FilePath /* platform_path */) 169 base::FilePath /* platform_path */)
OLDNEW
« no previous file with comments | « no previous file | storage/common/quota/quota_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698