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

Side by Side Diff: media/video/capture/video_capture_proxy.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 | « media/video/capture/video_capture.h ('k') | media/video/capture/video_capture_proxy.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 MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_PROXY_H_ 5 #ifndef MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_PROXY_H_
6 #define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_PROXY_H_ 6 #define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_PROXY_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/task.h" 10 #include "base/task.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 // Retrieves the state of the VideoCapture. Must be called on main thread. 45 // Retrieves the state of the VideoCapture. Must be called on main thread.
46 const VideoCaptureState& state() const { return state_; } 46 const VideoCaptureState& state() const { return state_; }
47 VideoCapture::EventHandler* proxied() const { return proxied_; } 47 VideoCapture::EventHandler* proxied() const { return proxied_; }
48 48
49 // VideoCapture::EventHandler implementation, called on VC thread. 49 // VideoCapture::EventHandler implementation, called on VC thread.
50 virtual void OnStarted(VideoCapture* capture) OVERRIDE; 50 virtual void OnStarted(VideoCapture* capture) OVERRIDE;
51 virtual void OnStopped(VideoCapture* capture) OVERRIDE; 51 virtual void OnStopped(VideoCapture* capture) OVERRIDE;
52 virtual void OnPaused(VideoCapture* capture) OVERRIDE; 52 virtual void OnPaused(VideoCapture* capture) OVERRIDE;
53 virtual void OnError(VideoCapture* capture, int error_code) OVERRIDE; 53 virtual void OnError(VideoCapture* capture, int error_code) OVERRIDE;
54 virtual void OnRemoved(VideoCapture* capture) OVERRIDE;
54 virtual void OnBufferReady( 55 virtual void OnBufferReady(
55 VideoCapture* capture, 56 VideoCapture* capture,
56 scoped_refptr<VideoCapture::VideoFrameBuffer> buffer) OVERRIDE; 57 scoped_refptr<VideoCapture::VideoFrameBuffer> buffer) OVERRIDE;
57 virtual void OnDeviceInfoReceived( 58 virtual void OnDeviceInfoReceived(
58 VideoCapture* capture, 59 VideoCapture* capture,
59 const VideoCaptureParams& device_info) OVERRIDE; 60 const VideoCaptureParams& device_info) OVERRIDE;
60 61
61 private: 62 private:
62 // Called on main thread. 63 // Called on main thread.
63 void OnStartedOnMainThread( 64 void OnStartedOnMainThread(
(...skipping 22 matching lines...) Expand all
86 VideoCapture::EventHandler* proxied_; 87 VideoCapture::EventHandler* proxied_;
87 VideoCaptureState state_; 88 VideoCaptureState state_;
88 89
89 scoped_refptr<base::MessageLoopProxy> main_message_loop_; 90 scoped_refptr<base::MessageLoopProxy> main_message_loop_;
90 }; 91 };
91 92
92 } // namespace media 93 } // namespace media
93 DISABLE_RUNNABLE_METHOD_REFCOUNT(media::VideoCaptureHandlerProxy); 94 DISABLE_RUNNABLE_METHOD_REFCOUNT(media::VideoCaptureHandlerProxy);
94 95
95 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_PROXY_H_ 96 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_PROXY_H_
OLDNEW
« no previous file with comments | « media/video/capture/video_capture.h ('k') | media/video/capture/video_capture_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698