OLD | NEW |
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_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_ |
6 #define CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_ | 6 #define CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 enum MediaStreamRequestResult { | 68 enum MediaStreamRequestResult { |
69 MEDIA_DEVICE_OK = 0, | 69 MEDIA_DEVICE_OK = 0, |
70 MEDIA_DEVICE_PERMISSION_DENIED, | 70 MEDIA_DEVICE_PERMISSION_DENIED, |
71 MEDIA_DEVICE_PERMISSION_DISMISSED, | 71 MEDIA_DEVICE_PERMISSION_DISMISSED, |
72 MEDIA_DEVICE_INVALID_STATE, | 72 MEDIA_DEVICE_INVALID_STATE, |
73 MEDIA_DEVICE_NO_HARDWARE, | 73 MEDIA_DEVICE_NO_HARDWARE, |
74 MEDIA_DEVICE_INVALID_SECURITY_ORIGIN, | 74 MEDIA_DEVICE_INVALID_SECURITY_ORIGIN, |
75 MEDIA_DEVICE_TAB_CAPTURE_FAILURE, | 75 MEDIA_DEVICE_TAB_CAPTURE_FAILURE, |
76 MEDIA_DEVICE_SCREEN_CAPTURE_FAILURE, | 76 MEDIA_DEVICE_SCREEN_CAPTURE_FAILURE, |
77 MEDIA_DEVICE_CAPTURE_FAILURE, | 77 MEDIA_DEVICE_CAPTURE_FAILURE, |
| 78 MEDIA_DEVICE_CONSTRAINT_NOT_SATISFIED, |
78 MEDIA_DEVICE_TRACK_START_FAILURE, | 79 MEDIA_DEVICE_TRACK_START_FAILURE, |
79 | 80 |
80 NUM_MEDIA_REQUEST_RESULTS | 81 NUM_MEDIA_REQUEST_RESULTS |
81 }; | 82 }; |
82 | 83 |
83 // Convenience predicates to determine whether the given type represents some | 84 // Convenience predicates to determine whether the given type represents some |
84 // audio or some video device. | 85 // audio or some video device. |
85 CONTENT_EXPORT bool IsAudioInputMediaType(MediaStreamType type); | 86 CONTENT_EXPORT bool IsAudioInputMediaType(MediaStreamType type); |
86 CONTENT_EXPORT bool IsVideoMediaType(MediaStreamType type); | 87 CONTENT_EXPORT bool IsVideoMediaType(MediaStreamType type); |
87 | 88 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 | 260 |
260 // Callback used return results of media access requests. | 261 // Callback used return results of media access requests. |
261 typedef base::Callback<void( | 262 typedef base::Callback<void( |
262 const MediaStreamDevices& devices, | 263 const MediaStreamDevices& devices, |
263 content::MediaStreamRequestResult result, | 264 content::MediaStreamRequestResult result, |
264 scoped_ptr<MediaStreamUI> ui)> MediaResponseCallback; | 265 scoped_ptr<MediaStreamUI> ui)> MediaResponseCallback; |
265 | 266 |
266 } // namespace content | 267 } // namespace content |
267 | 268 |
268 #endif // CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_ | 269 #endif // CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_ |
OLD | NEW |