OLD | NEW |
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 Loading... |
60 | 60 |
61 // MediaStreamVideoSource overrides: | 61 // MediaStreamVideoSource overrides: |
62 void GetCurrentSupportedFormats( | 62 void GetCurrentSupportedFormats( |
63 int max_requested_width, | 63 int max_requested_width, |
64 int max_requested_height, | 64 int max_requested_height, |
65 double max_requested_frame_rate, | 65 double max_requested_frame_rate, |
66 const VideoCaptureDeviceFormatsCB& callback) override; | 66 const VideoCaptureDeviceFormatsCB& callback) override; |
67 | 67 |
68 void StartSourceImpl( | 68 void StartSourceImpl( |
69 const media::VideoCaptureFormat& format, | 69 const media::VideoCaptureFormat& format, |
| 70 const blink::WebMediaConstraints& constraints, |
70 const VideoCaptureDeliverFrameCB& frame_callback) override; | 71 const VideoCaptureDeliverFrameCB& frame_callback) override; |
71 | 72 |
72 void StopSourceImpl() override; | 73 void StopSourceImpl() override; |
73 | 74 |
74 // ResourceHost overrides: | 75 // ResourceHost overrides: |
75 void DidConnectPendingHostToResource() override; | 76 void DidConnectPendingHostToResource() override; |
76 | 77 |
77 // ResourceMessageHandler overrides: | 78 // ResourceMessageHandler overrides: |
78 int32_t OnResourceMessageReceived( | 79 int32_t OnResourceMessageReceived( |
79 const IPC::Message& msg, | 80 const IPC::Message& msg, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 scoped_refptr<FrameDeliverer> frame_deliverer_; | 124 scoped_refptr<FrameDeliverer> frame_deliverer_; |
124 | 125 |
125 base::WeakPtrFactory<PepperMediaStreamVideoTrackHost> weak_factory_; | 126 base::WeakPtrFactory<PepperMediaStreamVideoTrackHost> weak_factory_; |
126 | 127 |
127 DISALLOW_COPY_AND_ASSIGN(PepperMediaStreamVideoTrackHost); | 128 DISALLOW_COPY_AND_ASSIGN(PepperMediaStreamVideoTrackHost); |
128 }; | 129 }; |
129 | 130 |
130 } // namespace content | 131 } // namespace content |
131 | 132 |
132 #endif // CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_VIDEO_TRACK_HOST_H_ | 133 #endif // CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_VIDEO_TRACK_HOST_H_ |
OLD | NEW |