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

Side by Side Diff: chromeos/dbus/bluetooth_media_client.cc

Issue 876153002: device/bluetooth:Implement Register() for BluetoothAudioSinkChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Marked BluetoothAudioSink with DEVICE_BLUETOOTH_EXPORT. Created 5 years, 10 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
« no previous file with comments | « chromeos/dbus/bluetooth_media_client.h ('k') | chromeos/dbus/fake_bluetooth_media_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chromeos/dbus/bluetooth_media_client.h ('k') | chromeos/dbus/fake_bluetooth_media_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698