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

Side by Side Diff: content/renderer/pepper/pepper_media_stream_video_track_host.h

Issue 528783002: Change MediaStreamVideoSource::StartSourceImpl to use VideoCaptureFormat instead of VideoCapturePar… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 6 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PEPPER_PEPPER_MEDIA_STREAM_VIDEO_TRACK_HOST_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_VIDEO_TRACK_HOST_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_VIDEO_TRACK_HOST_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_VIDEO_TRACK_HOST_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "content/public/renderer/media_stream_video_sink.h" 10 #include "content/public/renderer/media_stream_video_sink.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 const base::TimeTicks& estimated_capture_time); 60 const base::TimeTicks& estimated_capture_time);
61 61
62 // MediaStreamVideoSource overrides: 62 // MediaStreamVideoSource overrides:
63 virtual void GetCurrentSupportedFormats( 63 virtual void GetCurrentSupportedFormats(
64 int max_requested_width, 64 int max_requested_width,
65 int max_requested_height, 65 int max_requested_height,
66 double max_requested_frame_rate, 66 double max_requested_frame_rate,
67 const VideoCaptureDeviceFormatsCB& callback) OVERRIDE; 67 const VideoCaptureDeviceFormatsCB& callback) OVERRIDE;
68 68
69 virtual void StartSourceImpl( 69 virtual void StartSourceImpl(
70 const media::VideoCaptureParams& params, 70 const media::VideoCaptureFormat& format,
71 const VideoCaptureDeliverFrameCB& frame_callback) OVERRIDE; 71 const VideoCaptureDeliverFrameCB& frame_callback) OVERRIDE;
72 72
73 virtual void StopSourceImpl() OVERRIDE; 73 virtual void StopSourceImpl() OVERRIDE;
74 74
75 // ResourceHost overrides: 75 // ResourceHost overrides:
76 virtual void DidConnectPendingHostToResource() OVERRIDE; 76 virtual void DidConnectPendingHostToResource() OVERRIDE;
77 77
78 // ResourceMessageHandler overrides: 78 // ResourceMessageHandler overrides:
79 virtual int32_t OnResourceMessageReceived( 79 virtual int32_t OnResourceMessageReceived(
80 const IPC::Message& msg, 80 const IPC::Message& msg,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 scoped_refptr<FrameDeliverer> frame_deliverer_; 124 scoped_refptr<FrameDeliverer> frame_deliverer_;
125 125
126 base::WeakPtrFactory<PepperMediaStreamVideoTrackHost> weak_factory_; 126 base::WeakPtrFactory<PepperMediaStreamVideoTrackHost> weak_factory_;
127 127
128 DISALLOW_COPY_AND_ASSIGN(PepperMediaStreamVideoTrackHost); 128 DISALLOW_COPY_AND_ASSIGN(PepperMediaStreamVideoTrackHost);
129 }; 129 };
130 130
131 } // namespace content 131 } // namespace content
132 132
133 #endif // CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_VIDEO_TRACK_HOST_H_ 133 #endif // CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_VIDEO_TRACK_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698