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

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

Issue 8037055: Add OnRemoved() in VideoCapture::EventHandler API (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: change needed for unit test Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/renderer/media/capture_video_decoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_CAPTURE_VIDEO_DECODER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_CAPTURE_VIDEO_DECODER_H_
6 #define CONTENT_RENDERER_MEDIA_CAPTURE_VIDEO_DECODER_H_ 6 #define CONTENT_RENDERER_MEDIA_CAPTURE_VIDEO_DECODER_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 media::StatisticsCallback* stat_callback) OVERRIDE; 44 media::StatisticsCallback* stat_callback) OVERRIDE;
45 virtual void ProduceVideoFrame( 45 virtual void ProduceVideoFrame(
46 scoped_refptr<media::VideoFrame> video_frame) OVERRIDE; 46 scoped_refptr<media::VideoFrame> video_frame) OVERRIDE;
47 virtual gfx::Size natural_size() OVERRIDE; 47 virtual gfx::Size natural_size() OVERRIDE;
48 48
49 // VideoCapture::EventHandler implementation. 49 // VideoCapture::EventHandler implementation.
50 virtual void OnStarted(media::VideoCapture* capture) OVERRIDE; 50 virtual void OnStarted(media::VideoCapture* capture) OVERRIDE;
51 virtual void OnStopped(media::VideoCapture* capture) OVERRIDE; 51 virtual void OnStopped(media::VideoCapture* capture) OVERRIDE;
52 virtual void OnPaused(media::VideoCapture* capture) OVERRIDE; 52 virtual void OnPaused(media::VideoCapture* capture) OVERRIDE;
53 virtual void OnError(media::VideoCapture* capture, int error_code) OVERRIDE; 53 virtual void OnError(media::VideoCapture* capture, int error_code) OVERRIDE;
54 virtual void OnRemoved(media::VideoCapture* capture) OVERRIDE;
54 virtual void OnBufferReady( 55 virtual void OnBufferReady(
55 media::VideoCapture* capture, 56 media::VideoCapture* capture,
56 scoped_refptr<media::VideoCapture::VideoFrameBuffer> buf) OVERRIDE; 57 scoped_refptr<media::VideoCapture::VideoFrameBuffer> buf) OVERRIDE;
57 virtual void OnDeviceInfoReceived( 58 virtual void OnDeviceInfoReceived(
58 media::VideoCapture* capture, 59 media::VideoCapture* capture,
59 const media::VideoCaptureParams& device_info) OVERRIDE; 60 const media::VideoCaptureParams& device_info) OVERRIDE;
60 61
61 private: 62 private:
62 friend class CaptureVideoDecoderTest; 63 friend class CaptureVideoDecoderTest;
63 64
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 scoped_ptr<media::StatisticsCallback> statistics_callback_; 96 scoped_ptr<media::StatisticsCallback> statistics_callback_;
96 97
97 media::VideoCaptureSessionId video_stream_id_; 98 media::VideoCaptureSessionId video_stream_id_;
98 media::VideoCapture* capture_engine_; 99 media::VideoCapture* capture_engine_;
99 base::Time start_time_; 100 base::Time start_time_;
100 101
101 DISALLOW_COPY_AND_ASSIGN(CaptureVideoDecoder); 102 DISALLOW_COPY_AND_ASSIGN(CaptureVideoDecoder);
102 }; 103 };
103 104
104 #endif // CONTENT_RENDERER_MEDIA_CAPTURE_VIDEO_DECODER_H_ 105 #endif // CONTENT_RENDERER_MEDIA_CAPTURE_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/capture_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698