OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_REQUESTER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_REQUESTER_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_REQUESTER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_REQUESTER_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 // AudioDeviceFailed is called if an already opened audio device encounters | 26 // AudioDeviceFailed is called if an already opened audio device encounters |
27 // an error. | 27 // an error. |
28 virtual void AudioDeviceFailed(const std::string& label, int index) = 0; | 28 virtual void AudioDeviceFailed(const std::string& label, int index) = 0; |
29 // VideoDeviceFailed is called if an already opened video device encounters | 29 // VideoDeviceFailed is called if an already opened video device encounters |
30 // an error. | 30 // an error. |
31 virtual void VideoDeviceFailed(const std::string& label, int index) = 0; | 31 virtual void VideoDeviceFailed(const std::string& label, int index) = 0; |
32 | 32 |
33 // Called as a reply of a successful call to EnumerateDevices. | 33 // Called as a reply of a successful call to EnumerateDevices. |
34 virtual void DevicesEnumerated(const std::string& label, | 34 virtual void DevicesEnumerated(const std::string& label, |
35 const StreamDeviceInfoArray& devices) = 0; | 35 const StreamDeviceInfoArray& devices) = 0; |
36 // Called if EnumerateDevices failed. | |
37 virtual void DevicesEnumerationFailed(const std::string& label) = 0; | |
Ami GONE FROM CHROMIUM
2012/08/06 01:00:58
wjia: is the fact that this method and the next ar
| |
38 // Called as a reply of a successful call to OpenDevice. | 36 // Called as a reply of a successful call to OpenDevice. |
39 virtual void DeviceOpened(const std::string& label, | 37 virtual void DeviceOpened(const std::string& label, |
40 const StreamDeviceInfo& device_info) = 0; | 38 const StreamDeviceInfo& device_info) = 0; |
41 // Called if OpenDevice failed. | |
42 virtual void DeviceOpenFailed(const std::string& label) = 0; | |
43 | 39 |
44 protected: | 40 protected: |
45 virtual ~MediaStreamRequester() { | 41 virtual ~MediaStreamRequester() { |
46 } | 42 } |
47 }; | 43 }; |
48 | 44 |
49 } // namespace media_stream | 45 } // namespace media_stream |
50 | 46 |
51 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_REQUESTER_H_ | 47 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_REQUESTER_H_ |
OLD | NEW |