OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/browser/renderer_host/media/media_devices_manager.h" | 5 #include "content/browser/renderer_host/media/media_devices_manager.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 | 513 |
514 media_stream_manager_->NotifyDevicesChanged(type, new_snapshot); | 514 media_stream_manager_->NotifyDevicesChanged(type, new_snapshot); |
515 } | 515 } |
516 | 516 |
517 void MediaDevicesManager::NotifyDeviceChangeSubscribers( | 517 void MediaDevicesManager::NotifyDeviceChangeSubscribers( |
518 MediaDeviceType type, | 518 MediaDeviceType type, |
519 const MediaDeviceInfoArray& snapshot) { | 519 const MediaDeviceInfoArray& snapshot) { |
520 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 520 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
521 DCHECK(IsValidMediaDeviceType(type)); | 521 DCHECK(IsValidMediaDeviceType(type)); |
522 | 522 |
523 for (const auto& subscriber : device_change_subscribers_[type]) { | 523 for (auto* subscriber : device_change_subscribers_[type]) { |
524 subscriber->OnDevicesChanged(type, snapshot); | 524 subscriber->OnDevicesChanged(type, snapshot); |
525 } | 525 } |
526 } | 526 } |
527 | 527 |
528 } // namespace content | 528 } // namespace content |
OLD | NEW |