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

Side by Side Diff: content/renderer/pepper/pepper_media_device_manager.cc

Issue 180633008: Add different error codes for getUserMedia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comments Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/pepper/pepper_media_device_manager.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/renderer/pepper/pepper_media_device_manager.h" 5 #include "content/renderer/pepper/pepper_media_device_manager.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/renderer/media/media_stream_dispatcher.h" 8 #include "content/renderer/media/media_stream_dispatcher.h"
9 #include "content/renderer/render_view_impl.h" 9 #include "content/renderer/render_view_impl.h"
10 #include "ppapi/shared_impl/ppb_device_ref_shared.h" 10 #include "ppapi/shared_impl/ppb_device_ref_shared.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 #endif 144 #endif
145 } 145 }
146 146
147 void PepperMediaDeviceManager::OnStreamGenerated( 147 void PepperMediaDeviceManager::OnStreamGenerated(
148 int request_id, 148 int request_id,
149 const std::string& label, 149 const std::string& label,
150 const StreamDeviceInfoArray& audio_device_array, 150 const StreamDeviceInfoArray& audio_device_array,
151 const StreamDeviceInfoArray& video_device_array) { 151 const StreamDeviceInfoArray& video_device_array) {
152 } 152 }
153 153
154 void PepperMediaDeviceManager::OnStreamGenerationFailed(int request_id) { 154 void PepperMediaDeviceManager::OnStreamGenerationFailed(
155 int request_id,
156 content::MediaStreamRequestResult result) {
155 } 157 }
156 158
157 void PepperMediaDeviceManager::OnDeviceStopped( 159 void PepperMediaDeviceManager::OnDeviceStopped(
158 const std::string& label, 160 const std::string& label,
159 const StreamDeviceInfo& device_info) { 161 const StreamDeviceInfo& device_info) {
160 } 162 }
161 163
162 void PepperMediaDeviceManager::OnDevicesEnumerated( 164 void PepperMediaDeviceManager::OnDevicesEnumerated(
163 int request_id, 165 int request_id,
164 const StreamDeviceInfoArray& device_array) { 166 const StreamDeviceInfoArray& device_array) {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 open_callbacks_.erase(iter); 239 open_callbacks_.erase(iter);
238 240
239 callback.Run(request_id, succeeded, label); 241 callback.Run(request_id, succeeded, label);
240 } 242 }
241 243
242 RenderViewImpl* PepperMediaDeviceManager::GetRenderViewImpl() { 244 RenderViewImpl* PepperMediaDeviceManager::GetRenderViewImpl() {
243 return static_cast<RenderViewImpl*>(render_view()); 245 return static_cast<RenderViewImpl*>(render_view());
244 } 246 }
245 247
246 } // namespace content 248 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_media_device_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698