| 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_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_EVENTHANDLER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_EVENTHANDLER_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_EVENTHANDLER_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_EVENTHANDLER_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 15 matching lines...) Expand all Loading... |
| 26 // An error have occurred on a video device. This is called if a runtime | 26 // An error have occurred on a video device. This is called if a runtime |
| 27 // error occurs. | 27 // error occurs. |
| 28 virtual void OnVideoDeviceFailed(const std::string& label, | 28 virtual void OnVideoDeviceFailed(const std::string& label, |
| 29 int index) = 0; | 29 int index) = 0; |
| 30 | 30 |
| 31 // An error have occurred on an audio device. This is called if a runtime | 31 // An error have occurred on an audio device. This is called if a runtime |
| 32 // error occurs. | 32 // error occurs. |
| 33 virtual void OnAudioDeviceFailed(const std::string& label, | 33 virtual void OnAudioDeviceFailed(const std::string& label, |
| 34 int index) = 0; | 34 int index) = 0; |
| 35 | 35 |
| 36 // A new list of devices have been enumerated. |
| 37 virtual void OnDevicesEnumerated( |
| 38 int request_id, |
| 39 const media_stream::StreamDeviceInfoArray& device_array) = 0; |
| 40 |
| 41 // Failed to enumerate devices. |
| 42 virtual void OnDevicesEnumerationFailed(int request_id) = 0; |
| 43 |
| 44 // A device has been opened. |
| 45 virtual void OnDeviceOpened( |
| 46 int request_id, |
| 47 const std::string& label, |
| 48 const media_stream::StreamDeviceInfo& device_info) = 0; |
| 49 |
| 50 // Failed to open the device. |
| 51 virtual void OnDeviceOpenFailed(int request_id) = 0; |
| 52 |
| 36 protected: | 53 protected: |
| 37 virtual ~MediaStreamDispatcherEventHandler(); | 54 virtual ~MediaStreamDispatcherEventHandler(); |
| 38 }; | 55 }; |
| 39 | 56 |
| 40 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_EVENTHANDLER_H_ | 57 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_EVENTHANDLER_H_ |
| OLD | NEW |