#ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_EVENTHANDLER_H_
#define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_EVENTHANDLER_H_
#include <string>
#include "content/common/content_export.h"
#include "content/common/media/media_stream_options.h"
namespace content {
class CONTENT_EXPORT MediaStreamDispatcherEventHandler {
public:
virtual void OnStreamGenerated(
int request_id,
const std::string& label,
const StreamDeviceInfoArray& audio_device_array,
const StreamDeviceInfoArray& video_device_array) = 0;
virtual void OnStreamGenerationFailed(
int request_id,
content::MediaStreamRequestResult result) = 0;
virtual void OnDeviceStopped(
const std::string& label,
const StreamDeviceInfo& device_info) = 0;
virtual void OnDevicesEnumerated(
int request_id,
const StreamDeviceInfoArray& device_array) = 0;
virtual void OnDeviceOpened(
int request_id,
const std::string& label,
const StreamDeviceInfo& device_info) = 0;
virtual void OnDeviceOpenFailed(int request_id) = 0;
protected:
virtual ~MediaStreamDispatcherEventHandler() {}
};
}
#endif