OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_stream_device_settings.h" | 5 #include "content/browser/renderer_host/media/media_stream_device_settings.h" |
6 | 6 |
7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
8 #include "base/task.h" | 8 #include "base/task.h" |
9 #include "content/browser/browser_thread.h" | |
10 #include "content/browser/renderer_host/media/media_stream_settings_requester.h" | 9 #include "content/browser/renderer_host/media/media_stream_settings_requester.h" |
11 #include "content/common/media/media_stream_options.h" | 10 #include "content/common/media/media_stream_options.h" |
| 11 #include "content/public/browser/browser_thread.h" |
12 | 12 |
13 namespace media_stream { | 13 namespace media_stream { |
14 | 14 |
15 typedef std::map<MediaStreamType, StreamDeviceInfoArray> DeviceMap; | 15 typedef std::map<MediaStreamType, StreamDeviceInfoArray> DeviceMap; |
16 | 16 |
17 // Device request contains all data needed to keep track of requests between the | 17 // Device request contains all data needed to keep track of requests between the |
18 // different calls. | 18 // different calls. |
19 struct MediaStreamDeviceSettings::SettingsRequest { | 19 struct MediaStreamDeviceSettings::SettingsRequest { |
20 SettingsRequest(int render_pid, int render_vid, const std::string& origin, | 20 SettingsRequest(int render_pid, int render_vid, const std::string& origin, |
21 StreamOptions request_options) | 21 StreamOptions request_options) |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 } | 129 } |
130 } | 130 } |
131 } | 131 } |
132 | 132 |
133 void MediaStreamDeviceSettings::UseFakeUI() { | 133 void MediaStreamDeviceSettings::UseFakeUI() { |
134 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 134 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
135 use_fake_ui_ = true; | 135 use_fake_ui_ = true; |
136 } | 136 } |
137 | 137 |
138 } // namespace media_stream | 138 } // namespace media_stream |
OLD | NEW |