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

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

Issue 974513002: content: Split out VideoCaptureMachine from DesktopCaptureDeviceAura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary use of WeakPtr & rebase on ToT Created 5 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 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/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "content/public/browser/desktop_media_id.h" 12 #include "content/public/browser/desktop_media_id.h"
13 #include "media/video/capture/video_capture_device.h" 13 #include "media/video/capture/video_capture_device.h"
14 14
15 namespace aura { 15 namespace aura {
16 class Window; 16 class Window;
17 } // namespace aura 17 } // namespace aura
18 18
19 namespace content { 19 namespace content {
20 20
21 class ContentVideoCaptureDeviceCore; 21 class ContentVideoCaptureDeviceCore;
22 class AuraWindowCaptureMachine;
22 23
23 // An implementation of VideoCaptureDevice that mirrors an Aura window. 24 // An implementation of VideoCaptureDevice that mirrors an Aura window.
24 class CONTENT_EXPORT DesktopCaptureDeviceAura 25 class CONTENT_EXPORT DesktopCaptureDeviceAura
25 : public media::VideoCaptureDevice { 26 : public media::VideoCaptureDevice {
26 public: 27 public:
27 // Creates a VideoCaptureDevice for the Aura desktop. 28 // Creates a VideoCaptureDevice for the Aura desktop.
28 static media::VideoCaptureDevice* Create(const DesktopMediaID& source); 29 static media::VideoCaptureDevice* Create(const DesktopMediaID& source);
29 30
30 ~DesktopCaptureDeviceAura() override; 31 ~DesktopCaptureDeviceAura() override;
31 32
32 // VideoCaptureDevice implementation. 33 // VideoCaptureDevice implementation.
33 void AllocateAndStart(const media::VideoCaptureParams& params, 34 void AllocateAndStart(const media::VideoCaptureParams& params,
34 scoped_ptr<Client> client) override; 35 scoped_ptr<Client> client) override;
35 void StopAndDeAllocate() override; 36 void StopAndDeAllocate() override;
36 37
37 private: 38 private:
38 DesktopCaptureDeviceAura(const DesktopMediaID& source); 39 DesktopCaptureDeviceAura();
39 40
41 // machine_ is owned by core_.
42 AuraWindowCaptureMachine* machine_;
Sergey Ulanov 2015/03/04 18:48:59 I don't think you need this.
robert.bradford 2015/03/04 21:05:10 Done.
40 const scoped_ptr<class ContentVideoCaptureDeviceCore> core_; 43 const scoped_ptr<class ContentVideoCaptureDeviceCore> core_;
41 44
42 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureDeviceAura); 45 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureDeviceAura);
43 }; 46 };
44 47
45 48
46 } // namespace content 49 } // namespace content
47 50
48 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_AURA_H_ 51 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698