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" |
11 #include "content/renderer/media/media_stream_video_source.h" | 11 #include "content/renderer/media/media_stream_video_source.h" |
12 #include "content/renderer/pepper/pepper_media_stream_track_host_base.h" | 12 #include "content/renderer/pepper/pepper_media_stream_track_host_base.h" |
13 #include "media/base/video_frame.h" | 13 #include "media/base/video_frame.h" |
14 #include "ppapi/c/ppb_video_frame.h" | 14 #include "ppapi/c/ppb_video_frame.h" |
15 #include "ppapi/shared_impl/media_stream_video_track_shared.h" | 15 #include "ppapi/shared_impl/media_stream_video_track_shared.h" |
16 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" | 16 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" |
17 #include "ui/gfx/size.h" | 17 #include "ui/gfx/geometry/size.h" |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 class PepperMediaStreamVideoTrackHost : public PepperMediaStreamTrackHostBase, | 21 class PepperMediaStreamVideoTrackHost : public PepperMediaStreamTrackHostBase, |
22 public MediaStreamVideoSink, | 22 public MediaStreamVideoSink, |
23 public MediaStreamVideoSource { | 23 public MediaStreamVideoSource { |
24 public: | 24 public: |
25 // Input mode constructor. | 25 // Input mode constructor. |
26 // In input mode, this class passes video frames from |track| to the | 26 // In input mode, this class passes video frames from |track| to the |
27 // associated pepper plugin. | 27 // associated pepper plugin. |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_ |
OLD | NEW |