Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(477)

Unified Diff: content/renderer/media/media_stream_dispatcher_eventhandler.h

Issue 7184010: MediaStreamDispatcher (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « content/renderer/media/media_stream_dispatcher.cc ('k') | content/renderer/media/media_stream_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698