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

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

Issue 1415573014: Reland "Add Linux support for the Bluetooth API" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix. Created 5 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 DEVICE_BLUETOOTH_DBUS_BLUETOOTH_PROFILE_SERVICE_PROVIDER_H_ 5 #ifndef DEVICE_BLUETOOTH_DBUS_BLUETOOTH_PROFILE_SERVICE_PROVIDER_H_
6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_PROFILE_SERVICE_PROVIDER_H_ 6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_PROFILE_SERVICE_PROVIDER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
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 "dbus/bus.h" 13 #include "dbus/bus.h"
14 #include "dbus/file_descriptor.h" 14 #include "dbus/file_descriptor.h"
15 #include "dbus/object_path.h" 15 #include "dbus/object_path.h"
16 #include "device/bluetooth/bluetooth_export.h" 16 #include "device/bluetooth/bluetooth_export.h"
17 17
18 namespace bluez { 18 namespace bluez {
19 19
20 // BluetoothProfileServiceProvider is used to provide a D-Bus object that the 20 // BluetoothProfileServiceProvider is used to provide a D-Bus object that the
21 // Bluetooth daemon can communicate with to connect application profiles. 21 // Bluetooth daemon can communicate with to connect application profiles.
22 // 22 //
23 // Instantiate with a chosen D-Bus object path and delegate object, and pass 23 // Instantiate with a chosen D-Bus object path and delegate object, and pass
24 // the D-Bus object path as the |agent_path| argument to the 24 // the D-Bus object path as the |agent_path| argument to the
25 // chromeos::BluetoothProfileManagerClient::RegisterProfile() method. 25 // bluez::BluetoothProfileManagerClient::RegisterProfile() method.
26 // 26 //
27 // When an incoming profile connection occurs, or after initiating a connection 27 // When an incoming profile connection occurs, or after initiating a connection
28 // using the chromeos::BluetoothDeviceClient::ConnectProfile() method, the 28 // using the bluez::BluetoothDeviceClient::ConnectProfile() method, the
29 // Bluetooth daemon will make calls to this profile object and they will be 29 // Bluetooth daemon will make calls to this profile object and they will be
30 // passed on to your Delegate object for handling. Responses should be returned 30 // passed on to your Delegate object for handling. Responses should be returned
31 // using the callbacks supplied to those methods. 31 // using the callbacks supplied to those methods.
32 class DEVICE_BLUETOOTH_EXPORT BluetoothProfileServiceProvider { 32 class DEVICE_BLUETOOTH_EXPORT BluetoothProfileServiceProvider {
33 public: 33 public:
34 // Interface for reacting to profile requests. 34 // Interface for reacting to profile requests.
35 class Delegate { 35 class Delegate {
36 public: 36 public:
37 virtual ~Delegate() {} 37 virtual ~Delegate() {}
38 38
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 protected: 111 protected:
112 BluetoothProfileServiceProvider(); 112 BluetoothProfileServiceProvider();
113 113
114 private: 114 private:
115 DISALLOW_COPY_AND_ASSIGN(BluetoothProfileServiceProvider); 115 DISALLOW_COPY_AND_ASSIGN(BluetoothProfileServiceProvider);
116 }; 116 };
117 117
118 } // namespace bluez 118 } // namespace bluez
119 119
120 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_PROFILE_SERVICE_PROVIDER_H_ 120 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_PROFILE_SERVICE_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698