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

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

Issue 1647773002: MediaStream audio sourcing: Bypass audio processing for non-WebRTC cases. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NOT FOR REVIEW -- This will be broken-up across multiple CLs. Created 4 years, 10 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « content/renderer/media/track_audio_renderer.cc ('k') | content/renderer/media/user_media_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698