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

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

Issue 2034153002: Makes RenderFrameObserver/RenderViewObserver::OnDestruct pure virtual. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 4 years, 6 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 <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 UserMediaRequestInfo* FindUserMediaRequestInfo( 189 UserMediaRequestInfo* FindUserMediaRequestInfo(
190 const blink::WebUserMediaRequest& request); 190 const blink::WebUserMediaRequest& request);
191 191
192 void DeleteUserMediaRequestInfo(UserMediaRequestInfo* request); 192 void DeleteUserMediaRequestInfo(UserMediaRequestInfo* request);
193 193
194 private: 194 private:
195 typedef std::vector<blink::WebMediaStreamSource> LocalStreamSources; 195 typedef std::vector<blink::WebMediaStreamSource> LocalStreamSources;
196 struct MediaDevicesRequestInfo; 196 struct MediaDevicesRequestInfo;
197 typedef ScopedVector<MediaDevicesRequestInfo> MediaDevicesRequests; 197 typedef ScopedVector<MediaDevicesRequestInfo> MediaDevicesRequests;
198 198
199 // RenderFrameObserver implementation.
200 void OnDestruct() override;
201
199 // Creates a WebKit representation of stream sources based on 202 // Creates a WebKit representation of stream sources based on
200 // |devices| from the MediaStreamDispatcher. 203 // |devices| from the MediaStreamDispatcher.
201 void InitializeSourceObject( 204 void InitializeSourceObject(
202 const StreamDeviceInfo& device, 205 const StreamDeviceInfo& device,
203 blink::WebMediaStreamSource::Type type, 206 blink::WebMediaStreamSource::Type type,
204 const blink::WebMediaConstraints& constraints, 207 const blink::WebMediaConstraints& constraints,
205 blink::WebMediaStreamSource* webkit_source); 208 blink::WebMediaStreamSource* webkit_source);
206 209
207 void CreateVideoTracks( 210 void CreateVideoTracks(
208 const StreamDeviceInfoArray& devices, 211 const StreamDeviceInfoArray& devices,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 // Note: This member must be the last to ensure all outstanding weak pointers 274 // Note: This member must be the last to ensure all outstanding weak pointers
272 // are invalidated first. 275 // are invalidated first.
273 base::WeakPtrFactory<UserMediaClientImpl> weak_factory_; 276 base::WeakPtrFactory<UserMediaClientImpl> weak_factory_;
274 277
275 DISALLOW_COPY_AND_ASSIGN(UserMediaClientImpl); 278 DISALLOW_COPY_AND_ASSIGN(UserMediaClientImpl);
276 }; 279 };
277 280
278 } // namespace content 281 } // namespace content
279 282
280 #endif // CONTENT_RENDERER_MEDIA_USER_MEDIA_CLIENT_IMPL_H_ 283 #endif // CONTENT_RENDERER_MEDIA_USER_MEDIA_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/media/renderer_webmediaplayer_delegate.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