OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
hidehiko
2015/11/26 03:39:41
IPC_STRUCT_TRAITS_{BEGIN,END,MEMBER} macros are yo
yoshiki
2015/11/26 10:36:21
Thank you for letting me know! I updated the code
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef COMPONENTS_ARC_COMMON_ARC_HOST_MESSAGE_PARAM_TRAITS_H_ | |
6 #define COMPONENTS_ARC_COMMON_ARC_HOST_MESSAGE_PARAM_TRAITS_H_ | |
7 | |
8 #include "ipc/ipc_export.h" | |
9 #include "ipc/ipc_message_utils.h" | |
10 | |
11 // Using relative paths since this file is shared between chromium and android. | |
12 #include "arc_notification_types.h" | |
13 | |
14 namespace IPC { | |
15 | |
16 template <> | |
17 struct IPC_EXPORT ParamTraits<arc::ArcNotificationData> { | |
18 typedef arc::ArcNotificationData param_type; | |
19 static void Write(Message* m, const param_type& p); | |
20 static bool Read(const Message* m, base::PickleIterator* iter, param_type* p); | |
21 static void Log(const param_type& p, std::string* l); | |
22 }; | |
23 | |
24 } // namespace IPC | |
25 | |
26 #endif // COMPONENTS_ARC_COMMON_ARC_HOST_MESSAGE_PARAM_TRAITS_H_ | |
OLD | NEW |