OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |