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

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

Issue 2487133003: Remove dead code related to media device enumerations and monitoring. (Closed)
Patch Set: rebase Created 4 years, 1 month 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
« 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/location.h" 7 #include "base/location.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/threading/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 const StreamDeviceInfoArray& video_device_array) {} 179 const StreamDeviceInfoArray& video_device_array) {}
180 180
181 void PepperMediaDeviceManager::OnStreamGenerationFailed( 181 void PepperMediaDeviceManager::OnStreamGenerationFailed(
182 int request_id, 182 int request_id,
183 content::MediaStreamRequestResult result) {} 183 content::MediaStreamRequestResult result) {}
184 184
185 void PepperMediaDeviceManager::OnDeviceStopped( 185 void PepperMediaDeviceManager::OnDeviceStopped(
186 const std::string& label, 186 const std::string& label,
187 const StreamDeviceInfo& device_info) {} 187 const StreamDeviceInfo& device_info) {}
188 188
189 void PepperMediaDeviceManager::OnDevicesEnumerated(
190 int request_id,
191 const StreamDeviceInfoArray& device_array) {
192 NOTREACHED();
193 }
194
195 void PepperMediaDeviceManager::OnDeviceOpened( 189 void PepperMediaDeviceManager::OnDeviceOpened(
196 int request_id, 190 int request_id,
197 const std::string& label, 191 const std::string& label,
198 const StreamDeviceInfo& device_info) { 192 const StreamDeviceInfo& device_info) {
199 NotifyDeviceOpened(request_id, true, label); 193 NotifyDeviceOpened(request_id, true, label);
200 } 194 }
201 195
202 void PepperMediaDeviceManager::OnDeviceOpenFailed(int request_id) { 196 void PepperMediaDeviceManager::OnDeviceOpenFailed(int request_id) {
203 NotifyDeviceOpened(request_id, false, std::string()); 197 NotifyDeviceOpened(request_id, false, std::string());
204 } 198 }
205 199
206 void PepperMediaDeviceManager::OnDevicesChanged() {}
207
208 // static 200 // static
209 MediaStreamType PepperMediaDeviceManager::FromPepperDeviceType( 201 MediaStreamType PepperMediaDeviceManager::FromPepperDeviceType(
210 PP_DeviceType_Dev type) { 202 PP_DeviceType_Dev type) {
211 switch (type) { 203 switch (type) {
212 case PP_DEVICETYPE_DEV_INVALID: 204 case PP_DEVICETYPE_DEV_INVALID:
213 return MEDIA_NO_SERVICE; 205 return MEDIA_NO_SERVICE;
214 case PP_DEVICETYPE_DEV_AUDIOCAPTURE: 206 case PP_DEVICETYPE_DEV_AUDIOCAPTURE:
215 return MEDIA_DEVICE_AUDIO_CAPTURE; 207 return MEDIA_DEVICE_AUDIO_CAPTURE;
216 case PP_DEVICETYPE_DEV_VIDEOCAPTURE: 208 case PP_DEVICETYPE_DEV_VIDEOCAPTURE:
217 return MEDIA_DEVICE_VIDEO_CAPTURE; 209 return MEDIA_DEVICE_VIDEO_CAPTURE;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 } 265 }
274 266
275 return media_devices_dispatcher_; 267 return media_devices_dispatcher_;
276 } 268 }
277 269
278 void PepperMediaDeviceManager::OnDestruct() { 270 void PepperMediaDeviceManager::OnDestruct() {
279 delete this; 271 delete this;
280 } 272 }
281 273
282 } // namespace content 274 } // 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