| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 UserMediaRequestInfo* request); | 222 UserMediaRequestInfo* request); |
| 223 | 223 |
| 224 void CreateAudioTracks( | 224 void CreateAudioTracks( |
| 225 const StreamDeviceInfoArray& devices, | 225 const StreamDeviceInfoArray& devices, |
| 226 const blink::WebMediaConstraints& constraints, | 226 const blink::WebMediaConstraints& constraints, |
| 227 blink::WebVector<blink::WebMediaStreamTrack>* webkit_tracks, | 227 blink::WebVector<blink::WebMediaStreamTrack>* webkit_tracks, |
| 228 UserMediaRequestInfo* request); | 228 UserMediaRequestInfo* request); |
| 229 | 229 |
| 230 // Callback function triggered when all native versions of the | 230 // Callback function triggered when all native versions of the |
| 231 // underlying media sources and tracks have been created and started. | 231 // underlying media sources and tracks have been created and started. |
| 232 void OnCreateNativeTracksCompleted( | 232 void OnCreateNativeTracksCompleted(const std::string& label, |
| 233 UserMediaRequestInfo* request, | 233 UserMediaRequestInfo* request, |
| 234 MediaStreamRequestResult result, | 234 MediaStreamRequestResult result, |
| 235 const blink::WebString& result_name); | 235 const blink::WebString& result_name); |
| 236 | 236 |
| 237 void OnStreamGeneratedForCancelledRequest( | 237 void OnStreamGeneratedForCancelledRequest( |
| 238 const StreamDeviceInfoArray& audio_array, | 238 const StreamDeviceInfoArray& audio_array, |
| 239 const StreamDeviceInfoArray& video_array); | 239 const StreamDeviceInfoArray& video_array); |
| 240 | 240 |
| 241 static void OnAudioSourceStartedOnAudioThread( | 241 static void OnAudioSourceStartedOnAudioThread( |
| 242 scoped_refptr<base::SingleThreadTaskRunner> task_runner, | 242 scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
| 243 base::WeakPtr<UserMediaClientImpl> weak_ptr, | 243 base::WeakPtr<UserMediaClientImpl> weak_ptr, |
| 244 MediaStreamSource* source, | 244 MediaStreamSource* source, |
| 245 MediaStreamRequestResult result, | 245 MediaStreamRequestResult result, |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 // Note: This member must be the last to ensure all outstanding weak pointers | 354 // Note: This member must be the last to ensure all outstanding weak pointers |
| 355 // are invalidated first. | 355 // are invalidated first. |
| 356 base::WeakPtrFactory<UserMediaClientImpl> weak_factory_; | 356 base::WeakPtrFactory<UserMediaClientImpl> weak_factory_; |
| 357 | 357 |
| 358 DISALLOW_COPY_AND_ASSIGN(UserMediaClientImpl); | 358 DISALLOW_COPY_AND_ASSIGN(UserMediaClientImpl); |
| 359 }; | 359 }; |
| 360 | 360 |
| 361 } // namespace content | 361 } // namespace content |
| 362 | 362 |
| 363 #endif // CONTENT_RENDERER_MEDIA_USER_MEDIA_CLIENT_IMPL_H_ | 363 #endif // CONTENT_RENDERER_MEDIA_USER_MEDIA_CLIENT_IMPL_H_ |
| OLD | NEW |