OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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_SETTINGS_REQUESTER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_SETTINGS_REQUESTER_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_SETTINGS_REQUESTER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_SETTINGS_REQUESTER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/task.h" | 10 #include "base/task.h" |
wjia(left Chromium)
2011/07/06 02:58:42
is this header file needed?
mflodman1
2011/07/06 11:31:45
It was needd since DISABLE_RUNNABLE_METHOD_REFCOUN
| |
11 #include "content/common/media/media_stream_options.h" | 11 #include "content/common/media/media_stream_options.h" |
12 | 12 |
13 namespace media_stream { | 13 namespace media_stream { |
14 | 14 |
15 // Implemented by the class requesting media capture device usage. | 15 // Implemented by the class requesting media capture device usage. |
16 class SettingsRequester { | 16 class SettingsRequester { |
17 public: | 17 public: |
18 // Called to get available devices for a certain media type. A call to | 18 // Called to get available devices for a certain media type. A call to |
19 // |AvailableDevices| with the currently available capture devices is | 19 // |AvailableDevices| with the currently available capture devices is |
20 // expected. | 20 // expected. |
21 virtual void GetDevices(const std::string& label, | 21 virtual void GetDevices(const std::string& label, |
22 MediaStreamType stream_type) = 0; | 22 MediaStreamType stream_type) = 0; |
23 | 23 |
24 // If no error occurred, this call will deliver the result and the request | 24 // If no error occurred, this call will deliver the result and the request |
25 // is considered answered. | 25 // is considered answered. |
26 virtual void DevicesAccepted(const std::string& label, | 26 virtual void DevicesAccepted(const std::string& label, |
27 const StreamDeviceInfoArray& devices) = 0; | 27 const StreamDeviceInfoArray& devices) = 0; |
28 | 28 |
29 // An error for specified |request_id| has occurred. | 29 // An error for specified |request_id| has occurred. |
30 virtual void Error(const std::string& label) = 0; | 30 virtual void SettingsError(const std::string& label) = 0; |
31 | 31 |
32 protected: | 32 protected: |
33 virtual ~SettingsRequester() {} | 33 virtual ~SettingsRequester() {} |
34 }; | 34 }; |
35 | 35 |
36 } // namespace media_stream | 36 } // namespace media_stream |
37 | 37 |
38 DISABLE_RUNNABLE_METHOD_REFCOUNT(media_stream::SettingsRequester); | 38 DISABLE_RUNNABLE_METHOD_REFCOUNT(media_stream::SettingsRequester); |
39 | 39 |
40 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_SETTINGS_REQUESTER_H _ | 40 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_SETTINGS_REQUESTER_H _ |
OLD | NEW |