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

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: Moved kBluetoothAudioSinkUUID to BluetoothMediaClient. 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
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 23 matching lines...) Expand all
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 const char BluetoothMediaClient::kNoResponseError[] = 41 const char BluetoothMediaClient::kNoResponseError[] =
42 "org.chromium.Error.NoResponse"; 42 "org.chromium.Error.NoResponse";
43 43
44 const char BluetoothMediaClient::kBluetoothAudioSinkUUID[] =
armansito 2015/01/29 04:22:55 nit: All static variable assignments and method na
Miao 2015/01/29 23:58:37 Done.
45 "0000110b-0000-1000-8000-00805f9b34fb";
46
44 BluetoothMediaClient::EndpointProperties::EndpointProperties() : codec(0x00) { 47 BluetoothMediaClient::EndpointProperties::EndpointProperties() : codec(0x00) {
45 } 48 }
46 49
47 BluetoothMediaClient::EndpointProperties::~EndpointProperties() { 50 BluetoothMediaClient::EndpointProperties::~EndpointProperties() {
48 } 51 }
49 52
50 class BluetoothMediaClientImpl 53 class BluetoothMediaClientImpl
51 : public BluetoothMediaClient, dbus::ObjectManager::Interface { 54 : public BluetoothMediaClient, dbus::ObjectManager::Interface {
52 public: 55 public:
53 BluetoothMediaClientImpl() 56 BluetoothMediaClientImpl()
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 } 220 }
218 221
219 BluetoothMediaClient::~BluetoothMediaClient() { 222 BluetoothMediaClient::~BluetoothMediaClient() {
220 } 223 }
221 224
222 BluetoothMediaClient* BluetoothMediaClient::Create() { 225 BluetoothMediaClient* BluetoothMediaClient::Create() {
223 return new BluetoothMediaClientImpl(); 226 return new BluetoothMediaClientImpl();
224 } 227 }
225 228
226 } // namespace chromeos 229 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698