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

Unified Diff: components/arc/common/arc_message_param_traits.h

Issue 1475583002: Add IPC messages for ARC notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
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.
+// 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_

Powered by Google App Engine
This is Rietveld 408576698