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

Side by Side Diff: content/browser/renderer_host/media/desktop_capture_device.h

Issue 24079003: Add VideoCaptureDevice::GetDeviceSupportedFormats to interface + implementation for Linux and Fake (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_RENDERER_HOST_MEDIA_DESKTOP_CAPTURE_DEVICE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_DESKTOP_CAPTURE_DEVICE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_DESKTOP_CAPTURE_DEVICE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_DESKTOP_CAPTURE_DEVICE_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 26 matching lines...) Expand all
37 scoped_ptr<webrtc::DesktopCapturer> desktop_capturer); 37 scoped_ptr<webrtc::DesktopCapturer> desktop_capturer);
38 virtual ~DesktopCaptureDevice(); 38 virtual ~DesktopCaptureDevice();
39 39
40 // VideoCaptureDevice interface. 40 // VideoCaptureDevice interface.
41 virtual void Allocate(const media::VideoCaptureCapability& capture_format, 41 virtual void Allocate(const media::VideoCaptureCapability& capture_format,
42 EventHandler* observer) OVERRIDE; 42 EventHandler* observer) OVERRIDE;
43 virtual void Start() OVERRIDE; 43 virtual void Start() OVERRIDE;
44 virtual void Stop() OVERRIDE; 44 virtual void Stop() OVERRIDE;
45 virtual void DeAllocate() OVERRIDE; 45 virtual void DeAllocate() OVERRIDE;
46 virtual const Name& device_name() OVERRIDE; 46 virtual const Name& device_name() OVERRIDE;
47 virtual void GetDeviceSupportedFormats(
48 const std::string& device_name,
49 media::VideoCaptureFormats* capture_formats) OVERRIDE;
47 50
48 private: 51 private:
49 class Core; 52 class Core;
50 scoped_refptr<Core> core_; 53 scoped_refptr<Core> core_;
51 Name name_; 54 Name name_;
52 55
53 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureDevice); 56 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureDevice);
54 }; 57 };
55 58
56 } // namespace content 59 } // namespace content
57 60
58 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_DESKTOP_CAPTURE_DEVICE_H_ 61 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_DESKTOP_CAPTURE_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698