Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(454)

Side by Side Diff: content/renderer/media/user_media_client_impl.h

Issue 1834323002: MediaStream audio: Refactor 3 separate "glue" implementations into one. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments from PS2: AudioInputDevice --> AudioCapturerSource, and refptr foo in WebRtcMedi… Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 bool enable_automatic_output_device_selection); 136 bool enable_automatic_output_device_selection);
137 ~UserMediaRequestInfo(); 137 ~UserMediaRequestInfo();
138 int request_id; 138 int request_id;
139 // True if MediaStreamDispatcher has generated the stream, see 139 // True if MediaStreamDispatcher has generated the stream, see
140 // OnStreamGenerated. 140 // OnStreamGenerated.
141 bool generated; 141 bool generated;
142 const bool enable_automatic_output_device_selection; 142 const bool enable_automatic_output_device_selection;
143 blink::WebMediaStream web_stream; 143 blink::WebMediaStream web_stream;
144 blink::WebUserMediaRequest request; 144 blink::WebUserMediaRequest request;
145 145
146 void StartAudioTrack(const blink::WebMediaStreamTrack& track, 146 void StartAudioTrack(const blink::WebMediaStreamTrack& track);
147 const blink::WebMediaConstraints& constraints);
148 147
149 blink::WebMediaStreamTrack CreateAndStartVideoTrack( 148 blink::WebMediaStreamTrack CreateAndStartVideoTrack(
150 const blink::WebMediaStreamSource& source, 149 const blink::WebMediaStreamSource& source,
151 const blink::WebMediaConstraints& constraints); 150 const blink::WebMediaConstraints& constraints);
152 151
153 // Triggers |callback| when all sources used in this request have either 152 // Triggers |callback| when all sources used in this request have either
154 // successfully started, or a source has failed to start. 153 // successfully started, or a source has failed to start.
155 void CallbackOnTracksStarted(const ResourcesReady& callback); 154 void CallbackOnTracksStarted(const ResourcesReady& callback);
156 155
157 bool IsSourceUsed(const blink::WebMediaStreamSource& source) const; 156 bool IsSourceUsed(const blink::WebMediaStreamSource& source) const;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 // Note: This member must be the last to ensure all outstanding weak pointers 257 // Note: This member must be the last to ensure all outstanding weak pointers
259 // are invalidated first. 258 // are invalidated first.
260 base::WeakPtrFactory<UserMediaClientImpl> weak_factory_; 259 base::WeakPtrFactory<UserMediaClientImpl> weak_factory_;
261 260
262 DISALLOW_COPY_AND_ASSIGN(UserMediaClientImpl); 261 DISALLOW_COPY_AND_ASSIGN(UserMediaClientImpl);
263 }; 262 };
264 263
265 } // namespace content 264 } // namespace content
266 265
267 #endif // CONTENT_RENDERER_MEDIA_USER_MEDIA_CLIENT_IMPL_H_ 266 #endif // CONTENT_RENDERER_MEDIA_USER_MEDIA_CLIENT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698