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

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
« no previous file with comments | « chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 std::vector<uint8_t>& capabilities,
36 const Delegate::SelectConfigurationCallback& callback) {
37 VLOG(1) << object_path_.value() << ": SelectConfiguration";
38 delegate_->SelectConfiguration(capabilities, callback);
39 }
40
41 void FakeBluetoothMediaEndpointServiceProvider::ClearConfiguration(
42 const dbus::ObjectPath& transport_path) {
43 VLOG(1) << object_path_.value() << ": ClearConfiguration for"
44 << transport_path.value();
45 delegate_->ClearConfiguration(transport_path);
46 }
47
48 void FakeBluetoothMediaEndpointServiceProvider::Release() {
49 VLOG(1) << object_path_.value() << ": Release";
50 delegate_->Release();
51 }
52
53 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698