| 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 WebBluetoothGATTService_h | 5 #ifndef WebBluetoothGATTService_h | 
| 6 #define WebBluetoothGATTService_h | 6 #define WebBluetoothGATTService_h | 
| 7 | 7 | 
| 8 #include "public/platform/WebString.h" | 8 #include "public/platform/WebString.h" | 
| 9 | 9 | 
| 10 namespace blink { | 10 namespace blink { | 
| 11 | 11 | 
| 12 struct WebBluetoothGATTService { | 12 struct WebBluetoothGATTService { | 
| 13     WebBluetoothGATTService(const WebString& uuid, | 13     WebBluetoothGATTService(const WebString& serviceInstanceID, | 
|  | 14         const WebString& uuid, | 
| 14         bool isPrimary, | 15         bool isPrimary, | 
| 15         const WebString& deviceInstanceID) | 16         const WebString& deviceInstanceID) | 
| 16         : uuid(uuid) | 17         : uuid(uuid) | 
| 17         , isPrimary(isPrimary) | 18         , isPrimary(isPrimary) | 
| 18         , deviceInstanceID(deviceInstanceID) | 19         , deviceInstanceID(deviceInstanceID) | 
| 19     { | 20     { | 
| 20     } | 21     } | 
| 21 | 22 | 
| 22     // Members corresponding to BluetoothGATTService attributes as | 23     // Members corresponding to BluetoothGATTService attributes as | 
| 23     // specified in the IDL. | 24     // specified in the IDL. | 
|  | 25     const WebString serviceInstanceID; | 
| 24     const WebString uuid; | 26     const WebString uuid; | 
| 25     const bool isPrimary; | 27     const bool isPrimary; | 
| 26     const WebString deviceInstanceID; | 28     const WebString deviceInstanceID; | 
| 27 }; | 29 }; | 
| 28 | 30 | 
| 29 } // namespace blink | 31 } // namespace blink | 
| 30 | 32 | 
| 31 #endif // WebBluetoothGATTService_h | 33 #endif // WebBluetoothGATTService_h | 
| OLD | NEW | 
|---|