diff options
author | Scott Lobdell <slobdell@google.com> | 2022-03-11 19:27:17 +0000 |
---|---|---|
committer | Scott Lobdell <slobdell@google.com> | 2022-03-11 19:57:09 +0000 |
commit | c9218ef1b82430a07d94f74c212a30e7ccc52975 (patch) | |
tree | 241b7fdeb6bdf1cf3af925ba8996f18faa8973d9 /system/service/a2dp_source.h | |
parent | a26bda4d37221f2f7ef750b413502091e3bcddd4 (diff) | |
parent | 480d2270b269a0e47bf475eb439111f3f966e2a9 (diff) |
Merge TP1A.220225.003
Change-Id: Id71ac466dbfe3707fe2e544ce22b1da8f474ec2b
Diffstat (limited to 'system/service/a2dp_source.h')
-rw-r--r-- | system/service/a2dp_source.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/system/service/a2dp_source.h b/system/service/a2dp_source.h index 801393f4d1..5b1b554606 100644 --- a/system/service/a2dp_source.h +++ b/system/service/a2dp_source.h @@ -16,8 +16,6 @@ #pragma once -#include <base/macros.h> - #include <atomic> #include <mutex> #include <string> @@ -50,6 +48,9 @@ class A2dpSource : public BluetoothInstance, virtual ~Delegate() = default; }; + A2dpSource(const A2dpSource&) = delete; + A2dpSource& operator=(const A2dpSource&) = delete; + ~A2dpSource() override; void SetDelegate(Delegate* delegate); @@ -99,21 +100,19 @@ class A2dpSource : public BluetoothInstance, // delegate function which attempts to take 'clock'. std::mutex delegate_mutex_; Delegate* delegate_ = nullptr; - - DISALLOW_COPY_AND_ASSIGN(A2dpSource); }; class A2dpSourceFactory : public BluetoothInstanceFactory { public: A2dpSourceFactory(); + A2dpSourceFactory(const A2dpSourceFactory&) = delete; + A2dpSourceFactory& operator=(const A2dpSourceFactory&) = delete; + ~A2dpSourceFactory() override; // BluetoothInstanceFactory override: bool RegisterInstance(const Uuid& uuid, const RegisterCallback& callback) override; - - private: - DISALLOW_COPY_AND_ASSIGN(A2dpSourceFactory); }; } // namespace bluetooth |