Index: components/arc/common/arc_message_param_traits.h |
diff --git a/components/arc/common/arc_message_param_traits.h b/components/arc/common/arc_message_param_traits.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..49439b861e3d29486e983d85da82df6b130a1e55 |
--- /dev/null |
+++ b/components/arc/common/arc_message_param_traits.h |
@@ -0,0 +1,26 @@ |
+// 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
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef COMPONENTS_ARC_COMMON_ARC_HOST_MESSAGE_PARAM_TRAITS_H_ |
+#define COMPONENTS_ARC_COMMON_ARC_HOST_MESSAGE_PARAM_TRAITS_H_ |
+ |
+#include "ipc/ipc_export.h" |
+#include "ipc/ipc_message_utils.h" |
+ |
+// Using relative paths since this file is shared between chromium and android. |
+#include "arc_notification_types.h" |
+ |
+namespace IPC { |
+ |
+template <> |
+struct IPC_EXPORT ParamTraits<arc::ArcNotificationData> { |
+ typedef arc::ArcNotificationData param_type; |
+ static void Write(Message* m, const param_type& p); |
+ static bool Read(const Message* m, base::PickleIterator* iter, param_type* p); |
+ static void Log(const param_type& p, std::string* l); |
+}; |
+ |
+} // namespace IPC |
+ |
+#endif // COMPONENTS_ARC_COMMON_ARC_HOST_MESSAGE_PARAM_TRAITS_H_ |