diff options
author | wjia@chromium.org <wjia@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-20 19:57:40 +0000 |
---|---|---|
committer | wjia@chromium.org <wjia@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-20 19:57:40 +0000 |
commit | ab2c4737d17cc4ce21e16e5382f19ce7aac8d7d7 (patch) | |
tree | aa8b742f1721b64c1ccc9486616bf05b5640de9d /webkit/glue/media | |
parent | 13a8f498151ac4e1e771cb3d70d56f38848be04a (diff) | |
download | chromium_src-ab2c4737d17cc4ce21e16e5382f19ce7aac8d7d7.zip chromium_src-ab2c4737d17cc4ce21e16e5382f19ce7aac8d7d7.tar.gz chromium_src-ab2c4737d17cc4ce21e16e5382f19ce7aac8d7d7.tar.bz2 |
reland patch http://codereview.chromium.org/7204008 after webrtc build has been fixed.
BUG=none
TEST=try bots
Review URL: http://codereview.chromium.org/7458006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93235 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/media')
-rw-r--r-- | webkit/glue/media/media_stream_client.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/webkit/glue/media/media_stream_client.h b/webkit/glue/media/media_stream_client.h new file mode 100644 index 0000000..2f51d91 --- /dev/null +++ b/webkit/glue/media/media_stream_client.h @@ -0,0 +1,33 @@ +// Copyright (c) 2011 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_GLUE_MEDIA_MEDIA_STREAM_CLIENT_H_ +#define WEBKIT_GLUE_MEDIA_MEDIA_STREAM_CLIENT_H_ + +#include "base/memory/ref_counted.h" + +class GURL; + +namespace media { +class VideoDecoder; +class MessageLoopFactory; +} + +namespace webkit_glue { + +// Define an interface for media stream client to get some information about +// the media stream. +class MediaStreamClient { + public: + virtual scoped_refptr<media::VideoDecoder> GetVideoDecoder( + const GURL& url, + media::MessageLoopFactory* message_loop_factory) = 0; + + protected: + virtual ~MediaStreamClient() {} +}; + +} // namespace webkit_glue + +#endif // WEBKIT_GLUE_MEDIA_MEDIA_STREAM_CLIENT_H_ |