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

Side by Side Diff: content/renderer/media/media_stream_dispatcher.cc

Issue 1907973003: media: Move audio_parameters and audio_point to media/base/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 months 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/media_stream_dispatcher.h" 5 #include "content/renderer/media/media_stream_dispatcher.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "content/common/media/media_stream_messages.h" 10 #include "content/common/media/media_stream_messages.h"
11 #include "content/renderer/media/media_stream_dispatcher_eventhandler.h" 11 #include "content/renderer/media/media_stream_dispatcher_eventhandler.h"
12 #include "content/renderer/render_thread_impl.h" 12 #include "content/renderer/render_thread_impl.h"
13 #include "media/audio/audio_parameters.h" 13 #include "media/base/audio_parameters.h"
14 #include "third_party/WebKit/public/web/WebUserGestureIndicator.h" 14 #include "third_party/WebKit/public/web/WebUserGestureIndicator.h"
15 #include "url/gurl.h" 15 #include "url/gurl.h"
16 16
17 namespace content { 17 namespace content {
18 18
19 namespace { 19 namespace {
20 20
21 bool RemoveStreamDeviceFromArray(const StreamDeviceInfo device_info, 21 bool RemoveStreamDeviceFromArray(const StreamDeviceInfo device_info,
22 StreamDeviceInfoArray* array) { 22 StreamDeviceInfoArray* array) {
23 for (StreamDeviceInfoArray::iterator device_it = array->begin(); 23 for (StreamDeviceInfoArray::iterator device_it = array->begin();
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 DCHECK(thread_checker_.CalledOnValidThread()); 399 DCHECK(thread_checker_.CalledOnValidThread());
400 LabelStreamMap::iterator it = label_stream_map_.find(label); 400 LabelStreamMap::iterator it = label_stream_map_.find(label);
401 if (it == label_stream_map_.end() || 401 if (it == label_stream_map_.end() ||
402 it->second.video_array.size() <= static_cast<size_t>(index)) { 402 it->second.video_array.size() <= static_cast<size_t>(index)) {
403 return StreamDeviceInfo::kNoId; 403 return StreamDeviceInfo::kNoId;
404 } 404 }
405 return it->second.video_array[index].session_id; 405 return it->second.video_array[index].session_id;
406 } 406 }
407 407
408 } // namespace content 408 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_audio_track_sink.h ('k') | content/renderer/media/media_stream_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698