OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_REQUESTER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_REQUESTER_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_REQUESTER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_REQUESTER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 const StreamDeviceInfoArray& video_devices) = 0; | 23 const StreamDeviceInfoArray& video_devices) = 0; |
24 // Called if GenerateStream failed. | 24 // Called if GenerateStream failed. |
25 virtual void StreamGenerationFailed(const std::string& label) = 0; | 25 virtual void StreamGenerationFailed(const std::string& label) = 0; |
26 // AudioDeviceFailed is called if an already opened audio device encounters | 26 // AudioDeviceFailed is called if an already opened audio device encounters |
27 // an error. | 27 // an error. |
28 virtual void AudioDeviceFailed(const std::string& label, int index) = 0; | 28 virtual void AudioDeviceFailed(const std::string& label, int index) = 0; |
29 // VideoDeviceFailed is called if an already opened video device encounters | 29 // VideoDeviceFailed is called if an already opened video device encounters |
30 // an error. | 30 // an error. |
31 virtual void VideoDeviceFailed(const std::string& label, int index) = 0; | 31 virtual void VideoDeviceFailed(const std::string& label, int index) = 0; |
32 | 32 |
| 33 // Called as a reply of a successful call to EnumerateDevices. |
| 34 virtual void DevicesEnumerated(const std::string& label, |
| 35 const StreamDeviceInfoArray& devices) = 0; |
| 36 // Called if EnumerateDevices failed. |
| 37 virtual void DevicesEnumerationFailed(const std::string& label) = 0; |
| 38 // Called as a reply of a successful call to OpenDevice. |
| 39 virtual void DeviceOpened(const std::string& label, |
| 40 const StreamDeviceInfo& device_info) = 0; |
| 41 // Called if OpenDevice failed. |
| 42 virtual void DeviceOpenFailed(const std::string& label) = 0; |
| 43 |
33 protected: | 44 protected: |
34 virtual ~MediaStreamRequester() { | 45 virtual ~MediaStreamRequester() { |
35 } | 46 } |
36 }; | 47 }; |
37 | 48 |
38 } // namespace media_stream | 49 } // namespace media_stream |
39 | 50 |
40 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_REQUESTER_H_ | 51 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_REQUESTER_H_ |
OLD | NEW |