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

Side by Side Diff: chromeos/dbus/fake_bluetooth_media_transport_client.h

Issue 1034893002: device/bluetooth: Add read_mtu as an argument of BluetoothAudioSinkDataAvailable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | « no previous file | chromeos/dbus/fake_bluetooth_media_transport_client.cc » ('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 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_TRANSPORT_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_TRANSPORT_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_TRANSPORT_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_TRANSPORT_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 27 matching lines...) Expand all
38 static const char kTransportPath[]; 38 static const char kTransportPath[];
39 39
40 // The default properties including device, codec, configuration, state, delay 40 // The default properties including device, codec, configuration, state, delay
41 // and volume, owned by a fake media transport object we emulate. 41 // and volume, owned by a fake media transport object we emulate.
42 static const char kTransportDevicePath[]; 42 static const char kTransportDevicePath[];
43 static const uint8_t kTransportCodec; 43 static const uint8_t kTransportCodec;
44 static const std::vector<uint8_t> kTransportConfiguration; 44 static const std::vector<uint8_t> kTransportConfiguration;
45 static const uint16_t kTransportDelay; 45 static const uint16_t kTransportDelay;
46 static const uint16_t kTransportVolume; 46 static const uint16_t kTransportVolume;
47 47
48 // The default MTUs for read and write.
49 static const uint16_t kReadMtu;
armansito 2015/03/26 20:20:18 If these are defaults then name these "kDefaultRea
Miao 2015/03/26 20:34:13 Done.
50 static const uint16_t kWriteMtu;
51
48 FakeBluetoothMediaTransportClient(); 52 FakeBluetoothMediaTransportClient();
49 ~FakeBluetoothMediaTransportClient() override; 53 ~FakeBluetoothMediaTransportClient() override;
50 54
51 // DBusClient override. 55 // DBusClient override.
52 void Init(dbus::Bus* bus) override; 56 void Init(dbus::Bus* bus) override;
53 57
54 // BluetoothMediaTransportClient override. 58 // BluetoothMediaTransportClient override.
55 void AddObserver(Observer* observer) override; 59 void AddObserver(Observer* observer) override;
56 void RemoveObserver(Observer* observer) override; 60 void RemoveObserver(Observer* observer) override;
57 Properties* GetProperties(const dbus::ObjectPath& object_path) override; 61 Properties* GetProperties(const dbus::ObjectPath& object_path) override;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 std::map<dbus::ObjectPath, dbus::ObjectPath> transport_to_endpoint_map_; 139 std::map<dbus::ObjectPath, dbus::ObjectPath> transport_to_endpoint_map_;
136 140
137 ObserverList<BluetoothMediaTransportClient::Observer> observers_; 141 ObserverList<BluetoothMediaTransportClient::Observer> observers_;
138 142
139 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothMediaTransportClient); 143 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothMediaTransportClient);
140 }; 144 };
141 145
142 } // namespace chromeos 146 } // namespace chromeos
143 147
144 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_TRANSPORT_CLIENT_H_ 148 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_TRANSPORT_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chromeos/dbus/fake_bluetooth_media_transport_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698