| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 bool enable_automatic_output_device_selection); | 137 bool enable_automatic_output_device_selection); |
| 138 ~UserMediaRequestInfo(); | 138 ~UserMediaRequestInfo(); |
| 139 int request_id; | 139 int request_id; |
| 140 // True if MediaStreamDispatcher has generated the stream, see | 140 // True if MediaStreamDispatcher has generated the stream, see |
| 141 // OnStreamGenerated. | 141 // OnStreamGenerated. |
| 142 bool generated; | 142 bool generated; |
| 143 const bool enable_automatic_output_device_selection; | 143 const bool enable_automatic_output_device_selection; |
| 144 blink::WebMediaStream web_stream; | 144 blink::WebMediaStream web_stream; |
| 145 blink::WebUserMediaRequest request; | 145 blink::WebUserMediaRequest request; |
| 146 | 146 |
| 147 void StartAudioTrack(const blink::WebMediaStreamTrack& track, | 147 void StartAudioTrack(const blink::WebMediaStreamTrack& track); |
| 148 const blink::WebMediaConstraints& constraints); | |
| 149 | 148 |
| 150 blink::WebMediaStreamTrack CreateAndStartVideoTrack( | 149 blink::WebMediaStreamTrack CreateAndStartVideoTrack( |
| 151 const blink::WebMediaStreamSource& source, | 150 const blink::WebMediaStreamSource& source, |
| 152 const blink::WebMediaConstraints& constraints); | 151 const blink::WebMediaConstraints& constraints); |
| 153 | 152 |
| 154 // Triggers |callback| when all sources used in this request have either | 153 // Triggers |callback| when all sources used in this request have either |
| 155 // successfully started, or a source has failed to start. | 154 // successfully started, or a source has failed to start. |
| 156 void CallbackOnTracksStarted(const ResourcesReady& callback); | 155 void CallbackOnTracksStarted(const ResourcesReady& callback); |
| 157 | 156 |
| 158 bool IsSourceUsed(const blink::WebMediaStreamSource& source) const; | 157 bool IsSourceUsed(const blink::WebMediaStreamSource& source) const; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 // Note: This member must be the last to ensure all outstanding weak pointers | 253 // Note: This member must be the last to ensure all outstanding weak pointers |
| 255 // are invalidated first. | 254 // are invalidated first. |
| 256 base::WeakPtrFactory<UserMediaClientImpl> weak_factory_; | 255 base::WeakPtrFactory<UserMediaClientImpl> weak_factory_; |
| 257 | 256 |
| 258 DISALLOW_COPY_AND_ASSIGN(UserMediaClientImpl); | 257 DISALLOW_COPY_AND_ASSIGN(UserMediaClientImpl); |
| 259 }; | 258 }; |
| 260 | 259 |
| 261 } // namespace content | 260 } // namespace content |
| 262 | 261 |
| 263 #endif // CONTENT_RENDERER_MEDIA_USER_MEDIA_CLIENT_IMPL_H_ | 262 #endif // CONTENT_RENDERER_MEDIA_USER_MEDIA_CLIENT_IMPL_H_ |
| OLD | NEW |