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

Unified Diff: webkit/media/media_stream_audio_renderer.h

Issue 11270012: Adding audio support to the new webmediaplyer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed the nits from Andrew and fixed the chromeOS testbot error Created 8 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: webkit/media/media_stream_audio_renderer.h
diff --git a/webkit/media/media_stream_audio_renderer.h b/webkit/media/media_stream_audio_renderer.h
new file mode 100644
index 0000000000000000000000000000000000000000..ea272db8e49453588298d03a9af3cfb1b9852b91
--- /dev/null
+++ b/webkit/media/media_stream_audio_renderer.h
@@ -0,0 +1,40 @@
+// Copyright (c) 2012 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 WEBKIT_MEDIA_MEDIA_STREAM_AUDIO_RENDERER_H_
+#define WEBKIT_MEDIA_MEDIA_STREAM_AUDIO_RENDERER_H_
+
+#include "base/memory/ref_counted.h"
+#include "media/base/media_export.h"
+
+namespace webkit_media {
+
+class MediaStreamAudioRenderer
+ : public base::RefCountedThreadSafe<MediaStreamAudioRenderer> {
+ public:
+ // Starts rendering audio.
+ virtual void Play() = 0;
+
+ // Temporarily suspends rendering audio.
+ virtual void Pause() = 0;
+
+ // Stops all operations in preparation for being deleted.
+ virtual void Stop() = 0;
+
+ // Sets the output volume.
+ virtual void SetVolume(float volume) = 0;
+
+ protected:
+ friend class base::RefCountedThreadSafe<MediaStreamAudioRenderer>;
+
+ MediaStreamAudioRenderer();
+ virtual ~MediaStreamAudioRenderer();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MediaStreamAudioRenderer);
+};
+
+} // namespace webkit_media
+
+#endif // WEBKIT_MEDIA_MEDIA_STREAM_AUDIO_RENDERER_H_

Powered by Google App Engine
This is Rietveld 408576698