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

Unified Diff: device/bluetooth/adapter.h

Issue 2390933002: Revert of bluetooth: Add device list retrieval for chrome://bluetooth-internals (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « device/bluetooth/BUILD.gn ('k') | device/bluetooth/adapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/adapter.h
diff --git a/device/bluetooth/adapter.h b/device/bluetooth/adapter.h
deleted file mode 100644
index e6e03940e0c504c2983e77c655bc2e442ecef65f..0000000000000000000000000000000000000000
--- a/device/bluetooth/adapter.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright 2016 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_ADAPTER_H_
-#define DEVICE_BLUETOOTH_ADAPTER_H_
-
-#include "base/macros.h"
-#include "device/bluetooth/bluetooth_adapter.h"
-#include "device/bluetooth/public/interfaces/adapter.mojom.h"
-
-namespace bluetooth {
-
-// Implementation of Mojo BluetoothAdapter located in
-// device/bluetooth/public/interfaces/bluetooth.mojom.
-// It handles requests for Bluetooth adapter capabilities
-// and devices and uses the platform abstraction of device/bluetooth.
-class Adapter : public mojom::Adapter,
- public device::BluetoothAdapter::Observer {
- public:
- Adapter();
- ~Adapter() override;
-
- // Creates an Adapter with a strong Mojo binding to |request|
- static void Create(mojom::AdapterRequest request);
-
- // mojom::Adapter overrides:
- void GetDevices(const GetDevicesCallback& callback) override;
- void SetClient(mojom::AdapterClientPtr client) override;
-
- // device::BluetoothAdapter::Observer overrides:
- void DeviceAdded(device::BluetoothAdapter* adapter,
- device::BluetoothDevice* device) override;
- void DeviceRemoved(device::BluetoothAdapter* adapter,
- device::BluetoothDevice* device) override;
-
- private:
- mojom::DeviceInfoPtr ConstructDeviceInfoStruct(
- const device::BluetoothDevice* device) const;
-
- void GetDevicesImpl(const GetDevicesCallback& callback);
-
- void OnGetAdapter(const base::Closure& continuation,
- scoped_refptr<device::BluetoothAdapter> adapter);
- // The current Bluetooth adapter.
- scoped_refptr<device::BluetoothAdapter> adapter_;
-
- // The adapter client that listens to this service.
- mojom::AdapterClientPtr client_;
-
- base::WeakPtrFactory<Adapter> weak_ptr_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(Adapter);
-};
-
-} // namespace bluetooth
-
-#endif // DEVICE_BLUETOOTH_ADAPTER_H_
« no previous file with comments | « device/bluetooth/BUILD.gn ('k') | device/bluetooth/adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698