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

Side by Side Diff: content/browser/media/capture/desktop_capture_device_aura.h

Issue 1865283003: Revert of Tab/Desktop Capture: Use requests instead of timer-based refreshing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@video_refresh_from_sinks
Patch Set: Created 4 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_AURA_H_ 5 #ifndef CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_AURA_H_
6 #define CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_AURA_H_ 6 #define CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_AURA_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 16 matching lines...) Expand all
27 // Creates a VideoCaptureDevice for the Aura desktop. If |source| does not 27 // Creates a VideoCaptureDevice for the Aura desktop. If |source| does not
28 // reference a registered aura window, returns nullptr instead. 28 // reference a registered aura window, returns nullptr instead.
29 static scoped_ptr<media::VideoCaptureDevice> Create( 29 static scoped_ptr<media::VideoCaptureDevice> Create(
30 const DesktopMediaID& source); 30 const DesktopMediaID& source);
31 31
32 ~DesktopCaptureDeviceAura() override; 32 ~DesktopCaptureDeviceAura() override;
33 33
34 // VideoCaptureDevice implementation. 34 // VideoCaptureDevice implementation.
35 void AllocateAndStart(const media::VideoCaptureParams& params, 35 void AllocateAndStart(const media::VideoCaptureParams& params,
36 scoped_ptr<Client> client) override; 36 scoped_ptr<Client> client) override;
37 void RequestRefreshFrame() override;
38 void StopAndDeAllocate() override; 37 void StopAndDeAllocate() override;
39 38
40 private: 39 private:
41 explicit DesktopCaptureDeviceAura(const DesktopMediaID& source); 40 explicit DesktopCaptureDeviceAura(const DesktopMediaID& source);
42 41
43 scoped_ptr<media::ScreenCaptureDeviceCore> core_; 42 scoped_ptr<media::ScreenCaptureDeviceCore> core_;
44 43
45 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureDeviceAura); 44 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureDeviceAura);
46 }; 45 };
47 46
48 47
49 } // namespace content 48 } // namespace content
50 49
51 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_AURA_H_ 50 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698