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: remoting/protocol/webrtc_video_capturer_adapter.h

Issue 1542203002: Switch to standard integer types in remoting/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-remoting-host
Patch Set: Created 4 years, 12 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PROTOCOL_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ 5 #ifndef REMOTING_PROTOCOL_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_
6 #define REMOTING_PROTOCOL_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ 6 #define REMOTING_PROTOCOL_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_
7 7
8 #include <stddef.h>
9 #include <stdint.h>
10
8 #include <vector> 11 #include <vector>
9 12
10 #include "base/macros.h" 13 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
12 #include "base/threading/thread_checker.h" 15 #include "base/threading/thread_checker.h"
13 #include "base/timer/timer.h" 16 #include "base/timer/timer.h"
14 #include "third_party/libjingle/source/talk/media/base/videocapturer.h" 17 #include "third_party/libjingle/source/talk/media/base/videocapturer.h"
15 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" 18 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h"
16 19
17 namespace base { 20 namespace base {
(...skipping 29 matching lines...) Expand all
47 50
48 // cricket::VideoCapturer implementation. 51 // cricket::VideoCapturer implementation.
49 bool GetBestCaptureFormat(const cricket::VideoFormat& desired, 52 bool GetBestCaptureFormat(const cricket::VideoFormat& desired,
50 cricket::VideoFormat* best_format) override; 53 cricket::VideoFormat* best_format) override;
51 cricket::CaptureState Start( 54 cricket::CaptureState Start(
52 const cricket::VideoFormat& capture_format) override; 55 const cricket::VideoFormat& capture_format) override;
53 bool Pause(bool pause) override; 56 bool Pause(bool pause) override;
54 void Stop() override; 57 void Stop() override;
55 bool IsRunning() override; 58 bool IsRunning() override;
56 bool IsScreencast() const override; 59 bool IsScreencast() const override;
57 bool GetPreferredFourccs(std::vector<uint32>* fourccs) override; 60 bool GetPreferredFourccs(std::vector<uint32_t>* fourccs) override;
58 61
59 private: 62 private:
60 // Kicks off the next frame capture using |desktop_capturer_|. 63 // Kicks off the next frame capture using |desktop_capturer_|.
61 // The captured frame will be passed to OnCaptureCompleted(). 64 // The captured frame will be passed to OnCaptureCompleted().
62 void CaptureNextFrame(); 65 void CaptureNextFrame();
63 66
64 // |thread_checker_| is bound to the peer connection worker thread. 67 // |thread_checker_| is bound to the peer connection worker thread.
65 base::ThreadChecker thread_checker_; 68 base::ThreadChecker thread_checker_;
66 69
67 // Used to capture frames. 70 // Used to capture frames.
68 scoped_ptr<webrtc::DesktopCapturer> desktop_capturer_; 71 scoped_ptr<webrtc::DesktopCapturer> desktop_capturer_;
69 72
70 // Used to schedule periodic screen captures. 73 // Used to schedule periodic screen captures.
71 scoped_ptr<base::RepeatingTimer> capture_timer_; 74 scoped_ptr<base::RepeatingTimer> capture_timer_;
72 75
73 DISALLOW_COPY_AND_ASSIGN(WebrtcVideoCapturerAdapter); 76 DISALLOW_COPY_AND_ASSIGN(WebrtcVideoCapturerAdapter);
74 }; 77 };
75 78
76 } // namespace remoting 79 } // namespace remoting
77 80
78 #endif // REMOTING_PROTOCOL_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ 81 #endif // REMOTING_PROTOCOL_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_
79 82
OLDNEW
« no previous file with comments | « remoting/protocol/webrtc_transport_unittest.cc ('k') | remoting/protocol/webrtc_video_capturer_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698