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

Side by Side Diff: content/browser/renderer_host/media/web_contents_video_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: Removed parameter device_name from GetDeviceSupportedFormats. Added explanation to VCD interface. 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE_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"
(...skipping 29 matching lines...) Expand all
40 static media::VideoCaptureDevice* Create(const std::string& device_id); 40 static media::VideoCaptureDevice* Create(const std::string& device_id);
41 41
42 virtual ~WebContentsVideoCaptureDevice(); 42 virtual ~WebContentsVideoCaptureDevice();
43 43
44 // VideoCaptureDevice implementation. 44 // VideoCaptureDevice implementation.
45 virtual void Allocate(const media::VideoCaptureCapability& capture_format, 45 virtual void Allocate(const media::VideoCaptureCapability& capture_format,
46 VideoCaptureDevice::EventHandler* observer) OVERRIDE; 46 VideoCaptureDevice::EventHandler* observer) OVERRIDE;
47 virtual void Start() OVERRIDE; 47 virtual void Start() OVERRIDE;
48 virtual void Stop() OVERRIDE; 48 virtual void Stop() OVERRIDE;
49 virtual void DeAllocate() OVERRIDE; 49 virtual void DeAllocate() OVERRIDE;
50 virtual void GetDeviceSupportedFormats(
51 media::VideoCaptureFormats* capture_formats) OVERRIDE;
50 52
51 // Note: The following is just a pass-through of the device_id provided to the 53 // Note: The following is just a pass-through of the device_id provided to the
52 // constructor. It does not change when the content of the page changes 54 // constructor. It does not change when the content of the page changes
53 // (e.g., due to navigation), or when the underlying RenderView is 55 // (e.g., due to navigation), or when the underlying RenderView is
54 // swapped-out. 56 // swapped-out.
55 virtual const Name& device_name() OVERRIDE; 57 virtual const Name& device_name() OVERRIDE;
56 58
57 private: 59 private:
58 class Impl; 60 class Impl;
59 61
60 WebContentsVideoCaptureDevice(const Name& name, 62 WebContentsVideoCaptureDevice(const Name& name,
61 int render_process_id, 63 int render_process_id,
62 int render_view_id); 64 int render_view_id);
63 65
64 Name device_name_; 66 Name device_name_;
65 const scoped_ptr<Impl> impl_; 67 const scoped_ptr<Impl> impl_;
66 68
67 DISALLOW_COPY_AND_ASSIGN(WebContentsVideoCaptureDevice); 69 DISALLOW_COPY_AND_ASSIGN(WebContentsVideoCaptureDevice);
68 }; 70 };
69 71
70 72
71 } // namespace content 73 } // namespace content
72 74
73 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE _H_ 75 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698