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 "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 const content::MediaStreamDevices& devices) OVERRIDE; | 98 const content::MediaStreamDevices& devices) OVERRIDE; |
99 virtual void OnMediaRequestStateChanged( | 99 virtual void OnMediaRequestStateChanged( |
100 int render_process_id, | 100 int render_process_id, |
101 int render_view_id, | 101 int render_view_id, |
102 const content::MediaStreamDevice& device, | 102 const content::MediaStreamDevice& device, |
103 content::MediaRequestState state) OVERRIDE; | 103 content::MediaRequestState state) OVERRIDE; |
104 virtual void OnAudioStreamPlayingChanged( | 104 virtual void OnAudioStreamPlayingChanged( |
105 int render_process_id, | 105 int render_process_id, |
106 int render_view_id, | 106 int render_view_id, |
107 int stream_id, | 107 int stream_id, |
108 bool is_playing_and_audible) OVERRIDE; | 108 bool is_playing, |
| 109 float power_in_dbfs) OVERRIDE; |
109 | 110 |
110 scoped_refptr<MediaStreamCaptureIndicator> GetMediaStreamCaptureIndicator(); | 111 scoped_refptr<MediaStreamCaptureIndicator> GetMediaStreamCaptureIndicator(); |
111 | 112 |
112 scoped_refptr<AudioStreamIndicator> GetAudioStreamIndicator(); | 113 scoped_refptr<AudioStreamIndicator> GetAudioStreamIndicator(); |
113 | 114 |
114 private: | 115 private: |
115 friend struct DefaultSingletonTraits<MediaCaptureDevicesDispatcher>; | 116 friend struct DefaultSingletonTraits<MediaCaptureDevicesDispatcher>; |
116 | 117 |
117 MediaCaptureDevicesDispatcher(); | 118 MediaCaptureDevicesDispatcher(); |
118 virtual ~MediaCaptureDevicesDispatcher(); | 119 virtual ~MediaCaptureDevicesDispatcher(); |
(...skipping 30 matching lines...) Expand all Loading... |
149 // Flag to indicate if device enumeration has been done/doing. | 150 // Flag to indicate if device enumeration has been done/doing. |
150 // Only accessed on UI thread. | 151 // Only accessed on UI thread. |
151 bool devices_enumerated_; | 152 bool devices_enumerated_; |
152 | 153 |
153 scoped_refptr<MediaStreamCaptureIndicator> media_stream_capture_indicator_; | 154 scoped_refptr<MediaStreamCaptureIndicator> media_stream_capture_indicator_; |
154 | 155 |
155 scoped_refptr<AudioStreamIndicator> audio_stream_indicator_; | 156 scoped_refptr<AudioStreamIndicator> audio_stream_indicator_; |
156 }; | 157 }; |
157 | 158 |
158 #endif // CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ | 159 #endif // CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ |
OLD | NEW |