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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 ppapi::host::HostMessageContext* context, | 87 ppapi::host::HostMessageContext* context, |
88 const ppapi::MediaStreamVideoTrackShared::Attributes& attributes); | 88 const ppapi::MediaStreamVideoTrackShared::Attributes& attributes); |
89 | 89 |
90 void InitBlinkTrack(); | 90 void InitBlinkTrack(); |
91 void OnTrackStarted(MediaStreamSource* source, | 91 void OnTrackStarted(MediaStreamSource* source, |
92 MediaStreamRequestResult result, | 92 MediaStreamRequestResult result, |
93 const blink::WebString& result_name); | 93 const blink::WebString& result_name); |
94 | 94 |
95 blink::WebMediaStreamTrack track_; | 95 blink::WebMediaStreamTrack track_; |
96 | 96 |
97 // True if it has been added to |blink::WebMediaStreamTrack| as a sink. | |
98 bool connected_; | |
99 | |
100 // Number of buffers. | 97 // Number of buffers. |
101 int32_t number_of_buffers_; | 98 int32_t number_of_buffers_; |
102 | 99 |
103 // Size of frames which are received from MediaStreamVideoSink. | 100 // Size of frames which are received from MediaStreamVideoSink. |
104 gfx::Size source_frame_size_; | 101 gfx::Size source_frame_size_; |
105 | 102 |
106 // Plugin specified frame size. | 103 // Plugin specified frame size. |
107 gfx::Size plugin_frame_size_; | 104 gfx::Size plugin_frame_size_; |
108 | 105 |
109 // Format of frames which are received from MediaStreamVideoSink. | 106 // Format of frames which are received from MediaStreamVideoSink. |
(...skipping 16 matching lines...) Expand all Loading... |
126 scoped_refptr<FrameDeliverer> frame_deliverer_; | 123 scoped_refptr<FrameDeliverer> frame_deliverer_; |
127 | 124 |
128 base::WeakPtrFactory<PepperMediaStreamVideoTrackHost> weak_factory_; | 125 base::WeakPtrFactory<PepperMediaStreamVideoTrackHost> weak_factory_; |
129 | 126 |
130 DISALLOW_COPY_AND_ASSIGN(PepperMediaStreamVideoTrackHost); | 127 DISALLOW_COPY_AND_ASSIGN(PepperMediaStreamVideoTrackHost); |
131 }; | 128 }; |
132 | 129 |
133 } // namespace content | 130 } // namespace content |
134 | 131 |
135 #endif // CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_VIDEO_TRACK_HOST_H_ | 132 #endif // CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_VIDEO_TRACK_HOST_H_ |
OLD | NEW |