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 #ifndef CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ |
6 #define CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ | 6 #define CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 virtual void OnMediaRequestStateChanged( | 118 virtual void OnMediaRequestStateChanged( |
119 int render_process_id, | 119 int render_process_id, |
120 int render_view_id, | 120 int render_view_id, |
121 int page_request_id, | 121 int page_request_id, |
122 const content::MediaStreamDevice& device, | 122 const content::MediaStreamDevice& device, |
123 content::MediaRequestState state) OVERRIDE; | 123 content::MediaRequestState state) OVERRIDE; |
124 virtual void OnAudioStreamPlayingChanged( | 124 virtual void OnAudioStreamPlayingChanged( |
125 int render_process_id, | 125 int render_process_id, |
126 int render_view_id, | 126 int render_view_id, |
127 int stream_id, | 127 int stream_id, |
128 bool is_playing_and_audible) OVERRIDE; | 128 bool is_playing, |
| 129 float power_dBFS, |
| 130 bool clipped) OVERRIDE; |
129 virtual void OnCreatingAudioStream(int render_process_id, | 131 virtual void OnCreatingAudioStream(int render_process_id, |
130 int render_view_id) OVERRIDE; | 132 int render_view_id) OVERRIDE; |
131 | 133 |
132 scoped_refptr<MediaStreamCaptureIndicator> GetMediaStreamCaptureIndicator(); | 134 scoped_refptr<MediaStreamCaptureIndicator> GetMediaStreamCaptureIndicator(); |
133 | 135 |
134 scoped_refptr<AudioStreamIndicator> GetAudioStreamIndicator(); | 136 scoped_refptr<AudioStreamIndicator> GetAudioStreamIndicator(); |
135 | 137 |
136 private: | 138 private: |
137 friend struct DefaultSingletonTraits<MediaCaptureDevicesDispatcher>; | 139 friend struct DefaultSingletonTraits<MediaCaptureDevicesDispatcher>; |
138 | 140 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 scoped_refptr<MediaStreamCaptureIndicator> media_stream_capture_indicator_; | 210 scoped_refptr<MediaStreamCaptureIndicator> media_stream_capture_indicator_; |
209 | 211 |
210 scoped_refptr<AudioStreamIndicator> audio_stream_indicator_; | 212 scoped_refptr<AudioStreamIndicator> audio_stream_indicator_; |
211 | 213 |
212 content::NotificationRegistrar notifications_registrar_; | 214 content::NotificationRegistrar notifications_registrar_; |
213 | 215 |
214 DISALLOW_COPY_AND_ASSIGN(MediaCaptureDevicesDispatcher); | 216 DISALLOW_COPY_AND_ASSIGN(MediaCaptureDevicesDispatcher); |
215 }; | 217 }; |
216 | 218 |
217 #endif // CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ | 219 #endif // CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ |
OLD | NEW |