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

Side by Side Diff: device/bluetooth/bluetooth_audio_sink.h

Issue 939753004: device/bluetooth: Implement Unregister() of BlueotoothAudioSinkChromeOS and disconnection-related c… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revised helper functions in FakeBluetoothMediaClient and FakeBluetoothMediaTransportClient and modi… 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 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_AUDIO_SINK_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_AUDIO_SINK_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_AUDIO_SINK_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_AUDIO_SINK_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 22 matching lines...) Expand all
33 STATE_INVALID, // BluetoothAdapter not presented or not powered. 33 STATE_INVALID, // BluetoothAdapter not presented or not powered.
34 STATE_DISCONNECTED, // Not connected. 34 STATE_DISCONNECTED, // Not connected.
35 STATE_IDLE, // Connected but not streaming. 35 STATE_IDLE, // Connected but not streaming.
36 STATE_PENDING, // Connected, streaming but not acquired. 36 STATE_PENDING, // Connected, streaming but not acquired.
37 STATE_ACTIVE, // Connected, streaming and acquired. 37 STATE_ACTIVE, // Connected, streaming and acquired.
38 }; 38 };
39 39
40 // Possible types of error raised by Audio Sink object. 40 // Possible types of error raised by Audio Sink object.
41 enum ErrorCode { 41 enum ErrorCode {
42 ERROR_UNSUPPORTED_PLATFORM, // A2DP sink not supported on current platform. 42 ERROR_UNSUPPORTED_PLATFORM, // A2DP sink not supported on current platform.
43 ERROR_INVALID_ADAPTER, // BluetoothAdapter not presented/powered. 43 ERROR_INVALID_ADAPTER, // BluetoothAdapter not presented/powered.
armansito 2015/02/23 22:07:06 nit: s/presented/present/
Miao 2015/02/24 01:12:12 Done.
44 ERROR_NOT_REGISTERED, // BluetoothAudioSink not registered. 44 ERROR_NOT_REGISTERED, // BluetoothAudioSink not registered.
45 ERROR_NOT_UNREGISTERED, // BluetoothAudioSink not unregistered.
45 }; 46 };
46 47
47 // Options to configure an A2DP audio sink. 48 // Options to configure an A2DP audio sink.
48 struct Options { 49 struct Options {
49 Options(); 50 Options();
50 ~Options(); 51 ~Options();
51 52
52 uint8_t codec; 53 uint8_t codec;
53 std::vector<uint8_t> capabilities; 54 std::vector<uint8_t> capabilities;
54 }; 55 };
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // unregistered even if the user applications fail to do so. 106 // unregistered even if the user applications fail to do so.
106 virtual ~BluetoothAudioSink(); 107 virtual ~BluetoothAudioSink();
107 108
108 private: 109 private:
109 DISALLOW_COPY_AND_ASSIGN(BluetoothAudioSink); 110 DISALLOW_COPY_AND_ASSIGN(BluetoothAudioSink);
110 }; 111 };
111 112
112 } // namespace device 113 } // namespace device
113 114
114 #endif // DEVICE_BLUETOOTH_BLUETOOTH_AUDIO_SINK_H_ 115 #endif // DEVICE_BLUETOOTH_BLUETOOTH_AUDIO_SINK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698