Chromium Code Reviews| Index: ppapi/thunk/ppb_video_source_private_api.h |
| diff --git a/ppapi/thunk/ppb_video_source_private_api.h b/ppapi/thunk/ppb_video_source_private_api.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8dfbb0a9c28456a4e56c71e2eec612e80f96f068 |
| --- /dev/null |
| +++ b/ppapi/thunk/ppb_video_source_private_api.h |
| @@ -0,0 +1,33 @@ |
| +// Copyright (c) 2013 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_PPB_VIDEO_SOURCE_PRIVATE_API_H_ |
| +#define PPAPI_THUNK_PPB_VIDEO_SOURCE_PRIVATE_API_H_ |
| + |
| +#include "base/memory/ref_counted.h" |
| +#include "ppapi/thunk/ppapi_thunk_export.h" |
| + |
| +struct PP_VideoFrame_Private; |
| + |
| +namespace ppapi { |
| + |
| +class TrackedCallback; |
| + |
| +namespace thunk { |
| + |
| +class PPAPI_THUNK_EXPORT PPB_VideoSource_Private_API { |
| + public: |
| + virtual ~PPB_VideoSource_Private_API() {} |
| + |
| + virtual int32_t Open(PP_Var stream_url, |
|
yzshen1
2013/05/01 23:18:33
nit: please use const &
bbudge
2013/05/02 21:39:06
Done. For both resource types.
|
| + scoped_refptr<TrackedCallback> callback) = 0; |
| + virtual int32_t GetFrame(PP_VideoFrame_Private* frame, |
| + scoped_refptr<TrackedCallback> callback) = 0; |
| + virtual void Close() = 0; |
| +}; |
| + |
| +} // namespace thunk |
| +} // namespace ppapi |
| + |
| +#endif // PPAPI_THUNK_PPB_VIDEO_SOURCE_PRIVATE_API_H_ |