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 #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 Loading... |
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 Loading... |
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 |
OLD | NEW |