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

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

Issue 725383003: chromeos/dbus: Add BlueZ Media Endpoint Service Provider API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.h"
6
7 namespace chromeos {
8
9 // TODO(mcchou): Add the logic of the behavior.
10 FakeBluetoothMediaEndpointServiceProvider::
11 FakeBluetoothMediaEndpointServiceProvider(
12 const dbus::ObjectPath object_path, Delegate* delegate)
13 : object_path_(object_path) , delegate_(delegate) {
14 VLOG(1) << "Create Bluetooth Media Endpoint: " << object_path_.value();
15 // TODO(mcchou): Use the FakeBluetoothMediaClient in DBusThreadManager
16 // to register the FakeBluetoothMediaEndpoint object.
17 }
18
19 FakeBluetoothMediaEndpointServiceProvider::
20 ~FakeBluetoothMediaEndpointServiceProvider() {
21 VLOG(1) << "Cleaning up Bluetooth Media Endpoint: " << object_path_.value();
22 // TODO(mcchou): Use the FakeBluetoothMediaClient in DBusThreadManager
23 // to unregister the FakeBluetoothMediaEndpoint object.
24 }
25
26 void FakeBluetoothMediaEndpointServiceProvider::SetConfiguration(
27 const dbus::ObjectPath& transport_path,
28 const dbus::MessageReader& properties) {
29 VLOG(1) << object_path_.value() << ": SetConfiguration for "
30 << transport_path.value();
31 delegate_->SetConfiguration(transport_path, properties);
32 }
33
34 void FakeBluetoothMediaEndpointServiceProvider::SelectConfiguration(
35 const uint8_t* capabilities,
36 size_t length,
37 const Delegate::SelectConfigurationCallback& callback) {
38 VLOG(1) << object_path_.value() << ": SelectConfiguration";
39 delegate_->SelectConfiguration(capabilities, length, callback);
40 }
41
42 void FakeBluetoothMediaEndpointServiceProvider::ClearConfiguration(
43 const dbus::ObjectPath& transport_path) {
44 VLOG(1) << object_path_.value() << ": ClearConfiguration for"
45 << transport_path.value();
46 delegate_->ClearConfiguration(transport_path);
47 }
48
49 void FakeBluetoothMediaEndpointServiceProvider::Release() {
50 VLOG(1) << object_path_.value() << ": Release";
51 delegate_->Release();
52 }
53
54 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698