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

Side by Side Diff: content/renderer/media/user_media_client_impl.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
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/media/user_media_client_impl.h" 5 #include "content/renderer/media/user_media_client_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 for (auto& web_track : tracks) { 605 for (auto& web_track : tracks) {
606 MediaStreamTrack* track = MediaStreamTrack::GetTrack(web_track); 606 MediaStreamTrack* track = MediaStreamTrack::GetTrack(web_track);
607 if (track) 607 if (track)
608 track->Stop(); 608 track->Stop();
609 } 609 }
610 } 610 }
611 611
612 DeleteUserMediaRequestInfo(request); 612 DeleteUserMediaRequestInfo(request);
613 } 613 }
614 614
615 // TODO(guidou): Remove once this method is removed from the
616 // MediaStreamDispatcherEventHandler interface. http://648183.
617 void UserMediaClientImpl::OnDevicesEnumerated(
618 int request_id,
619 const StreamDeviceInfoArray& device_array) {
620 NOTREACHED();
621 }
622
623 void UserMediaClientImpl::OnDeviceOpened( 615 void UserMediaClientImpl::OnDeviceOpened(
624 int request_id, 616 int request_id,
625 const std::string& label, 617 const std::string& label,
626 const StreamDeviceInfo& video_device) { 618 const StreamDeviceInfo& video_device) {
627 DVLOG(1) << "UserMediaClientImpl::OnDeviceOpened(" 619 DVLOG(1) << "UserMediaClientImpl::OnDeviceOpened("
628 << request_id << ", " << label << ")"; 620 << request_id << ", " << label << ")";
629 NOTIMPLEMENTED(); 621 NOTIMPLEMENTED();
630 } 622 }
631 623
632 void UserMediaClientImpl::OnDeviceOpenFailed(int request_id) { 624 void UserMediaClientImpl::OnDeviceOpenFailed(int request_id) {
633 DVLOG(1) << "UserMediaClientImpl::VideoDeviceOpenFailed(" 625 DVLOG(1) << "UserMediaClientImpl::VideoDeviceOpenFailed("
634 << request_id << ")"; 626 << request_id << ")";
635 NOTIMPLEMENTED(); 627 NOTIMPLEMENTED();
636 } 628 }
637 629
638 // TODO(guidou): Remove once this method is removed from the
639 // MediaStreamDispatcherEventHandler interface. http://648183.
640 void UserMediaClientImpl::OnDevicesChanged() {
641 NOTREACHED();
642 }
643
644 void UserMediaClientImpl::DevicesChanged( 630 void UserMediaClientImpl::DevicesChanged(
645 MediaDeviceType type, 631 MediaDeviceType type,
646 const MediaDeviceInfoArray& device_infos) { 632 const MediaDeviceInfoArray& device_infos) {
647 if (!media_device_change_observer_.isNull()) 633 if (!media_device_change_observer_.isNull())
648 media_device_change_observer_.didChangeMediaDevices(); 634 media_device_change_observer_.didChangeMediaDevices();
649 } 635 }
650 636
651 void UserMediaClientImpl::GetUserMediaRequestSucceeded( 637 void UserMediaClientImpl::GetUserMediaRequestSucceeded(
652 const blink::WebMediaStream& stream, 638 const blink::WebMediaStream& stream,
653 blink::WebUserMediaRequest request_info) { 639 blink::WebUserMediaRequest request_info) {
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 978
993 bool UserMediaClientImpl::UserMediaRequestInfo::HasPendingSources() const { 979 bool UserMediaClientImpl::UserMediaRequestInfo::HasPendingSources() const {
994 return !sources_waiting_for_callback_.empty(); 980 return !sources_waiting_for_callback_.empty();
995 } 981 }
996 982
997 void UserMediaClientImpl::OnDestruct() { 983 void UserMediaClientImpl::OnDestruct() {
998 delete this; 984 delete this;
999 } 985 }
1000 986
1001 } // namespace content 987 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698