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

Side by Side Diff: content/public/common/media_stream_request.h

Issue 391703002: Implement ConstraintNotSatisfiedError for getusermedia (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and change the reviewers list Created 6 years, 4 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_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
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
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_
OLDNEW
« no previous file with comments | « content/browser/media/webrtc_getusermedia_browsertest.cc ('k') | content/renderer/media/media_stream_audio_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698