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

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

Issue 150403006: [PPAPI][MediaStream] Support configure for video input. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build errors Created 6 years, 10 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
« no previous file with comments | « ppapi/ppapi_shared.gypi ('k') | ppapi/proxy/media_stream_video_track_resource.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_MEDIA_STREAM_VIDEO_TRACK_RESOURCE_H_ 5 #ifndef PPAPI_PROXY_MEDIA_STREAM_VIDEO_TRACK_RESOURCE_H_
6 #define PPAPI_PROXY_MEDIA_STREAM_VIDEO_TRACK_RESOURCE_H_ 6 #define PPAPI_PROXY_MEDIA_STREAM_VIDEO_TRACK_RESOURCE_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 virtual void Close() OVERRIDE; 45 virtual void Close() OVERRIDE;
46 46
47 // MediaStreamBufferManager::Delegate overrides: 47 // MediaStreamBufferManager::Delegate overrides:
48 virtual void OnNewBufferEnqueued() OVERRIDE; 48 virtual void OnNewBufferEnqueued() OVERRIDE;
49 49
50 private: 50 private:
51 PP_Resource GetVideoFrame(); 51 PP_Resource GetVideoFrame();
52 52
53 void ReleaseFrames(); 53 void ReleaseFrames();
54 54
55 // IPC message handlers.
56 void OnPluginMsgConfigureReply(const ResourceMessageReplyParams& params);
57
55 // Allocated frame resources by |GetFrame()|. 58 // Allocated frame resources by |GetFrame()|.
56 typedef std::map<PP_Resource, scoped_refptr<VideoFrameResource> > FrameMap; 59 typedef std::map<PP_Resource, scoped_refptr<VideoFrameResource> > FrameMap;
57 FrameMap frames_; 60 FrameMap frames_;
58 61
59 PP_Resource* get_frame_output_; 62 PP_Resource* get_frame_output_;
63 scoped_refptr<TrackedCallback> get_frame_callback_;
60 64
61 scoped_refptr<TrackedCallback> get_frame_callback_; 65 scoped_refptr<TrackedCallback> configure_callback_;
62 66
63 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoTrackResource); 67 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoTrackResource);
64 }; 68 };
65 69
66 } // namespace proxy 70 } // namespace proxy
67 } // namespace ppapi 71 } // namespace ppapi
68 72
69 #endif // PPAPI_PROXY_MEDIA_STREAM_VIDEO_TRACK_RESOURCE_H_ 73 #endif // PPAPI_PROXY_MEDIA_STREAM_VIDEO_TRACK_RESOURCE_H_
OLDNEW
« no previous file with comments | « ppapi/ppapi_shared.gypi ('k') | ppapi/proxy/media_stream_video_track_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698