Index: components/arc/common/arc_message_traits.h |
diff --git a/ipc/mojo/ipc_mojo_param_traits.h b/components/arc/common/arc_message_traits.h |
similarity index 50% |
copy from ipc/mojo/ipc_mojo_param_traits.h |
copy to components/arc/common/arc_message_traits.h |
index f0b8b515b6fbe8dabae1d86c065fb95dca580fac..d394aa7c4ccce958a05c7f7d7340ecb54892b826 100644 |
--- a/ipc/mojo/ipc_mojo_param_traits.h |
+++ b/components/arc/common/arc_message_traits.h |
@@ -2,31 +2,23 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef IPC_MOJO_IPC_MOJO_PARAM_TRAITS_H_ |
khmel1
2015/11/25 15:28:31
Have no idea why it detected as A+ and this base.
|
-#define IPC_MOJO_IPC_MOJO_PARAM_TRAITS_H_ |
- |
-#include <string> |
+#ifndef COMPONENTS_ARC_COMMON_ARC_MESSAGE_TRAITS_H_ |
+#define COMPONENTS_ARC_COMMON_ARC_MESSAGE_TRAITS_H_ |
+#include "components/arc/common/arc_message_types.h" |
#include "ipc/ipc_export.h" |
-#include "ipc/ipc_param_traits.h" |
-#include "mojo/public/cpp/system/message_pipe.h" |
- |
-namespace base { |
-class PickleIterator; |
-} |
+#include "ipc/ipc_message_utils.h" |
namespace IPC { |
-class Message; |
- |
template <> |
-struct IPC_MOJO_EXPORT ParamTraits<mojo::MessagePipeHandle> { |
- typedef mojo::MessagePipeHandle param_type; |
+struct IPC_EXPORT ParamTraits<arc::AppInfo> { |
+ typedef arc::AppInfo param_type; |
static void Write(Message* m, const param_type& p); |
- static bool Read(const Message* m, base::PickleIterator* iter, param_type* r); |
+ 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 // IPC_MOJO_IPC_MOJO_PARAM_TRAITS_H_ |
+#endif // COMPONENTS_ARC_COMMON_ARC_MESSAGE_TRAITS_H_ |