OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "chromeos/dbus/bluetooth_media_client.h" | 5 #include "chromeos/dbus/bluetooth_media_client.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 // The set of properties which are used to register a media endpoint. | 32 // The set of properties which are used to register a media endpoint. |
33 const char kUUIDEndpointProperty[] = "UUID"; | 33 const char kUUIDEndpointProperty[] = "UUID"; |
34 const char kCodecEndpointProperty[] = "Codec"; | 34 const char kCodecEndpointProperty[] = "Codec"; |
35 const char kCapabilitiesEndpointProperty[] = "Capabilities"; | 35 const char kCapabilitiesEndpointProperty[] = "Capabilities"; |
36 | 36 |
37 } // namespace | 37 } // namespace |
38 | 38 |
39 namespace chromeos { | 39 namespace chromeos { |
40 | 40 |
| 41 // static |
41 const char BluetoothMediaClient::kNoResponseError[] = | 42 const char BluetoothMediaClient::kNoResponseError[] = |
42 "org.chromium.Error.NoResponse"; | 43 "org.chromium.Error.NoResponse"; |
43 | 44 |
| 45 // static |
| 46 const char BluetoothMediaClient::kBluetoothAudioSinkUUID[] = |
| 47 "0000110b-0000-1000-8000-00805f9b34fb"; |
| 48 |
44 BluetoothMediaClient::EndpointProperties::EndpointProperties() : codec(0x00) { | 49 BluetoothMediaClient::EndpointProperties::EndpointProperties() : codec(0x00) { |
45 } | 50 } |
46 | 51 |
47 BluetoothMediaClient::EndpointProperties::~EndpointProperties() { | 52 BluetoothMediaClient::EndpointProperties::~EndpointProperties() { |
48 } | 53 } |
49 | 54 |
50 class BluetoothMediaClientImpl | 55 class BluetoothMediaClientImpl |
51 : public BluetoothMediaClient, dbus::ObjectManager::Interface { | 56 : public BluetoothMediaClient, dbus::ObjectManager::Interface { |
52 public: | 57 public: |
53 BluetoothMediaClientImpl() | 58 BluetoothMediaClientImpl() |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 } | 222 } |
218 | 223 |
219 BluetoothMediaClient::~BluetoothMediaClient() { | 224 BluetoothMediaClient::~BluetoothMediaClient() { |
220 } | 225 } |
221 | 226 |
222 BluetoothMediaClient* BluetoothMediaClient::Create() { | 227 BluetoothMediaClient* BluetoothMediaClient::Create() { |
223 return new BluetoothMediaClientImpl(); | 228 return new BluetoothMediaClientImpl(); |
224 } | 229 } |
225 | 230 |
226 } // namespace chromeos | 231 } // namespace chromeos |
OLD | NEW |