| Index: content/renderer/media/media_stream_dispatcher_eventhandler.h
|
| ===================================================================
|
| --- content/renderer/media/media_stream_dispatcher_eventhandler.h (revision 0)
|
| +++ content/renderer/media/media_stream_dispatcher_eventhandler.h (revision 0)
|
| @@ -0,0 +1,39 @@
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_EVENTHANDLER_H_
|
| +#define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_EVENTHANDLER_H_
|
| +
|
| +#include <string>
|
| +
|
| +#include "content/common/media/media_stream_options.h"
|
| +
|
| +class MediaStreamDispatcherEventHandler {
|
| + public:
|
| + // A new media stream have been created.
|
| + virtual void OnStreamGenerated(
|
| + int request_id,
|
| + const std::string& label,
|
| + const media_stream::StreamDeviceInfoArray& audio_device_array,
|
| + const media_stream::StreamDeviceInfoArray& video_device_array) = 0;
|
| +
|
| + // Creation of a new media stream failed. The user might have denied access
|
| + // to the requested devices or no device is available.
|
| + virtual void OnStreamGenerationFailed(int request_id) = 0;
|
| +
|
| + // An error have occurred on a video device. This is called if a runtime
|
| + // error occurs.
|
| + virtual void OnVideoDeviceFailed(const std::string& label,
|
| + int index) = 0;
|
| +
|
| + // An error have occurred on an audio device. This is called if a runtime
|
| + // error occurs.
|
| + virtual void OnAudioDeviceFailed(const std::string& label,
|
| + int index) = 0;
|
| +
|
| + protected:
|
| + virtual ~MediaStreamDispatcherEventHandler();
|
| +};
|
| +
|
| +#endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_EVENTHANDLER_H_
|
|
|