Fix playing of 8-bit sample files via webaudio.
[chromium-blink-merge.git] / webkit / glue / media / media_stream_client.h
blob2f51d9180b05a323b1291cac242591a5adb0bf4b
1 // Copyright (c) 2011 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.
5 #ifndef WEBKIT_GLUE_MEDIA_MEDIA_STREAM_CLIENT_H_
6 #define WEBKIT_GLUE_MEDIA_MEDIA_STREAM_CLIENT_H_
8 #include "base/memory/ref_counted.h"
10 class GURL;
12 namespace media {
13 class VideoDecoder;
14 class MessageLoopFactory;
17 namespace webkit_glue {
19 // Define an interface for media stream client to get some information about
20 // the media stream.
21 class MediaStreamClient {
22 public:
23 virtual scoped_refptr<media::VideoDecoder> GetVideoDecoder(
24 const GURL& url,
25 media::MessageLoopFactory* message_loop_factory) = 0;
27 protected:
28 virtual ~MediaStreamClient() {}
31 } // namespace webkit_glue
33 #endif // WEBKIT_GLUE_MEDIA_MEDIA_STREAM_CLIENT_H_