| 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 "content/public/renderer/media_stream_video_sink.h" | 9 #include "content/public/renderer/media_stream_video_sink.h" |
| 10 #include "content/renderer/pepper/pepper_media_stream_track_host_base.h" | 10 #include "content/renderer/pepper/pepper_media_stream_track_host_base.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 virtual ~PepperMediaStreamVideoTrackHost(); | 28 virtual ~PepperMediaStreamVideoTrackHost(); |
| 29 | 29 |
| 30 void InitBuffers(); | 30 void InitBuffers(); |
| 31 | 31 |
| 32 // PepperMediaStreamTrackHostBase overrides: | 32 // PepperMediaStreamTrackHostBase overrides: |
| 33 virtual void OnClose() OVERRIDE; | 33 virtual void OnClose() OVERRIDE; |
| 34 | 34 |
| 35 // MediaStreamVideoSink overrides: | 35 // MediaStreamVideoSink overrides: |
| 36 virtual void OnVideoFrame( | 36 virtual void OnVideoFrame(const scoped_refptr<media::VideoFrame>& frame) |
| 37 const scoped_refptr<media::VideoFrame>& frame) OVERRIDE; | 37 OVERRIDE; |
| 38 | 38 |
| 39 // ResourceHost overrides: | 39 // ResourceHost overrides: |
| 40 virtual void DidConnectPendingHostToResource() OVERRIDE; | 40 virtual void DidConnectPendingHostToResource() OVERRIDE; |
| 41 | 41 |
| 42 // ResourceMessageHandler overrides: | 42 // ResourceMessageHandler overrides: |
| 43 virtual int32_t OnResourceMessageReceived( | 43 virtual int32_t OnResourceMessageReceived( |
| 44 const IPC::Message& msg, | 44 const IPC::Message& msg, |
| 45 ppapi::host::HostMessageContext* context) OVERRIDE; | 45 ppapi::host::HostMessageContext* context) OVERRIDE; |
| 46 | 46 |
| 47 // Message handlers: | 47 // Message handlers: |
| (...skipping 23 matching lines...) Expand all Loading... |
| 71 | 71 |
| 72 // The size of frame pixels in bytes. | 72 // The size of frame pixels in bytes. |
| 73 uint32_t frame_data_size_; | 73 uint32_t frame_data_size_; |
| 74 | 74 |
| 75 DISALLOW_COPY_AND_ASSIGN(PepperMediaStreamVideoTrackHost); | 75 DISALLOW_COPY_AND_ASSIGN(PepperMediaStreamVideoTrackHost); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace content | 78 } // namespace content |
| 79 | 79 |
| 80 #endif // CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_VIDEO_TRACK_HOST_H_ | 80 #endif // CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_VIDEO_TRACK_HOST_H_ |
| OLD | NEW |