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 CONTENT_PUBLIC_BROWSER_MEDIA_OBSERVER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_MEDIA_OBSERVER_H_ |
6 #define CONTENT_PUBLIC_BROWSER_MEDIA_OBSERVER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_MEDIA_OBSERVER_H_ |
7 | 7 |
8 #include "content/public/browser/media_request_state.h" | 8 #include "content/public/browser/media_request_state.h" |
9 #include "content/public/common/media_stream_request.h" | 9 #include "content/public/common/media_stream_request.h" |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 virtual void OnVideoCaptureDevicesChanged( | 34 virtual void OnVideoCaptureDevicesChanged( |
35 const MediaStreamDevices& devices) = 0; | 35 const MediaStreamDevices& devices) = 0; |
36 | 36 |
37 // Called when a media request changes state. | 37 // Called when a media request changes state. |
38 virtual void OnMediaRequestStateChanged( | 38 virtual void OnMediaRequestStateChanged( |
39 int render_process_id, | 39 int render_process_id, |
40 int render_view_id, | 40 int render_view_id, |
41 const MediaStreamDevice& device, | 41 const MediaStreamDevice& device, |
42 MediaRequestState state) = 0; | 42 MediaRequestState state) = 0; |
43 | 43 |
| 44 // Called when an audio stream is played or paused. |
| 45 virtual void OnAudioStreamPlayingChanged( |
| 46 int render_process_id, |
| 47 int render_view_id, |
| 48 int stream_id, |
| 49 bool playing) = 0; |
| 50 |
44 protected: | 51 protected: |
45 virtual ~MediaObserver() {} | 52 virtual ~MediaObserver() {} |
46 }; | 53 }; |
47 | 54 |
48 } // namespace content | 55 } // namespace content |
49 | 56 |
50 #endif // CONTENT_PUBLIC_BROWSER_MEDIA_OBSERVER_H_ | 57 #endif // CONTENT_PUBLIC_BROWSER_MEDIA_OBSERVER_H_ |
OLD | NEW |