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

Side by Side Diff: content/common/bluetooth/bluetooth_messages.h

Issue 1120373004: bluetooth: Browser-side implementation of connectGATT. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-request-device-implementation
Patch Set: Address jyasskin's comments Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Messages for Web Bluetooth API. 5 // Messages for Web Bluetooth API.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 // Web Bluetooth Security 8 // Web Bluetooth Security
9 // The security mechanisms of Bluetooth are described in the specification: 9 // The security mechanisms of Bluetooth are described in the specification:
10 // https://webbluetoothcg.github.io/web-bluetooth 10 // https://webbluetoothcg.github.io/web-bluetooth
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 int /* thread_id */, 116 int /* thread_id */,
117 int /* request_id */, 117 int /* request_id */,
118 content::BluetoothError /* result */) 118 content::BluetoothError /* result */)
119 119
120 // Informs the renderer that the connection request |request_id| succeeded. 120 // Informs the renderer that the connection request |request_id| succeeded.
121 IPC_MESSAGE_CONTROL3(BluetoothMsg_ConnectGATTSuccess, 121 IPC_MESSAGE_CONTROL3(BluetoothMsg_ConnectGATTSuccess,
122 int /* thread_id */, 122 int /* thread_id */,
123 int /* request_id */, 123 int /* request_id */,
124 std::string /* device_instance_id */) 124 std::string /* device_instance_id */)
125 125
126 // Informs the renderer that the connection request |request_id| failed.
127 IPC_MESSAGE_CONTROL3(BluetoothMsg_ConnectGATTError,
128 int /* thread_id */,
129 int /* request_id */,
130 content::BluetoothError /* result */)
131
126 // Messages sent from the renderer to the browser. 132 // Messages sent from the renderer to the browser.
127 133
128 // Requests a bluetooth device from the browser. 134 // Requests a bluetooth device from the browser.
129 // TODO(scheib): UI to select and permit access to a device crbug.com/436280. 135 // TODO(scheib): UI to select and permit access to a device crbug.com/436280.
130 // This will include refactoring messages to be associated with an origin 136 // This will include refactoring messages to be associated with an origin
131 // and making this initial requestDevice call with an associated frame. 137 // and making this initial requestDevice call with an associated frame.
132 // This work is deferred to simplify initial prototype patches. 138 // This work is deferred to simplify initial prototype patches.
133 // The Bluetooth feature, and the BluetoothDispatcherHost are behind 139 // The Bluetooth feature, and the BluetoothDispatcherHost are behind
134 // the --enable-experimental-web-platform-features flag. 140 // the --enable-experimental-web-platform-features flag.
135 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_RequestDevice, 141 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_RequestDevice,
136 int /* thread_id */, 142 int /* thread_id */,
137 int /* request_id */) 143 int /* request_id */)
138 144
139 // Connects to a bluetooth device. 145 // Connects to a bluetooth device.
140 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_ConnectGATT, 146 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_ConnectGATT,
141 int /* thread_id */, 147 int /* thread_id */,
142 int /* request_id */, 148 int /* request_id */,
143 std::string /* device_instance_id */) 149 std::string /* device_instance_id */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698