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

Unified Diff: content/common/bluetooth/bluetooth_messages.h

Issue 699843003: bluetooth: Impl uses new WebBluetoothDevice in content/browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Created 6 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: content/common/bluetooth/bluetooth_messages.h
diff --git a/content/common/bluetooth/bluetooth_messages.h b/content/common/bluetooth/bluetooth_messages.h
new file mode 100644
index 0000000000000000000000000000000000000000..799713adc8857425b2a5c9c0bbe3afb2b615a03c
--- /dev/null
+++ b/content/common/bluetooth/bluetooth_messages.h
@@ -0,0 +1,39 @@
+// Copyright 2014 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.
+
+// Messages for Web Bluetooth API.
+// Multiply-included message file, hence no include guard.
+
+#include "ipc/ipc_message_macros.h"
+#include "content/common/bluetooth/bluetooth_error.h"
+
+#define IPC_MESSAGE_START BluetoothMsgStart
+
+IPC_ENUM_TRAITS_MAX_VALUE(content::BluetoothError,
+ content::BluetoothError::ENUM_MAX_VALUE)
+
+// Messages sent from the browser to the renderer.
+
+// Informs the renderer that the device request |request_id| succeeded.
+IPC_MESSAGE_CONTROL3(BluetoothMsg_RequestDeviceSuccess,
+ int /* thread_id */,
+ int /* request_id */,
+ std::string /* instance_id */)
+
+// Informs the renderer that the device request |request_id| failed.
+IPC_MESSAGE_CONTROL3(BluetoothMsg_RequestDeviceError,
+ int /* thread_id */,
+ int /* request_id */,
+ content::BluetoothError /* result */)
+
+// Messages sent from the renderer to the browser.
+
+// Requests a bluetooth device from the browser.
+IPC_MESSAGE_CONTROL2(BluetoothHostMsg_RequestDevice,
Jeffrey Yasskin 2014/11/24 23:30:12 This file is probably the place to explain the sec
scheib 2014/11/25 16:11:06 Done.
+ int /* thread_id */,
+ int /* request_id */)
+
+// Configures the mock data set in the browser used while under test.
+IPC_MESSAGE_CONTROL1(BluetoothHostMsg_SetBluetoothMockDataSetForTesting,
+ std::string /* name */)

Powered by Google App Engine
This is Rietveld 408576698