| 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_RENDERER_MEDIA_USER_MEDIA_CLIENT_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_USER_MEDIA_CLIENT_IMPL_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_USER_MEDIA_CLIENT_IMPL_H_ | 6 #define CONTENT_RENDERER_MEDIA_USER_MEDIA_CLIENT_IMPL_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 | 107 |
| 108 virtual void EnumerateDevicesSucceded( | 108 virtual void EnumerateDevicesSucceded( |
| 109 blink::WebMediaDevicesRequest* request, | 109 blink::WebMediaDevicesRequest* request, |
| 110 blink::WebVector<blink::WebMediaDeviceInfo>& devices); | 110 blink::WebVector<blink::WebMediaDeviceInfo>& devices); |
| 111 | 111 |
| 112 // Creates a MediaStreamAudioSource/MediaStreamVideoSource objects. | 112 // Creates a MediaStreamAudioSource/MediaStreamVideoSource objects. |
| 113 // These are virtual for test purposes. | 113 // These are virtual for test purposes. |
| 114 virtual MediaStreamAudioSource* CreateAudioSource( | 114 virtual MediaStreamAudioSource* CreateAudioSource( |
| 115 const StreamDeviceInfo& device, | 115 const StreamDeviceInfo& device, |
| 116 const blink::WebMediaConstraints& constraints, | 116 const blink::WebMediaConstraints& constraints, |
| 117 const MediaStreamSource::ConstraintsCallback& source_ready); | 117 const MediaStreamSource::ConstraintsCallback& source_ready, |
| 118 bool* has_sw_echo_cancellation); |
| 118 virtual MediaStreamVideoSource* CreateVideoSource( | 119 virtual MediaStreamVideoSource* CreateVideoSource( |
| 119 const StreamDeviceInfo& device, | 120 const StreamDeviceInfo& device, |
| 120 const MediaStreamSource::SourceStoppedCallback& stop_callback); | 121 const MediaStreamSource::SourceStoppedCallback& stop_callback); |
| 121 | 122 |
| 122 // Returns no value if there is no request being processed. Use only for | 123 // Returns no value if there is no request being processed. Use only for |
| 123 // testing. | 124 // testing. |
| 124 // TODO(guidou): Remove this function. http://crbug.com/706408 | 125 // TODO(guidou): Remove this function. http://crbug.com/706408 |
| 125 base::Optional<bool> AutomaticOutputDeviceSelectionEnabledForCurrentRequest(); | 126 base::Optional<bool> AutomaticOutputDeviceSelectionEnabledForCurrentRequest(); |
| 126 | 127 |
| 127 // Intended to be used only for testing. | 128 // Intended to be used only for testing. |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 // Note: This member must be the last to ensure all outstanding weak pointers | 292 // Note: This member must be the last to ensure all outstanding weak pointers |
| 292 // are invalidated first. | 293 // are invalidated first. |
| 293 base::WeakPtrFactory<UserMediaClientImpl> weak_factory_; | 294 base::WeakPtrFactory<UserMediaClientImpl> weak_factory_; |
| 294 | 295 |
| 295 DISALLOW_COPY_AND_ASSIGN(UserMediaClientImpl); | 296 DISALLOW_COPY_AND_ASSIGN(UserMediaClientImpl); |
| 296 }; | 297 }; |
| 297 | 298 |
| 298 } // namespace content | 299 } // namespace content |
| 299 | 300 |
| 300 #endif // CONTENT_RENDERER_MEDIA_USER_MEDIA_CLIENT_IMPL_H_ | 301 #endif // CONTENT_RENDERER_MEDIA_USER_MEDIA_CLIENT_IMPL_H_ |
| OLD | NEW |