OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 REMOTING_HOST_CAST_VIDEO_CAPTURER_ADAPTER_H_ | 5 #ifndef REMOTING_HOST_CAST_VIDEO_CAPTURER_ADAPTER_H_ |
6 #define REMOTING_HOST_CAST_VIDEO_CAPTURER_ADAPTER_H_ | 6 #define REMOTING_HOST_CAST_VIDEO_CAPTURER_ADAPTER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // The captured frame will be passed to OnCaptureCompleted(). | 60 // The captured frame will be passed to OnCaptureCompleted(). |
61 void CaptureNextFrame(); | 61 void CaptureNextFrame(); |
62 | 62 |
63 // |thread_checker_| is bound to the peer connection worker thread. | 63 // |thread_checker_| is bound to the peer connection worker thread. |
64 base::ThreadChecker thread_checker_; | 64 base::ThreadChecker thread_checker_; |
65 | 65 |
66 // Used to capture frames. | 66 // Used to capture frames. |
67 scoped_ptr<webrtc::DesktopCapturer> desktop_capturer_; | 67 scoped_ptr<webrtc::DesktopCapturer> desktop_capturer_; |
68 | 68 |
69 // Used to schedule periodic screen captures. | 69 // Used to schedule periodic screen captures. |
70 scoped_ptr<base::RepeatingTimer<CastVideoCapturerAdapter> > capture_timer_; | 70 scoped_ptr<base::RepeatingTimer> capture_timer_; |
71 | 71 |
72 // Used to set the elapsed_time attribute of captured frames. | 72 // Used to set the elapsed_time attribute of captured frames. |
73 base::TimeTicks start_time_; | 73 base::TimeTicks start_time_; |
74 | 74 |
75 DISALLOW_COPY_AND_ASSIGN(CastVideoCapturerAdapter); | 75 DISALLOW_COPY_AND_ASSIGN(CastVideoCapturerAdapter); |
76 }; | 76 }; |
77 | 77 |
78 } // namespace remoting | 78 } // namespace remoting |
79 | 79 |
80 #endif // REMOTING_HOST_CAST_VIDEO_CAPTURER_ADAPTER_H_ | 80 #endif // REMOTING_HOST_CAST_VIDEO_CAPTURER_ADAPTER_H_ |
81 | 81 |
OLD | NEW |