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

Side by Side Diff: content/renderer/media/mock_media_stream_video_sink.h

Issue 212973002: Refactor VideoDestinationHandler to implement MediaStreamVideoSource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 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.
4
5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SINK_H_
6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SINK_H_
7
8 #include "content/public/renderer/media_stream_video_sink.h"
9
10 namespace content {
11
12 class MockMediaStreamVideoSink : public MediaStreamVideoSink {
13 public:
14 MockMediaStreamVideoSink();
15
16 virtual void OnVideoFrame(
17 const scoped_refptr<media::VideoFrame>& frame) OVERRIDE;
18 virtual void OnReadyStateChanged(
19 blink::WebMediaStreamSource::ReadyState state) OVERRIDE;
20 virtual void OnEnabledChanged(bool enabled) OVERRIDE;
21
22 int number_of_frames() const { return number_of_frames_; }
23 bool enabled() const { return enabled_; }
24 blink::WebMediaStreamSource::ReadyState state() const { return state_; }
25
26 private:
27 int number_of_frames_;
28 bool enabled_;
29 blink::WebMediaStreamSource::ReadyState state_;
30 };
31
32 } // namespace content
33
34 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698