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

Side by Side Diff: ppapi/thunk/ppb_video_capture_api.h

Issue 9595004: Coverity: Fix several pass-by-values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 PPAPI_THUNK_VIDEO_CAPTURE_API_H_ 5 #ifndef PPAPI_THUNK_VIDEO_CAPTURE_API_H_
6 #define PPAPI_THUNK_VIDEO_CAPTURE_API_H_ 6 #define PPAPI_THUNK_VIDEO_CAPTURE_API_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "ppapi/c/dev/ppb_video_capture_dev.h" 11 #include "ppapi/c/dev/ppb_video_capture_dev.h"
12 12
13 namespace ppapi { 13 namespace ppapi {
14 14
15 struct DeviceRefData; 15 struct DeviceRefData;
16 16
17 namespace thunk { 17 namespace thunk {
18 18
19 class PPB_VideoCapture_API { 19 class PPB_VideoCapture_API {
20 public: 20 public:
21 virtual ~PPB_VideoCapture_API() {} 21 virtual ~PPB_VideoCapture_API() {}
22 22
23 virtual int32_t EnumerateDevices(PP_Resource* devices, 23 virtual int32_t EnumerateDevices(PP_Resource* devices,
24 PP_CompletionCallback callback) = 0; 24 const PP_CompletionCallback& callback) = 0;
25 virtual int32_t Open(const std::string& device_id, 25 virtual int32_t Open(const std::string& device_id,
26 const PP_VideoCaptureDeviceInfo_Dev& requested_info, 26 const PP_VideoCaptureDeviceInfo_Dev& requested_info,
27 uint32_t buffer_count, 27 uint32_t buffer_count,
28 PP_CompletionCallback callback) = 0; 28 const PP_CompletionCallback& callback) = 0;
29 virtual int32_t StartCapture() = 0; 29 virtual int32_t StartCapture() = 0;
30 virtual int32_t ReuseBuffer(uint32_t buffer) = 0; 30 virtual int32_t ReuseBuffer(uint32_t buffer) = 0;
31 virtual int32_t StopCapture() = 0; 31 virtual int32_t StopCapture() = 0;
32 virtual void Close() = 0; 32 virtual void Close() = 0;
33 33
34 // For backward compatibility. 34 // For backward compatibility.
35 virtual int32_t StartCapture0_1( 35 virtual int32_t StartCapture0_1(
36 const PP_VideoCaptureDeviceInfo_Dev& requested_info, 36 const PP_VideoCaptureDeviceInfo_Dev& requested_info,
37 uint32_t buffer_count) = 0; 37 uint32_t buffer_count) = 0;
38 38
39 // This function is not exposed through the C API, but returns the internal 39 // This function is not exposed through the C API, but returns the internal
40 // data for easy proxying. 40 // data for easy proxying.
41 virtual const std::vector<DeviceRefData>& GetDeviceRefData() const = 0; 41 virtual const std::vector<DeviceRefData>& GetDeviceRefData() const = 0;
42 }; 42 };
43 43
44 } // namespace thunk 44 } // namespace thunk
45 } // namespace ppapi 45 } // namespace ppapi
46 46
47 #endif // PPAPI_THUNK_VIDEO_CAPTURE_API_H_ 47 #endif // PPAPI_THUNK_VIDEO_CAPTURE_API_H_
OLDNEW
« no previous file with comments | « ppapi/shared_impl/ppb_video_capture_shared.cc ('k') | webkit/plugins/ppapi/ppb_video_capture_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698