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

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

Issue 2707203006: Minor refactoring of support classes for video-device constraints. (Closed)
Patch Set: hbos comment + fix in accessor Created 3 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 <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 21 matching lines...) Expand all
32 32
33 namespace base { 33 namespace base {
34 class TaskRunner; 34 class TaskRunner;
35 } 35 }
36 36
37 namespace content { 37 namespace content {
38 class PeerConnectionDependencyFactory; 38 class PeerConnectionDependencyFactory;
39 class MediaStreamAudioSource; 39 class MediaStreamAudioSource;
40 class MediaStreamDispatcher; 40 class MediaStreamDispatcher;
41 class MediaStreamVideoSource; 41 class MediaStreamVideoSource;
42 struct VideoCaptureSourceSelectionResult; 42 struct VideoDeviceCaptureSourceSelectionResult;
43 43
44 // UserMediaClientImpl is a delegate for the Media Stream GetUserMedia API. 44 // UserMediaClientImpl is a delegate for the Media Stream GetUserMedia API.
45 // It ties together WebKit and MediaStreamManager 45 // It ties together WebKit and MediaStreamManager
46 // (via MediaStreamDispatcher and MediaStreamDispatcherHost) 46 // (via MediaStreamDispatcher and MediaStreamDispatcherHost)
47 // in the browser process. It must be created, called and destroyed on the 47 // in the browser process. It must be created, called and destroyed on the
48 // render thread. 48 // render thread.
49 class CONTENT_EXPORT UserMediaClientImpl 49 class CONTENT_EXPORT UserMediaClientImpl
50 : public RenderFrameObserver, 50 : public RenderFrameObserver,
51 NON_EXPORTED_BASE(public blink::WebUserMediaClient), 51 NON_EXPORTED_BASE(public blink::WebUserMediaClient),
52 public MediaStreamDispatcherEventHandler, 52 public MediaStreamDispatcherEventHandler,
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 std::unique_ptr<StreamControls> controls, 308 std::unique_ptr<StreamControls> controls,
309 const RequestSettings& request_settings, 309 const RequestSettings& request_settings,
310 std::vector<::mojom::VideoInputDeviceCapabilitiesPtr> 310 std::vector<::mojom::VideoInputDeviceCapabilitiesPtr>
311 video_input_capabilities); 311 video_input_capabilities);
312 312
313 void FinalizeSelectVideoDeviceSourceSettings( 313 void FinalizeSelectVideoDeviceSourceSettings(
314 int request_id, 314 int request_id,
315 const blink::WebUserMediaRequest& user_media_request, 315 const blink::WebUserMediaRequest& user_media_request,
316 std::unique_ptr<StreamControls> controls, 316 std::unique_ptr<StreamControls> controls,
317 const RequestSettings& request_settings, 317 const RequestSettings& request_settings,
318 const VideoCaptureSourceSelectionResult& selection_result); 318 const VideoDeviceCaptureSourceSelectionResult& selection_result);
319 319
320 void FinalizeRequestUserMedia( 320 void FinalizeRequestUserMedia(
321 int request_id, 321 int request_id,
322 const blink::WebUserMediaRequest& user_media_request, 322 const blink::WebUserMediaRequest& user_media_request,
323 std::unique_ptr<StreamControls> controls, 323 std::unique_ptr<StreamControls> controls,
324 const RequestSettings& request_settings); 324 const RequestSettings& request_settings);
325 325
326 // Callback invoked by MediaDevicesEventDispatcher when a device-change 326 // Callback invoked by MediaDevicesEventDispatcher when a device-change
327 // notification arrives. 327 // notification arrives.
328 void DevicesChanged(MediaDeviceType device_type, 328 void DevicesChanged(MediaDeviceType device_type,
(...skipping 25 matching lines...) Expand all
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_
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_video_track.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