|
|
Refactor the VideoCaptureDevice::Name struct.
The main purpose of this change is to allow for future changes where platform specific properties can be stored with a device name.
An example of this is when we enumerate capture devices from more than one API (DirectShow vs Media Foundation on Windows) since we have to use different APIs to get access to different capture devices.
Additionally:
* Change Name from being a struct to a class.
* Only allow read-only access to the properties after construction.
* Change the "Names" typedef to a class to make looking a name up by device ID easier.
I'm make it harder to construct a 'Name' without going through the enumeration since the enumeration should be used to get the proper name, ID and other potential properties to go with them.
This change is related to another one that mcasas is working on: https://codereview.chromium.org/17402002/
(I'm TBR-ing fischman although he has already approved this CL. There appears to be a problem with Rietveld)
BUG= 144465
TBR=fischman
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=209662
Total comments: 4
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+166 lines, -111 lines) |
Patch |
 |
M |
content/browser/renderer_host/media/screen_capture_device.cc
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/video_capture_controller_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/video_capture_manager.h
|
View
|
1
2
3
|
2 chunks |
+9 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/video_capture_manager.cc
|
View
|
1
2
3
|
6 chunks |
+44 lines, -38 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/web_contents_video_capture_device.cc
|
View
|
|
1 chunk |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
media/media.gyp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
media/video/capture/android/video_capture_device_android.cc
|
View
|
|
2 chunks |
+7 lines, -8 lines |
0 comments
|
Download
|
 |
M |
media/video/capture/fake_video_capture_device.cc
|
View
|
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
media/video/capture/linux/video_capture_device_linux.cc
|
View
|
|
4 chunks |
+6 lines, -7 lines |
0 comments
|
Download
|
 |
M |
media/video/capture/mac/video_capture_device_mac.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/video/capture/mac/video_capture_device_mac.mm
|
View
|
|
3 chunks |
+14 lines, -18 lines |
0 comments
|
Download
|
 |
M |
media/video/capture/video_capture_device.h
|
View
|
1
2
3
4
|
1 chunk |
+41 lines, -4 lines |
0 comments
|
Download
|
 |
A |
media/video/capture/video_capture_device.cc
|
View
|
1
2
3
4
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/video/capture/video_capture_device_unittest.cc
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
media/video/capture/win/video_capture_device_mf_win.cc
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
media/video/capture/win/video_capture_device_win.cc
|
View
|
|
5 chunks |
+11 lines, -11 lines |
0 comments
|
Download
|
Total messages: 24 (0 generated)
|