| 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 <queue> | 8 #include <queue> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 const content::MediaStreamDevices& devices) OVERRIDE; | 108 const content::MediaStreamDevices& devices) OVERRIDE; |
| 109 virtual void OnMediaRequestStateChanged( | 109 virtual void OnMediaRequestStateChanged( |
| 110 int render_process_id, | 110 int render_process_id, |
| 111 int render_view_id, | 111 int render_view_id, |
| 112 const content::MediaStreamDevice& device, | 112 const content::MediaStreamDevice& device, |
| 113 content::MediaRequestState state) OVERRIDE; | 113 content::MediaRequestState state) OVERRIDE; |
| 114 virtual void OnAudioStreamPlayingChanged( | 114 virtual void OnAudioStreamPlayingChanged( |
| 115 int render_process_id, | 115 int render_process_id, |
| 116 int render_view_id, | 116 int render_view_id, |
| 117 int stream_id, | 117 int stream_id, |
| 118 bool is_playing_and_audible) OVERRIDE; | 118 bool is_playing, |
| 119 float power_dBFS, |
| 120 bool clipped) OVERRIDE; |
| 119 | 121 |
| 120 scoped_refptr<MediaStreamCaptureIndicator> GetMediaStreamCaptureIndicator(); | 122 scoped_refptr<MediaStreamCaptureIndicator> GetMediaStreamCaptureIndicator(); |
| 121 | 123 |
| 122 scoped_refptr<AudioStreamIndicator> GetAudioStreamIndicator(); | 124 scoped_refptr<AudioStreamIndicator> GetAudioStreamIndicator(); |
| 123 | 125 |
| 124 private: | 126 private: |
| 125 friend struct DefaultSingletonTraits<MediaCaptureDevicesDispatcher>; | 127 friend struct DefaultSingletonTraits<MediaCaptureDevicesDispatcher>; |
| 126 | 128 |
| 127 struct PendingAccessRequest { | 129 struct PendingAccessRequest { |
| 128 PendingAccessRequest(const content::MediaStreamRequest& request, | 130 PendingAccessRequest(const content::MediaStreamRequest& request, |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 scoped_refptr<MediaStreamCaptureIndicator> media_stream_capture_indicator_; | 193 scoped_refptr<MediaStreamCaptureIndicator> media_stream_capture_indicator_; |
| 192 | 194 |
| 193 scoped_refptr<AudioStreamIndicator> audio_stream_indicator_; | 195 scoped_refptr<AudioStreamIndicator> audio_stream_indicator_; |
| 194 | 196 |
| 195 content::NotificationRegistrar notifications_registrar_; | 197 content::NotificationRegistrar notifications_registrar_; |
| 196 | 198 |
| 197 DISALLOW_COPY_AND_ASSIGN(MediaCaptureDevicesDispatcher); | 199 DISALLOW_COPY_AND_ASSIGN(MediaCaptureDevicesDispatcher); |
| 198 }; | 200 }; |
| 199 | 201 |
| 200 #endif // CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ | 202 #endif // CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ |
| OLD | NEW |