Lines Matching refs:request_it
85 DeviceRequestList::iterator request_it = requests_.begin();
86 for (; request_it != requests_.end(); ++request_it) {
87 if (label == request_it->audio_devices_label ||
88 label == request_it->video_devices_label) {
92 DCHECK(request_it != requests_.end());
94 StreamDeviceInfoArray* audio_devices = &request_it->audio_devices;
95 StreamDeviceInfoArray* video_devices = &request_it->video_devices;
98 if (label == request_it->audio_devices_label) {
99 request_it->has_audio_returned = true;
101 HmacDeviceIds(request_it->origin, new_devices, audio_devices);
103 DCHECK(label == request_it->video_devices_label);
104 request_it->has_video_returned = true;
106 HmacDeviceIds(request_it->origin, new_devices, video_devices);
109 if (!request_it->has_audio_returned || !request_it->has_video_returned) {
115 if (!resource_context_->AllowMicAccess(request_it->origin))
117 if (!resource_context_->AllowCameraAccess(request_it->origin))
125 Send(new MediaStreamMsg_GetSourcesACK(request_it->request_id, all_devices));
128 media_stream_manager_->StopGeneratedStream(request_it->audio_devices_label);
129 media_stream_manager_->StopGeneratedStream(request_it->video_devices_label);
130 requests_.erase(request_it);