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

Side by Side Diff: webkit/plugins/ppapi/ppb_video_capture_impl.h

Issue 10081020: PPAPI: Make blocking completion callbacks work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export AssertLockHeld Created 8 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_CAPTURE_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_CAPTURE_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_CAPTURE_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_CAPTURE_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 const media::VideoCaptureParams& device_info) OVERRIDE; 47 const media::VideoCaptureParams& device_info) OVERRIDE;
48 virtual void OnInitialized(media::VideoCapture* capture, 48 virtual void OnInitialized(media::VideoCapture* capture,
49 bool succeeded) OVERRIDE; 49 bool succeeded) OVERRIDE;
50 50
51 private: 51 private:
52 typedef std::vector< ::ppapi::DeviceRefData> DeviceRefDataVector; 52 typedef std::vector< ::ppapi::DeviceRefData> DeviceRefDataVector;
53 53
54 // PPB_VideoCapture_Shared implementation. 54 // PPB_VideoCapture_Shared implementation.
55 virtual int32_t InternalEnumerateDevices( 55 virtual int32_t InternalEnumerateDevices(
56 PP_Resource* devices, 56 PP_Resource* devices,
57 const PP_CompletionCallback& callback) OVERRIDE; 57 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE;
58 virtual int32_t InternalOpen( 58 virtual int32_t InternalOpen(
59 const std::string& device_id, 59 const std::string& device_id,
60 const PP_VideoCaptureDeviceInfo_Dev& requested_info, 60 const PP_VideoCaptureDeviceInfo_Dev& requested_info,
61 uint32_t buffer_count, 61 uint32_t buffer_count,
62 const PP_CompletionCallback& callback) OVERRIDE; 62 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE;
63 virtual int32_t InternalStartCapture() OVERRIDE; 63 virtual int32_t InternalStartCapture() OVERRIDE;
64 virtual int32_t InternalReuseBuffer(uint32_t buffer) OVERRIDE; 64 virtual int32_t InternalReuseBuffer(uint32_t buffer) OVERRIDE;
65 virtual int32_t InternalStopCapture() OVERRIDE; 65 virtual int32_t InternalStopCapture() OVERRIDE;
66 virtual void InternalClose() OVERRIDE; 66 virtual void InternalClose() OVERRIDE;
67 virtual int32_t InternalStartCapture0_1( 67 virtual int32_t InternalStartCapture0_1(
68 const PP_VideoCaptureDeviceInfo_Dev& requested_info, 68 const PP_VideoCaptureDeviceInfo_Dev& requested_info,
69 uint32_t buffer_count) OVERRIDE; 69 uint32_t buffer_count) OVERRIDE;
70 virtual const DeviceRefDataVector& InternalGetDeviceRefData() const OVERRIDE; 70 virtual const DeviceRefDataVector& InternalGetDeviceRefData() const OVERRIDE;
71 71
72 void ReleaseBuffers(); 72 void ReleaseBuffers();
(...skipping 27 matching lines...) Expand all
100 100
101 media::VideoCaptureCapability capability_; 101 media::VideoCaptureCapability capability_;
102 102
103 DISALLOW_COPY_AND_ASSIGN(PPB_VideoCapture_Impl); 103 DISALLOW_COPY_AND_ASSIGN(PPB_VideoCapture_Impl);
104 }; 104 };
105 105
106 } // namespace ppapi 106 } // namespace ppapi
107 } // namespace webkit 107 } // namespace webkit
108 108
109 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_CAPTURE_IMPL_H_ 109 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_CAPTURE_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_url_loader_impl.cc ('k') | webkit/plugins/ppapi/ppb_video_capture_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698