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

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

Issue 1082273006: bluetooth: Impl uses new WebBluetoothGATTRemoteServer content/browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes based on comments Created 5 years, 8 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
« no previous file with comments | « content/child/bluetooth/web_bluetooth_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 int /* thread_id */, 111 int /* thread_id */,
112 int /* request_id */, 112 int /* request_id */,
113 content::BluetoothDevice /* device */) 113 content::BluetoothDevice /* device */)
114 114
115 // Informs the renderer that the device request |request_id| failed. 115 // Informs the renderer that the device request |request_id| failed.
116 IPC_MESSAGE_CONTROL3(BluetoothMsg_RequestDeviceError, 116 IPC_MESSAGE_CONTROL3(BluetoothMsg_RequestDeviceError,
117 int /* thread_id */, 117 int /* thread_id */,
118 int /* request_id */, 118 int /* request_id */,
119 content::BluetoothError /* result */) 119 content::BluetoothError /* result */)
120 120
121 // Informs the renderer that the connection request |request_id| succeeded.
122 IPC_MESSAGE_CONTROL3(BluetoothMsg_ConnectGATTSuccess,
123 int /* thread_id */,
124 int /* request_id */,
125 std::string /* device_instance_id */)
126
121 // Messages sent from the renderer to the browser. 127 // Messages sent from the renderer to the browser.
122 128
123 // Requests a bluetooth device from the browser. 129 // Requests a bluetooth device from the browser.
124 // TODO(scheib): UI to select and permit access to a device crbug.com/436280. 130 // TODO(scheib): UI to select and permit access to a device crbug.com/436280.
125 // This will include refactoring messages to be associated with an origin 131 // This will include refactoring messages to be associated with an origin
126 // and making this initial requestDevice call with an associated frame. 132 // and making this initial requestDevice call with an associated frame.
127 // This work is deferred to simplify initial prototype patches. 133 // This work is deferred to simplify initial prototype patches.
128 // The Bluetooth feature, and the BluetoothDispatcherHost are behind 134 // The Bluetooth feature, and the BluetoothDispatcherHost are behind
129 // the --enable-experimental-web-platform-features flag. 135 // the --enable-experimental-web-platform-features flag.
130 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_RequestDevice, 136 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_RequestDevice,
131 int /* thread_id */, 137 int /* thread_id */,
132 int /* request_id */) 138 int /* request_id */)
133 139
140 // Connects to a bluetooth device.
141 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_ConnectGATT,
142 int /* thread_id */,
143 int /* request_id */,
144 std::string /* device_instance_id */)
145
134 // Configures the mock data set in the browser used while under test. 146 // Configures the mock data set in the browser used while under test.
135 // TODO(scheib): Disable testing in non-test executables. crbug.com/436284. 147 // TODO(scheib): Disable testing in non-test executables. crbug.com/436284.
136 IPC_MESSAGE_CONTROL1(BluetoothHostMsg_SetBluetoothMockDataSetForTesting, 148 IPC_MESSAGE_CONTROL1(BluetoothHostMsg_SetBluetoothMockDataSetForTesting,
137 std::string /* name */) 149 std::string /* name */)
OLDNEW
« no previous file with comments | « content/child/bluetooth/web_bluetooth_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698