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

Unified Diff: device/bluetooth/adapter.h

Issue 2401193002: bluetooth: Add Device service for chrome://bluetooth-internals. (Closed)
Patch Set: Fully qualify mojom import 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
index ea034afb22c380f75a33fb6399c7b5dc98088085..b7a561f0595a5b04c876b336792ae3fd64dcf7cf 100644
--- a/device/bluetooth/adapter.h
+++ b/device/bluetooth/adapter.h
@@ -5,10 +5,13 @@
#ifndef DEVICE_BLUETOOTH_ADAPTER_H_
#define DEVICE_BLUETOOTH_ADAPTER_H_
+#include <string>
+
#include "base/macros.h"
+#include "base/memory/ref_counted.h"
#include "device/bluetooth/bluetooth_adapter.h"
-#include "device/bluetooth/bluetooth_adapter_factory.h"
#include "device/bluetooth/public/interfaces/adapter.mojom.h"
+#include "device/bluetooth/public/interfaces/device.mojom.h"
namespace bluetooth {
@@ -24,6 +27,8 @@ class Adapter : public mojom::Adapter,
// mojom::Adapter overrides:
void GetInfo(const GetInfoCallback& callback) override;
+ void GetDevice(const std::string& address,
+ const GetDeviceCallback& callback) override;
void GetDevices(const GetDevicesCallback& callback) override;
void SetClient(mojom::AdapterClientPtr client) override;
@@ -34,10 +39,6 @@ class Adapter : public mojom::Adapter,
device::BluetoothDevice* device) override;
private:
- // Creates a mojom::DeviceInfo using info from the given |device|.
- static mojom::DeviceInfoPtr ConstructDeviceInfoStruct(
- const device::BluetoothDevice* device);
-
// The current Bluetooth adapter.
scoped_refptr<device::BluetoothAdapter> adapter_;
« 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