blob: 79dc9480f5bbc4c95e600143153662a24f4f8357 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// 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 CONTENT_RENDERER_MEDIA_STREAM_MEDIA_STREAM_IMPL_H_
#define CONTENT_RENDERER_MEDIA_STREAM_MEDIA_STREAM_IMPL_H_
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
#include "webkit/media/media_stream_client.h"
class VideoCaptureImplManager;
// A implementation of StreamClient to provide supporting functions, such as
// GetVideoDecoder.
class MediaStreamImpl
: public webkit_media::MediaStreamClient,
public base::RefCountedThreadSafe<MediaStreamImpl> {
public:
explicit MediaStreamImpl(VideoCaptureImplManager* vc_manager);
virtual ~MediaStreamImpl();
// Implement webkit_media::StreamClient.
virtual scoped_refptr<media::VideoDecoder> GetVideoDecoder(
const GURL& url,
media::MessageLoopFactory* message_loop_factory) OVERRIDE;
private:
scoped_refptr<VideoCaptureImplManager> vc_manager_;
DISALLOW_COPY_AND_ASSIGN(MediaStreamImpl);
};
#endif // CONTENT_RENDERER_MEDIA_STREAM_MEDIA_STREAM_IMPL_H_
|