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

Unified 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698