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

Side by Side Diff: remoting/protocol/webrtc_video_capturer_adapter.h

Issue 1745923002: Remove use of deprecated methods to cricket::VideoCapturer in WebrtcVideoCapturerAdapter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 ~WebrtcVideoCapturerAdapter() override; 50 ~WebrtcVideoCapturerAdapter() override;
51 51
52 void SetSizeCallback(const SizeCallback& size_callback); 52 void SetSizeCallback(const SizeCallback& size_callback);
53 base::WeakPtr<WebrtcVideoCapturerAdapter> GetWeakPtr(); 53 base::WeakPtr<WebrtcVideoCapturerAdapter> GetWeakPtr();
54 54
55 // cricket::VideoCapturer implementation. 55 // cricket::VideoCapturer implementation.
56 bool GetBestCaptureFormat(const cricket::VideoFormat& desired, 56 bool GetBestCaptureFormat(const cricket::VideoFormat& desired,
57 cricket::VideoFormat* best_format) override; 57 cricket::VideoFormat* best_format) override;
58 cricket::CaptureState Start( 58 cricket::CaptureState Start(
59 const cricket::VideoFormat& capture_format) override; 59 const cricket::VideoFormat& capture_format) override;
60 bool Pause(bool pause) override; 60 bool PauseCapturer(bool pause);
Sergey Ulanov 2016/03/23 18:08:03 Since this is not part of the VideoCapturer interf
perkj_chrome 2016/03/23 20:11:45 Done.
61 void Stop() override; 61 void Stop() override;
62 bool IsRunning() override; 62 bool IsRunning() override;
63 bool IsScreencast() const override; 63 bool IsScreencast() const override;
64 bool GetPreferredFourccs(std::vector<uint32_t>* fourccs) override; 64 bool GetPreferredFourccs(std::vector<uint32_t>* fourccs) override;
65 65
66 private: 66 private:
67 // webrtc::DesktopCapturer::Callback implementation. 67 // webrtc::DesktopCapturer::Callback implementation.
68 webrtc::SharedMemory* CreateSharedMemory(size_t size) override; 68 webrtc::SharedMemory* CreateSharedMemory(size_t size) override;
69 void OnCaptureCompleted(webrtc::DesktopFrame* frame) override; 69 void OnCaptureCompleted(webrtc::DesktopFrame* frame) override;
70 70
(...skipping 19 matching lines...) Expand all
90 base::WeakPtrFactory<WebrtcVideoCapturerAdapter> weak_factory_; 90 base::WeakPtrFactory<WebrtcVideoCapturerAdapter> weak_factory_;
91 91
92 DISALLOW_COPY_AND_ASSIGN(WebrtcVideoCapturerAdapter); 92 DISALLOW_COPY_AND_ASSIGN(WebrtcVideoCapturerAdapter);
93 }; 93 };
94 94
95 } // namespace protocol 95 } // namespace protocol
96 } // namespace remoting 96 } // namespace remoting
97 97
98 #endif // REMOTING_PROTOCOL_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ 98 #endif // REMOTING_PROTOCOL_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_
99 99
OLDNEW
« no previous file with comments | « no previous file | remoting/protocol/webrtc_video_capturer_adapter.cc » ('j') | remoting/protocol/webrtc_video_capturer_adapter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698