| OLD | NEW |
| 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_ |
| OLD | NEW |