| OLD | NEW |
| 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_MANAGER_CLIENT_H_ | 5 #ifndef DEVICE_BLUETOOTH_DBUS_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_ |
| 6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_ | 6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 #include <vector> | 11 #include <vector> |
| 10 | 12 |
| 11 #include "base/callback.h" | 13 #include "base/callback.h" |
| 12 #include "base/macros.h" | 14 #include "base/macros.h" |
| 13 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/values.h" | 16 #include "base/values.h" |
| 15 #include "dbus/object_path.h" | 17 #include "dbus/object_path.h" |
| 16 #include "device/bluetooth/bluetooth_export.h" | 18 #include "device/bluetooth/bluetooth_export.h" |
| 17 #include "device/bluetooth/dbus/bluez_dbus_client.h" | 19 #include "device/bluetooth/dbus/bluez_dbus_client.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 36 // Human readable name for the profile. | 38 // Human readable name for the profile. |
| 37 scoped_ptr<std::string> name; | 39 scoped_ptr<std::string> name; |
| 38 | 40 |
| 39 // Primary service class UUID (if different from the actual UUID) | 41 // Primary service class UUID (if different from the actual UUID) |
| 40 scoped_ptr<std::string> service; | 42 scoped_ptr<std::string> service; |
| 41 | 43 |
| 42 // Role. | 44 // Role. |
| 43 enum ProfileRole role; | 45 enum ProfileRole role; |
| 44 | 46 |
| 45 // RFCOMM channel number. | 47 // RFCOMM channel number. |
| 46 scoped_ptr<uint16> channel; | 48 scoped_ptr<uint16_t> channel; |
| 47 | 49 |
| 48 // PSM number. | 50 // PSM number. |
| 49 scoped_ptr<uint16> psm; | 51 scoped_ptr<uint16_t> psm; |
| 50 | 52 |
| 51 // Pairing is required before connections will be established. | 53 // Pairing is required before connections will be established. |
| 52 scoped_ptr<bool> require_authentication; | 54 scoped_ptr<bool> require_authentication; |
| 53 | 55 |
| 54 // Request authorization before connections will be established. | 56 // Request authorization before connections will be established. |
| 55 scoped_ptr<bool> require_authorization; | 57 scoped_ptr<bool> require_authorization; |
| 56 | 58 |
| 57 // Force connections when a remote device is connected. | 59 // Force connections when a remote device is connected. |
| 58 scoped_ptr<bool> auto_connect; | 60 scoped_ptr<bool> auto_connect; |
| 59 | 61 |
| 60 // Manual SDP record. | 62 // Manual SDP record. |
| 61 scoped_ptr<std::string> service_record; | 63 scoped_ptr<std::string> service_record; |
| 62 | 64 |
| 63 // Profile version. | 65 // Profile version. |
| 64 scoped_ptr<uint16> version; | 66 scoped_ptr<uint16_t> version; |
| 65 | 67 |
| 66 // Profile features. | 68 // Profile features. |
| 67 scoped_ptr<uint16> features; | 69 scoped_ptr<uint16_t> features; |
| 68 }; | 70 }; |
| 69 | 71 |
| 70 ~BluetoothProfileManagerClient() override; | 72 ~BluetoothProfileManagerClient() override; |
| 71 | 73 |
| 72 // The ErrorCallback is used by adapter methods to indicate failure. | 74 // The ErrorCallback is used by adapter methods to indicate failure. |
| 73 // It receives two arguments: the name of the error in |error_name| and | 75 // It receives two arguments: the name of the error in |error_name| and |
| 74 // an optional message in |error_message|. | 76 // an optional message in |error_message|. |
| 75 typedef base::Callback<void(const std::string& error_name, | 77 typedef base::Callback<void(const std::string& error_name, |
| 76 const std::string& error_message)> ErrorCallback; | 78 const std::string& error_message)> ErrorCallback; |
| 77 | 79 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 100 protected: | 102 protected: |
| 101 BluetoothProfileManagerClient(); | 103 BluetoothProfileManagerClient(); |
| 102 | 104 |
| 103 private: | 105 private: |
| 104 DISALLOW_COPY_AND_ASSIGN(BluetoothProfileManagerClient); | 106 DISALLOW_COPY_AND_ASSIGN(BluetoothProfileManagerClient); |
| 105 }; | 107 }; |
| 106 | 108 |
| 107 } // namespace bluez | 109 } // namespace bluez |
| 108 | 110 |
| 109 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_ | 111 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_ |
| OLD | NEW |