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 <utility> | 5 #include <utility> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
| 8 #include "base/memory/ptr_util.h" |
8 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
9 #include "device/bluetooth/device.h" | 10 #include "device/bluetooth/device.h" |
10 #include "mojo/public/cpp/bindings/strong_binding.h" | 11 #include "mojo/public/cpp/bindings/strong_binding.h" |
11 | 12 |
12 namespace bluetooth { | 13 namespace bluetooth { |
13 Device::~Device() { | 14 Device::~Device() { |
14 adapter_->RemoveObserver(this); | 15 adapter_->RemoveObserver(this); |
15 } | 16 } |
16 | 17 |
17 // static | 18 // static |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 service_info->is_primary = service.IsPrimary(); | 123 service_info->is_primary = service.IsPrimary(); |
123 | 124 |
124 return service_info; | 125 return service_info; |
125 } | 126 } |
126 | 127 |
127 const std::string& Device::GetAddress() { | 128 const std::string& Device::GetAddress() { |
128 return connection_->GetDeviceAddress(); | 129 return connection_->GetDeviceAddress(); |
129 } | 130 } |
130 | 131 |
131 } // namespace bluetooth | 132 } // namespace bluetooth |
OLD | NEW |