| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "device/bluetooth/bluetooth_adapter.h" | 5 #include "device/bluetooth/bluetooth_adapter.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 void SetPowered(bool powered, | 61 void SetPowered(bool powered, |
| 62 const base::Closure& callback, | 62 const base::Closure& callback, |
| 63 const ErrorCallback& error_callback) override {} | 63 const ErrorCallback& error_callback) override {} |
| 64 | 64 |
| 65 bool IsDiscoverable() const override { return false; } | 65 bool IsDiscoverable() const override { return false; } |
| 66 | 66 |
| 67 void SetDiscoverable(bool discoverable, | 67 void SetDiscoverable(bool discoverable, |
| 68 const base::Closure& callback, | 68 const base::Closure& callback, |
| 69 const ErrorCallback& error_callback) override {} | 69 const ErrorCallback& error_callback) override {} |
| 70 | 70 |
| 71 uint32_t GetDiscoverableTimeout() const override { return 0; } |
| 72 |
| 71 bool IsDiscovering() const override { return false; } | 73 bool IsDiscovering() const override { return false; } |
| 72 | 74 |
| 73 void StartDiscoverySessionWithFilter( | 75 void StartDiscoverySessionWithFilter( |
| 74 std::unique_ptr<BluetoothDiscoveryFilter> discovery_filter, | 76 std::unique_ptr<BluetoothDiscoveryFilter> discovery_filter, |
| 75 const DiscoverySessionCallback& callback, | 77 const DiscoverySessionCallback& callback, |
| 76 const ErrorCallback& error_callback) override { | 78 const ErrorCallback& error_callback) override { |
| 77 OnStartDiscoverySession(std::move(discovery_filter), callback); | 79 OnStartDiscoverySession(std::move(discovery_filter), callback); |
| 78 } | 80 } |
| 79 | 81 |
| 80 void StartDiscoverySession(const DiscoverySessionCallback& callback, | 82 void StartDiscoverySession(const DiscoverySessionCallback& callback, |
| (...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 service->Register(GetCallback(Call::NOT_EXPECTED), | 759 service->Register(GetCallback(Call::NOT_EXPECTED), |
| 758 GetGattErrorCallback(Call::EXPECTED)); | 760 GetGattErrorCallback(Call::EXPECTED)); |
| 759 service->Unregister(GetCallback(Call::EXPECTED), | 761 service->Unregister(GetCallback(Call::EXPECTED), |
| 760 GetGattErrorCallback(Call::NOT_EXPECTED)); | 762 GetGattErrorCallback(Call::NOT_EXPECTED)); |
| 761 service->Unregister(GetCallback(Call::NOT_EXPECTED), | 763 service->Unregister(GetCallback(Call::NOT_EXPECTED), |
| 762 GetGattErrorCallback(Call::EXPECTED)); | 764 GetGattErrorCallback(Call::EXPECTED)); |
| 763 } | 765 } |
| 764 #endif // defined(OS_CHROMEOS) || defined(OS_LINUX) | 766 #endif // defined(OS_CHROMEOS) || defined(OS_LINUX) |
| 765 | 767 |
| 766 } // namespace device | 768 } // namespace device |
| OLD | NEW |