Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(420)

Side by Side Diff: ppapi/proxy/media_stream_video_track_resource.h

Issue 128683003: [PPAPI] Implement media stream video track API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@video_track_impl_cl
Patch Set: Fix review issue Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_PROXY_MEDIA_STREAM_VIDEO_TRACK_RESOURCE_H_
6 #define PPAPI_PROXY_MEDIA_STREAM_VIDEO_TRACK_RESOURCE_H_
7
8 #include "ppapi/proxy/media_stream_track_resource_base.h"
9 #include "ppapi/proxy/ppapi_proxy_export.h"
10 #include "ppapi/thunk/ppb_media_stream_video_track_api.h"
11
12 namespace ppapi {
13 namespace proxy {
14
15 class PPAPI_PROXY_EXPORT MediaStreamVideoTrackResource
16 : public MediaStreamTrackResourceBase,
17 public ppapi::thunk::PPB_MediaStreamVideoTrack_API {
yzshen1 2014/01/10 21:05:17 nit: ppapi:: is not needed.
Peng 2014/01/10 22:46:58 Done.
18 public:
19 MediaStreamVideoTrackResource(Connection connection,
20 PP_Instance instance,
21 int pending_renderer_id,
22 const std::string& id);
23
24 virtual ~MediaStreamVideoTrackResource();
25
26 // Resource overrides:
27 virtual thunk::PPB_MediaStreamVideoTrack_API* AsPPB_MediaStreamVideoTrack_API(
28 ) OVERRIDE;
bbudge 2014/01/10 22:57:06 It looks strange to split the ( and ) like this. H
Peng 2014/01/13 19:10:15 Done.
29
30 // PPB_MediaStreamVideoTrack_API overrides:
31 virtual PP_Var GetId() OVERRIDE;
32 virtual PP_Bool HasEnded() OVERRIDE;
33 virtual int32_t Configure(uint32_t max_buffered_frames) OVERRIDE;
34 virtual int32_t GetFrame(
35 PP_Resource* frame,
36 scoped_refptr<ppapi::TrackedCallback> callback) OVERRIDE;
37 virtual int32_t RecycleFrame(PP_Resource frame) OVERRIDE;
38 virtual void Close() OVERRIDE;
39
40 // MediaStreamFrameBuffer::Delegate overrides:
41 virtual void OnNewFrameEnqueued() OVERRIDE;
42
43 private:
44 PP_Resource GetVideoFrame();
45
46 PP_Resource* get_frame_output_;
47
48 scoped_refptr<TrackedCallback> get_frame_callback_;
49
50 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoTrackResource);
51 };
52
53 } // namespace proxy
54 } // namespace ppapi
55
56 #endif // PPAPI_PROXY_MEDIA_STREAM_VIDEO_TRACK_RESOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698