| Index: components/copresence/mediums/audio/audio_player_stub.h
|
| diff --git a/components/copresence/mediums/audio/audio_player_stub.h b/components/copresence/mediums/audio/audio_player_stub.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6f330a81f372ccd8e95b14766eb70dcc00606799
|
| --- /dev/null
|
| +++ b/components/copresence/mediums/audio/audio_player_stub.h
|
| @@ -0,0 +1,37 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef COMPONENTS_COPRESENCE_MEDIUMS_AUDIO_AUDIO_PLAYER_STUB_H_
|
| +#define COMPONENTS_COPRESENCE_MEDIUMS_AUDIO_AUDIO_PLAYER_STUB_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "components/copresence/mediums/audio/audio_player.h"
|
| +
|
| +namespace media {
|
| +class AudioBusRefCounted;
|
| +}
|
| +
|
| +namespace copresence {
|
| +
|
| +class AudioPlayerStub final : public AudioPlayer {
|
| + public:
|
| + AudioPlayerStub();
|
| + virtual ~AudioPlayerStub();
|
| +
|
| + // AudioPlayer overrides:
|
| + virtual void Initialize() override;
|
| + virtual void Play(
|
| + const scoped_refptr<media::AudioBusRefCounted>& samples) override;
|
| + virtual void Stop() override;
|
| + virtual void Finalize() override;
|
| + virtual bool IsPlaying() override;
|
| +
|
| + private:
|
| + bool is_playing_;
|
| + DISALLOW_COPY_AND_ASSIGN(AudioPlayerStub);
|
| +};
|
| +
|
| +} // namespace copresence
|
| +
|
| +#endif // COMPONENTS_COPRESENCE_MEDIUMS_AUDIO_AUDIO_PLAYER_STUB_H_
|
|
|