Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef WebRequestDeviceOptions_h | 5 #ifndef WebRequestDeviceOptions_h |
| 6 #define WebRequestDeviceOptions_h | 6 #define WebRequestDeviceOptions_h |
| 7 | 7 |
| 8 #include "public/platform/WebString.h" | 8 #include "public/platform/WebString.h" |
| 9 #include "public/platform/WebVector.h" | 9 #include "public/platform/WebVector.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 // Contains members corresponding to BluetoothScanFilter members as | 13 // Contains members corresponding to BluetoothScanFilter members as |
| 14 // specified in the IDL. | 14 // specified in the IDL. |
| 15 struct WebBluetoothScanFilter { | 15 struct WebBluetoothScanFilter { |
| 16 WebBluetoothScanFilter() { } | 16 WebBluetoothScanFilter() { } |
| 17 | 17 |
| 18 WebVector<WebString> services; | 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; | |
| 19 WebString name; | 23 WebString name; |
| 20 WebString namePrefix; | 24 WebString namePrefix; |
| 25 | |
|
Jeffrey Yasskin
2016/05/13 04:41:59
Remove this blank line.
ortuno
2016/05/13 20:11:18
Done.
| |
| 21 }; | 26 }; |
| 22 | 27 |
| 23 // Contains members corresponding to RequestDeviceOptions members as | 28 // Contains members corresponding to RequestDeviceOptions members as |
| 24 // specified in the IDL. | 29 // specified in the IDL. |
| 25 struct WebRequestDeviceOptions { | 30 struct WebRequestDeviceOptions { |
| 26 WebRequestDeviceOptions() { } | 31 WebRequestDeviceOptions() { } |
| 27 | 32 |
| 28 WebVector<WebBluetoothScanFilter> filters; | 33 WebVector<WebBluetoothScanFilter> filters; |
| 29 WebVector<WebString> optionalServices; | 34 WebVector<WebString> optionalServices; |
| 30 }; | 35 }; |
| 31 | 36 |
| 32 } // namespace blink | 37 } // namespace blink |
| 33 | 38 |
| 34 #endif // WebRequestDeviceOptions_h | 39 #endif // WebRequestDeviceOptions_h |
| OLD | NEW |