OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PPAPI_THUNK_MEDIA_STREAM_TRACK_API_H_ |
| 6 #define PPAPI_THUNK_MEDIA_STREAM_TRACK_API_H_ |
| 7 |
| 8 #include "base/memory/ref_counted.h" |
| 9 #include "ppapi/c/pp_bool.h" |
| 10 #include "ppapi/c/pp_var.h" |
| 11 |
| 12 namespace ppapi { |
| 13 |
| 14 class TrackedCallback; |
| 15 |
| 16 namespace thunk { |
| 17 |
| 18 class PPB_MediaStreamTrack_API { |
| 19 public: |
| 20 virtual ~PPB_MediaStreamTrack_API() {} |
| 21 virtual PP_Var GetId() = 0; |
| 22 virtual PP_Bool HasEnded() = 0; |
| 23 virtual int32_t GetFrame( |
| 24 PP_Resource* frame, |
| 25 const scoped_refptr<ppapi::TrackedCallback>& callback) = 0; |
| 26 virtual int32_t RecycleFrame(PP_Resource frame) = 0; |
| 27 virtual void Close() = 0; |
| 28 }; |
| 29 |
| 30 } // namespace thunk |
| 31 } // namespace ppapi |
| 32 |
| 33 #endif // PPAPI_THUNK_MEDIA_STREAM_VIDEO_TRACK_API_H_ |
OLD | NEW |