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

Side by Side Diff: device/bluetooth/dbus/bluetooth_le_advertising_manager_client.h

Issue 1347193004: Refactor DBusThreadManager to split away BT clients. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CHROMEOS_DBUS_BLUETOOTH_LE_ADVERTISING_MANAGER_CLIENT_H_ 5 #ifndef DEVICE_BLUETOOTH_DBUS_BLUETOOTH_LE_ADVERTISING_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_BLUETOOTH_LE_ADVERTISING_MANAGER_CLIENT_H_ 6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_LE_ADVERTISING_MANAGER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chromeos/chromeos_export.h"
15 #include "chromeos/dbus/dbus_client.h"
16 #include "dbus/object_path.h" 14 #include "dbus/object_path.h"
15 #include "device/bluetooth/bluetooth_export.h"
16 #include "device/bluetooth/dbus/bluez_dbus_client.h"
17 17
18 namespace chromeos { 18 namespace bluez {
19 19
20 // BluetoothAdvertisingManagerClient is used to communicate with the advertising 20 // BluetoothAdvertisingManagerClient is used to communicate with the advertising
21 // manager object of the BlueZ daemon. 21 // manager object of the BlueZ daemon.
22 class CHROMEOS_EXPORT BluetoothLEAdvertisingManagerClient : public DBusClient { 22 class DEVICE_BLUETOOTH_EXPORT BluetoothLEAdvertisingManagerClient
23 : public BluezDBusClient {
23 public: 24 public:
24 // Interface for observing changes to advertising managers. 25 // Interface for observing changes to advertising managers.
25 class Observer { 26 class Observer {
26 public: 27 public:
27 virtual ~Observer() {} 28 virtual ~Observer() {}
28 29
29 // Called when an advertising manager with object path |object_path| is 30 // Called when an advertising manager with object path |object_path| is
30 // added to the system. 31 // added to the system.
31 virtual void AdvertisingManagerAdded(const dbus::ObjectPath& object_path) {} 32 virtual void AdvertisingManagerAdded(const dbus::ObjectPath& object_path) {}
32 33
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // Constants used to indicate exceptional error conditions. 72 // Constants used to indicate exceptional error conditions.
72 static const char kNoResponseError[]; 73 static const char kNoResponseError[];
73 74
74 protected: 75 protected:
75 BluetoothLEAdvertisingManagerClient(); 76 BluetoothLEAdvertisingManagerClient();
76 77
77 private: 78 private:
78 DISALLOW_COPY_AND_ASSIGN(BluetoothLEAdvertisingManagerClient); 79 DISALLOW_COPY_AND_ASSIGN(BluetoothLEAdvertisingManagerClient);
79 }; 80 };
80 81
81 } // namespace chromeos 82 } // namespace bluez
82 83
83 #endif // CHROMEOS_DBUS_BLUETOOTH_LE_ADVERTISING_MANAGER_CLIENT_H_ 84 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_LE_ADVERTISING_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698