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

Side by Side Diff: media/base/fake_output_device.h

Issue 1323403005: Allow AudioOutputDevice objects to be initialized with a specific hardware output device and store … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Palmer's comments Created 5 years, 3 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 (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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 MEDIA_AUDIO_FAKE_OUTPUT_DEVICE_H_ 5 #ifndef MEDIA_BASE_FAKE_OUTPUT_DEVICE_H_
6 #define MEDIA_AUDIO_FAKE_OUTPUT_DEVICE_H_ 6 #define MEDIA_BASE_FAKE_OUTPUT_DEVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "media/base/output_device.h" 10 #include "media/base/output_device.h"
11 11
12 namespace media { 12 namespace media {
13 13
14 class FakeOutputDevice : public OutputDevice { 14 class FakeOutputDevice : public OutputDevice {
15 public: 15 public:
16 FakeOutputDevice(); 16 FakeOutputDevice();
17 ~FakeOutputDevice() override; 17 ~FakeOutputDevice() override;
18 18
19 // OutputDevice implementation. 19 // OutputDevice implementation.
20 void SwitchOutputDevice(const std::string& device_id, 20 void SwitchOutputDevice(const std::string& device_id,
21 const GURL& security_origin, 21 const url::Origin& security_origin,
22 const SwitchOutputDeviceCB& callback) override; 22 const SwitchOutputDeviceCB& callback) override;
23 AudioParameters GetOutputParameters() override;
23 24
24 private: 25 private:
25 DISALLOW_COPY_AND_ASSIGN(FakeOutputDevice); 26 DISALLOW_COPY_AND_ASSIGN(FakeOutputDevice);
26 }; 27 };
27 28
28 } // namespace media 29 } // namespace media
29 30
30 #endif // MEDIA_AUDIO_FAKE_OUTPUT_DEVICE_H_ 31 #endif // MEDIA_BASE_FAKE_OUTPUT_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698