OLD | NEW |
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 "chrome/browser/media/media_capture_devices_dispatcher.h" | 5 #include "chrome/browser/media/media_capture_devices_dispatcher.h" |
6 | 6 |
7 #include "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
8 #include "chrome/browser/media/audio_stream_indicator.h" | 8 #include "chrome/browser/media/audio_stream_indicator.h" |
9 #include "chrome/browser/media/media_stream_capture_indicator.h" | 9 #include "chrome/browser/media/media_stream_capture_indicator.h" |
10 #include "chrome/browser/prefs/pref_registry_syncable.h" | |
11 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 10 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
12 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/common/pref_names.h" | 12 #include "chrome/common/pref_names.h" |
| 13 #include "components/user_prefs/pref_registry_syncable.h" |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
15 #include "content/public/browser/media_devices_monitor.h" | 15 #include "content/public/browser/media_devices_monitor.h" |
16 #include "content/public/common/media_stream_request.h" | 16 #include "content/public/common/media_stream_request.h" |
17 | 17 |
18 using content::BrowserThread; | 18 using content::BrowserThread; |
19 using content::MediaStreamDevices; | 19 using content::MediaStreamDevices; |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 const content::MediaStreamDevice* FindDefaultDeviceWithId( | 23 const content::MediaStreamDevice* FindDefaultDeviceWithId( |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 int render_process_id, | 233 int render_process_id, |
234 int render_view_id, | 234 int render_view_id, |
235 const content::MediaStreamDevice& device, | 235 const content::MediaStreamDevice& device, |
236 content::MediaRequestState state) { | 236 content::MediaRequestState state) { |
237 FOR_EACH_OBSERVER(Observer, observers_, | 237 FOR_EACH_OBSERVER(Observer, observers_, |
238 OnRequestUpdate(render_process_id, | 238 OnRequestUpdate(render_process_id, |
239 render_view_id, | 239 render_view_id, |
240 device, | 240 device, |
241 state)); | 241 state)); |
242 } | 242 } |
OLD | NEW |