Index: ppapi/thunk/ppb_media_stream_track_api.h |
diff --git a/ppapi/thunk/ppb_media_stream_track_api.h b/ppapi/thunk/ppb_media_stream_track_api.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5d602cdc5e3d121254ae2c1b691725e0dd46dc3c |
--- /dev/null |
+++ b/ppapi/thunk/ppb_media_stream_track_api.h |
@@ -0,0 +1,33 @@ |
+// Copyright (c) 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef PPAPI_THUNK_MEDIA_STREAM_TRACK_API_H_ |
+#define PPAPI_THUNK_MEDIA_STREAM_TRACK_API_H_ |
+ |
+#include "base/memory/ref_counted.h" |
+#include "ppapi/c/pp_bool.h" |
+#include "ppapi/c/pp_var.h" |
+ |
+namespace ppapi { |
+ |
+class TrackedCallback; |
+ |
+namespace thunk { |
+ |
+class PPB_MediaStreamTrack_API { |
+ public: |
+ virtual ~PPB_MediaStreamTrack_API() {} |
+ virtual PP_Var GetId() = 0; |
+ virtual PP_Bool HasEnded() = 0; |
+ virtual int32_t GetFrame( |
+ PP_Resource* frame, |
+ const scoped_refptr<ppapi::TrackedCallback>& callback) = 0; |
+ virtual int32_t RecycleFrame(PP_Resource frame) = 0; |
+ virtual void Close() = 0; |
+}; |
+ |
+} // namespace thunk |
+} // namespace ppapi |
+ |
+#endif // PPAPI_THUNK_MEDIA_STREAM_VIDEO_TRACK_API_H_ |