Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1147)

Unified Diff: device/bluetooth/bluetooth_gatt_notify_session_android.h

Issue 2051333004: Implement BluetoothGattNotifySession::Stop on Android, 2nd attempt (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address new review comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/bluetooth_gatt_notify_session_android.h
diff --git a/device/bluetooth/bluetooth_gatt_notify_session_android.h b/device/bluetooth/bluetooth_gatt_notify_session_android.h
deleted file mode 100644
index 8413f87c1327a1c9188fe62716674fe4f5dc5b7b..0000000000000000000000000000000000000000
--- a/device/bluetooth/bluetooth_gatt_notify_session_android.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef DEVICE_BLUETOOTH_BLUETOOTH_GATT_NOTIFY_SESSION_ANDROID_H_
-#define DEVICE_BLUETOOTH_BLUETOOTH_GATT_NOTIFY_SESSION_ANDROID_H_
-
-#include <string>
-
-#include "base/callback.h"
-#include "base/macros.h"
-#include "device/bluetooth/bluetooth_gatt_notify_session.h"
-
-namespace device {
-
-class BluetoothAdapter;
-class BluetoothRemoteGattCharacteristicAndroid;
-
-// BluetoothGattNotifySessionAndroid implements
-// BluetoothGattNotifySession for the Android platform.
-//
-// TODO(crbug.com/551634): Detect destroyed Characteristic or parents objects.
-// TODO(crbug.com/551634): Implement Stop.
-class DEVICE_BLUETOOTH_EXPORT BluetoothGattNotifySessionAndroid
- : public device::BluetoothGattNotifySession {
- public:
- explicit BluetoothGattNotifySessionAndroid(
- const std::string& characteristic_identifier);
- ~BluetoothGattNotifySessionAndroid() override;
-
- // BluetoothGattNotifySession overrides.
- std::string GetCharacteristicIdentifier() const override;
- bool IsActive() override;
- void Stop(const base::Closure& callback) override;
-
- private:
- // Identifier of the associated characteristic.
- std::string characteristic_id_;
-
- DISALLOW_COPY_AND_ASSIGN(BluetoothGattNotifySessionAndroid);
-};
-
-} // namespace device
-
-#endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_NOTIFY_SESSION_ANDROID_H_
« no previous file with comments | « device/bluetooth/bluetooth_gatt_notify_session.cc ('k') | device/bluetooth/bluetooth_gatt_notify_session_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698