OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_VIDEO_SOURCE_RESOURCE_H_ | 5 #ifndef PPAPI_PROXY_VIDEO_SOURCE_RESOURCE_H_ |
6 #define PPAPI_PROXY_VIDEO_SOURCE_RESOURCE_H_ | 6 #define PPAPI_PROXY_VIDEO_SOURCE_RESOURCE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "ppapi/c/pp_time.h" | 10 #include "ppapi/c/pp_time.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 private: | 47 private: |
48 void OnPluginMsgOpenComplete( | 48 void OnPluginMsgOpenComplete( |
49 const ResourceMessageReplyParams& reply_params); | 49 const ResourceMessageReplyParams& reply_params); |
50 void OnPluginMsgGetFrameComplete( | 50 void OnPluginMsgGetFrameComplete( |
51 PP_VideoFrame_Private* frame, | 51 PP_VideoFrame_Private* frame, |
52 const ResourceMessageReplyParams& reply_params, | 52 const ResourceMessageReplyParams& reply_params, |
53 const HostResource& image_data, | 53 const HostResource& image_data, |
54 const PP_ImageDataDesc& image_desc_data, | 54 const PP_ImageDataDesc& image_desc_data, |
55 int fd, | 55 int shmem_key, |
56 PP_TimeTicks timestamp); | 56 PP_TimeTicks timestamp); |
57 | 57 |
58 scoped_refptr<TrackedCallback> open_callback_; | 58 scoped_refptr<TrackedCallback> open_callback_; |
59 scoped_refptr<TrackedCallback> get_frame_callback_; | 59 scoped_refptr<TrackedCallback> get_frame_callback_; |
60 bool is_open_; | 60 bool is_open_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(VideoSourceResource); | 62 DISALLOW_COPY_AND_ASSIGN(VideoSourceResource); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace proxy | 65 } // namespace proxy |
66 } // namespace ppapi | 66 } // namespace ppapi |
67 | 67 |
68 #endif // PPAPI_PROXY_VIDEO_SOURCE_RESOURCE_H_ | 68 #endif // PPAPI_PROXY_VIDEO_SOURCE_RESOURCE_H_ |
OLD | NEW |