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

Side by Side Diff: content/browser/renderer_host/media/media_stream_requester.h

Issue 7284037: Adding MediaStreamManager. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Added DeviceRequest dtor, needed for clang. Created 9 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_REQUESTER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_REQUESTER_H_
7
8 #include <string>
9
10 #include "content/common/media/media_stream_options.h"
11
12 namespace media_stream {
13
14 // MediaStreamRequester must be implemented by the class requesting a new media
15 // stream to be opened. MediaStreamManager will use this interface to signal
16 // success and error for a request.
17 class MediaStreamRequester {
18 public:
19 // Called as a reply of a successful call to GenerateStream.
20 virtual void StreamGenerated(const std::string& label,
21 const StreamDeviceInfoArray& audio_devices,
22 const StreamDeviceInfoArray& video_devices) = 0;
23 // Called if GenerateStream failed.
24 virtual void StreamGenerationFailed(const std::string& label) = 0;
25 // AudioDeviceFailed is called if an already opened audio device encounters
26 // an error.
27 virtual void AudioDeviceFailed(const std::string& label, int index) = 0;
28 // VideoDeviceFailed is called if an already opened video device encounters
29 // an error.
30 virtual void VideoDeviceFailed(const std::string& label, int index) = 0;
31
32 protected:
33 virtual ~MediaStreamRequester() {
34 }
35 };
36
37 } // namespace media_stream
38
39 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_REQUESTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698