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

Side by Side Diff: chrome/common/safe_browsing/safe_archive_analyzer_param_traits.h

Issue 2968003005: Support Serializing and Deserializing RepeatedField / RepeatedPtrField in IPC::Message (Closed)
Patch Set: Resolve review comments Created 3 years, 5 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
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 // Multiply-included param traits file, so no include guard. 5 // Multiply-included param traits file, so no include guard.
6 6
7 #if !defined(FULL_SAFE_BROWSING) 7 #if !defined(FULL_SAFE_BROWSING)
8 #error FULL_SAFE_BROWSING should be defined. 8 #error FULL_SAFE_BROWSING should be defined.
9 #endif 9 #endif
10 10
11 #include "chrome/common/safe_browsing/archive_analyzer_results.h" 11 #include "chrome/common/safe_browsing/archive_analyzer_results.h"
12 #include "chrome/common/safe_browsing/ipc_protobuf_message_macros.h" 12 #include "chrome/common/safe_browsing/ipc_protobuf_message_macros.h"
13 #include "chrome/common/safe_browsing/protobuf_message_param_traits.h"
14 #include "ipc/ipc_message_macros.h" 13 #include "ipc/ipc_message_macros.h"
14 #include "ipc/ipc_message_protobuf_utils.h"
15 15
16 IPC_ENUM_TRAITS_VALIDATE( 16 IPC_ENUM_TRAITS_VALIDATE(
17 safe_browsing::ClientDownloadRequest_DownloadType, 17 safe_browsing::ClientDownloadRequest_DownloadType,
18 safe_browsing::ClientDownloadRequest_DownloadType_IsValid(value)) 18 safe_browsing::ClientDownloadRequest_DownloadType_IsValid(value))
19 19
20 IPC_PROTOBUF_MESSAGE_TRAITS_BEGIN(safe_browsing::ClientDownloadRequest_Digests) 20 IPC_PROTOBUF_MESSAGE_TRAITS_BEGIN(safe_browsing::ClientDownloadRequest_Digests)
21 IPC_PROTOBUF_MESSAGE_TRAITS_OPTIONAL_COMPLEX_MEMBER(sha256) 21 IPC_PROTOBUF_MESSAGE_TRAITS_OPTIONAL_COMPLEX_MEMBER(sha256)
22 IPC_PROTOBUF_MESSAGE_TRAITS_OPTIONAL_COMPLEX_MEMBER(sha1) 22 IPC_PROTOBUF_MESSAGE_TRAITS_OPTIONAL_COMPLEX_MEMBER(sha1)
23 IPC_PROTOBUF_MESSAGE_TRAITS_OPTIONAL_COMPLEX_MEMBER(md5) 23 IPC_PROTOBUF_MESSAGE_TRAITS_OPTIONAL_COMPLEX_MEMBER(md5)
24 IPC_PROTOBUF_MESSAGE_TRAITS_END() 24 IPC_PROTOBUF_MESSAGE_TRAITS_END()
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 IPC_PROTOBUF_MESSAGE_TRAITS_OPTIONAL_COMPLEX_MEMBER(image_headers) 85 IPC_PROTOBUF_MESSAGE_TRAITS_OPTIONAL_COMPLEX_MEMBER(image_headers)
86 IPC_PROTOBUF_MESSAGE_TRAITS_END() 86 IPC_PROTOBUF_MESSAGE_TRAITS_END()
87 87
88 IPC_STRUCT_TRAITS_BEGIN(safe_browsing::ArchiveAnalyzerResults) 88 IPC_STRUCT_TRAITS_BEGIN(safe_browsing::ArchiveAnalyzerResults)
89 IPC_STRUCT_TRAITS_MEMBER(success) 89 IPC_STRUCT_TRAITS_MEMBER(success)
90 IPC_STRUCT_TRAITS_MEMBER(has_executable) 90 IPC_STRUCT_TRAITS_MEMBER(has_executable)
91 IPC_STRUCT_TRAITS_MEMBER(has_archive) 91 IPC_STRUCT_TRAITS_MEMBER(has_archive)
92 IPC_STRUCT_TRAITS_MEMBER(archived_binary) 92 IPC_STRUCT_TRAITS_MEMBER(archived_binary)
93 IPC_STRUCT_TRAITS_MEMBER(archived_archive_filenames) 93 IPC_STRUCT_TRAITS_MEMBER(archived_archive_filenames)
94 IPC_STRUCT_TRAITS_END() 94 IPC_STRUCT_TRAITS_END()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698