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

Side by Side Diff: components/copresence/mediums/audio/audio_player_stub.h

Issue 637223011: Redesign the copresence audio handlers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 years, 2 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_COPRESENCE_MEDIUMS_AUDIO_AUDIO_PLAYER_STUB_H_
6 #define COMPONENTS_COPRESENCE_MEDIUMS_AUDIO_AUDIO_PLAYER_STUB_H_
7
8 #include "base/macros.h"
9 #include "components/copresence/mediums/audio/audio_player.h"
10
11 namespace media {
12 class AudioBusRefCounted;
13 }
14
15 namespace copresence {
16
17 class AudioPlayerStub final : public AudioPlayer {
18 public:
19 AudioPlayerStub();
20 virtual ~AudioPlayerStub();
21
22 // AudioPlayer overrides:
23 virtual void Initialize() override;
24 virtual void Play(
25 const scoped_refptr<media::AudioBusRefCounted>& samples) override;
26 virtual void Stop() override;
27 virtual void Finalize() override;
28 virtual bool IsPlaying() override;
29
30 private:
31 bool is_playing_;
32 DISALLOW_COPY_AND_ASSIGN(AudioPlayerStub);
33 };
34
35 } // namespace copresence
36
37 #endif // COMPONENTS_COPRESENCE_MEDIUMS_AUDIO_AUDIO_PLAYER_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698