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

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

Issue 15039009: Add PPAPI tests for VideoSource and VideoDestination resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix proxy so basic tests pass. Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_VIDEO_SOURCE_RESOURCE_H_ 5 #ifndef PPAPI_PROXY_VIDEO_SOURCE_RESOURCE_H_
6 #define PPAPI_PROXY_VIDEO_SOURCE_RESOURCE_H_ 6 #define PPAPI_PROXY_VIDEO_SOURCE_RESOURCE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ppapi/c/pp_time.h" 10 #include "ppapi/c/pp_time.h"
(...skipping 27 matching lines...) Expand all
38 virtual int32_t Open( 38 virtual int32_t Open(
39 const PP_Var& stream_url, 39 const PP_Var& stream_url,
40 scoped_refptr<TrackedCallback> callback) OVERRIDE; 40 scoped_refptr<TrackedCallback> callback) OVERRIDE;
41 virtual int32_t GetFrame( 41 virtual int32_t GetFrame(
42 PP_VideoFrame_Private* frame, 42 PP_VideoFrame_Private* frame,
43 scoped_refptr<TrackedCallback> callback) OVERRIDE; 43 scoped_refptr<TrackedCallback> callback) OVERRIDE;
44 virtual void Close() OVERRIDE; 44 virtual void Close() OVERRIDE;
45 45
46 private: 46 private:
47 void OnPluginMsgOpenComplete( 47 void OnPluginMsgOpenComplete(
48 const ResourceMessageReplyParams& params); 48 const ResourceMessageReplyParams& reply_params);
49 void OnPluginMsgGetFrameComplete( 49 void OnPluginMsgGetFrameComplete(
50 PP_VideoFrame_Private* frame, 50 PP_VideoFrame_Private* frame,
51 const ResourceMessageReplyParams& params, 51 const ResourceMessageReplyParams& reply_params,
52 const HostResource& image_data, 52 const HostResource& image_data,
53 const std::string& image_desc_data,
54 int fd,
53 PP_TimeTicks timestamp); 55 PP_TimeTicks timestamp);
54 56
55 scoped_refptr<TrackedCallback> open_callback_; 57 scoped_refptr<TrackedCallback> open_callback_;
56 scoped_refptr<TrackedCallback> get_frame_callback_; 58 scoped_refptr<TrackedCallback> get_frame_callback_;
57 bool is_open_; 59 bool is_open_;
58 60
59 DISALLOW_COPY_AND_ASSIGN(VideoSourceResource); 61 DISALLOW_COPY_AND_ASSIGN(VideoSourceResource);
60 }; 62 };
61 63
62 } // namespace proxy 64 } // namespace proxy
63 } // namespace ppapi 65 } // namespace ppapi
64 66
65 #endif // PPAPI_PROXY_VIDEO_SOURCE_RESOURCE_H_ 67 #endif // PPAPI_PROXY_VIDEO_SOURCE_RESOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698