| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "content/common/bluetooth/web_bluetooth_device_id.h" | 5 #include "content/common/bluetooth/web_bluetooth_device_id.h" |
| 6 | 6 |
| 7 #include "base/base64.h" | 7 #include "base/base64.h" |
| 8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
| 9 #include "crypto/random.h" | 9 #include "crypto/random.h" |
| 10 | 10 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 bool WebBluetoothDeviceId::operator==( | 72 bool WebBluetoothDeviceId::operator==( |
| 73 const WebBluetoothDeviceId& device_id) const { | 73 const WebBluetoothDeviceId& device_id) const { |
| 74 return str() == device_id.str(); | 74 return str() == device_id.str(); |
| 75 } | 75 } |
| 76 | 76 |
| 77 bool WebBluetoothDeviceId::operator!=( | 77 bool WebBluetoothDeviceId::operator!=( |
| 78 const WebBluetoothDeviceId& device_id) const { | 78 const WebBluetoothDeviceId& device_id) const { |
| 79 return !(*this == device_id); | 79 return !(*this == device_id); |
| 80 } | 80 } |
| 81 | 81 |
| 82 std::ostream& operator<<(std::ostream& out, | |
| 83 const WebBluetoothDeviceId& device_id) { | |
| 84 return out << device_id.str(); | |
| 85 } | |
| 86 | |
| 87 } // namespace content | 82 } // namespace content |
| OLD | NEW |