| 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 PPAPI_PROXY_MEDIA_STREAM_VIDEO_TRACK_RESOURCE_H_ | 5 #ifndef PPAPI_PROXY_MEDIA_STREAM_VIDEO_TRACK_RESOURCE_H_ |
| 6 #define PPAPI_PROXY_MEDIA_STREAM_VIDEO_TRACK_RESOURCE_H_ | 6 #define PPAPI_PROXY_MEDIA_STREAM_VIDEO_TRACK_RESOURCE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 virtual void Close() OVERRIDE; | 45 virtual void Close() OVERRIDE; |
| 46 | 46 |
| 47 // MediaStreamBufferManager::Delegate overrides: | 47 // MediaStreamBufferManager::Delegate overrides: |
| 48 virtual void OnNewBufferEnqueued() OVERRIDE; | 48 virtual void OnNewBufferEnqueued() OVERRIDE; |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 PP_Resource GetVideoFrame(); | 51 PP_Resource GetVideoFrame(); |
| 52 | 52 |
| 53 void ReleaseFrames(); | 53 void ReleaseFrames(); |
| 54 | 54 |
| 55 // IPC message handlers. |
| 56 void OnPluginMsgConfigureReply(const ResourceMessageReplyParams& params); |
| 57 |
| 55 // Allocated frame resources by |GetFrame()|. | 58 // Allocated frame resources by |GetFrame()|. |
| 56 typedef std::map<PP_Resource, scoped_refptr<VideoFrameResource> > FrameMap; | 59 typedef std::map<PP_Resource, scoped_refptr<VideoFrameResource> > FrameMap; |
| 57 FrameMap frames_; | 60 FrameMap frames_; |
| 58 | 61 |
| 59 PP_Resource* get_frame_output_; | 62 PP_Resource* get_frame_output_; |
| 63 scoped_refptr<TrackedCallback> get_frame_callback_; |
| 60 | 64 |
| 61 scoped_refptr<TrackedCallback> get_frame_callback_; | 65 scoped_refptr<TrackedCallback> configure_callback_; |
| 62 | 66 |
| 63 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoTrackResource); | 67 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoTrackResource); |
| 64 }; | 68 }; |
| 65 | 69 |
| 66 } // namespace proxy | 70 } // namespace proxy |
| 67 } // namespace ppapi | 71 } // namespace ppapi |
| 68 | 72 |
| 69 #endif // PPAPI_PROXY_MEDIA_STREAM_VIDEO_TRACK_RESOURCE_H_ | 73 #endif // PPAPI_PROXY_MEDIA_STREAM_VIDEO_TRACK_RESOURCE_H_ |
| OLD | NEW |