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

Side by Side Diff: third_party/WebKit/public/platform/modules/bluetooth/WebRequestDeviceOptions.h

Issue 2565913002: [Onion Soup] Move WebBluetoothImpl from //content/renderer/bluetooth to Blink's bluetooth module (Closed)
Patch Set: renamed BluetoothUUID.typemap to Bluetooth.typemap Created 3 years, 11 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WebRequestDeviceOptions_h
6 #define WebRequestDeviceOptions_h
7
8 #include "public/platform/WebString.h"
9 #include "public/platform/WebVector.h"
10
11 namespace blink {
12
13 // Contains members corresponding to BluetoothScanFilter members as
14 // specified in the IDL.
15 struct WebBluetoothScanFilter {
16 WebBluetoothScanFilter() {}
17
18 WebVector<WebString> services;
19 // We don't allow empty services or namePrefix but we do allow
20 // an empty name so we can't use name.isEmpty() to know if
21 // the filter contains a name or not.
22 bool hasName;
23 WebString name;
24 WebString namePrefix;
25 };
26
27 // Contains members corresponding to RequestDeviceOptions members as
28 // specified in the IDL.
29 struct WebRequestDeviceOptions {
30 WebRequestDeviceOptions() {}
31
32 WebVector<WebBluetoothScanFilter> filters;
33 bool hasFilters;
34 WebVector<WebString> optionalServices;
35 bool acceptAllDevices;
36 };
37
38 } // namespace blink
39
40 #endif // WebRequestDeviceOptions_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698