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

Unified Diff: device/bluetooth/bluetooth_uuid.h

Issue 1172853004: Chromium side of RequestDeviceOptions implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Add an end-namespace comment Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/bluetooth_uuid.h
diff --git a/device/bluetooth/bluetooth_uuid.h b/device/bluetooth/bluetooth_uuid.h
index 390d98d59a461b4a45a505e99ec4286d0803c76c..5d7cdd26d45ed20b60e4bcacd8842c041db4cbfc 100644
--- a/device/bluetooth/bluetooth_uuid.h
+++ b/device/bluetooth/bluetooth_uuid.h
@@ -8,6 +8,11 @@
#include <string>
#include "device/bluetooth/bluetooth_export.h"
+#include "ipc/ipc_param_traits.h"
+
+namespace base {
+class PickleIterator;
+} // namespace base
namespace device {
@@ -97,4 +102,19 @@ PrintTo(const BluetoothUUID& uuid, std::ostream* out);
} // namespace device
+namespace IPC {
+
+class Message;
+
+// Tell the IPC system how to serialize and deserialize a BluetoothUUID.
+template <>
+struct DEVICE_BLUETOOTH_EXPORT ParamTraits<device::BluetoothUUID> {
+ typedef device::BluetoothUUID param_type;
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* m, base::PickleIterator* iter, param_type* r);
+ static void Log(const param_type& p, std::string* l);
+};
+
+} // namespace IPC
+
#endif // DEVICE_BLUETOOTH_BLUETOOTH_UUID_H_
« no previous file with comments | « content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc ('k') | device/bluetooth/bluetooth_uuid.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698