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/common/media_stream_request.h" | 8 #include "content/public/common/media_stream_request.h" |
9 | 9 |
10 namespace media { | 10 namespace media { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 int render_process_id, | 42 int render_process_id, |
43 int render_view_id, | 43 int render_view_id, |
44 const content::MediaStreamDevices& devices) = 0; | 44 const content::MediaStreamDevices& devices) = 0; |
45 | 45 |
46 // Called when the opened capture devices are closed. | 46 // Called when the opened capture devices are closed. |
47 virtual void OnCaptureDevicesClosed( | 47 virtual void OnCaptureDevicesClosed( |
48 int render_process_id, | 48 int render_process_id, |
49 int render_view_id, | 49 int render_view_id, |
50 const content::MediaStreamDevices& devices) = 0; | 50 const content::MediaStreamDevices& devices) = 0; |
51 | 51 |
| 52 // Called when a media request changes state. |
| 53 virtual void OnMediaRequestStateChange( |
| 54 int render_process_id, |
| 55 int render_view_id, |
| 56 const content::MediaStreamDevice& device, |
| 57 const content::MediaStreamRequest::RequestState state) = 0; |
| 58 |
52 protected: | 59 protected: |
53 virtual ~MediaObserver() {} | 60 virtual ~MediaObserver() {} |
54 }; | 61 }; |
55 | 62 |
56 } // namespace content | 63 } // namespace content |
57 | 64 |
58 #endif // CONTENT_PUBLIC_BROWSER_MEDIA_OBSERVER_H_ | 65 #endif // CONTENT_PUBLIC_BROWSER_MEDIA_OBSERVER_H_ |
OLD | NEW |