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

Side by Side Diff: ppapi/cpp/dev/video_capture_client_dev.h

Issue 9381010: Convert resources to take an instance key instead of an Instance*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: USELESS PATCH TITLE Created 8 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/cpp/dev/url_util_dev.cc ('k') | ppapi/cpp/dev/video_capture_client_dev.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CPP_DEV_VIDEO_CAPTURE_CLIENT_DEV_H_ 5 #ifndef PPAPI_CPP_DEV_VIDEO_CAPTURE_CLIENT_DEV_H_
6 #define PPAPI_CPP_DEV_VIDEO_CAPTURE_CLIENT_DEV_H_ 6 #define PPAPI_CPP_DEV_VIDEO_CAPTURE_CLIENT_DEV_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ppapi/c/dev/pp_video_capture_dev.h" 10 #include "ppapi/c/dev/pp_video_capture_dev.h"
11 #include "ppapi/cpp/dev/buffer_dev.h" 11 #include "ppapi/cpp/dev/buffer_dev.h"
12 #include "ppapi/cpp/instance_handle.h"
12 #include "ppapi/cpp/resource.h" 13 #include "ppapi/cpp/resource.h"
13 14
14 namespace pp { 15 namespace pp {
15 16
16 class Instance;
17
18 class VideoCaptureClient_Dev { 17 class VideoCaptureClient_Dev {
19 public: 18 public:
20 explicit VideoCaptureClient_Dev(Instance* instance); 19 explicit VideoCaptureClient_Dev(const InstanceHandle& instance);
21 virtual ~VideoCaptureClient_Dev(); 20 virtual ~VideoCaptureClient_Dev();
22 21
23 virtual void OnDeviceInfo(PP_Resource video_capture, 22 virtual void OnDeviceInfo(PP_Resource video_capture,
24 const PP_VideoCaptureDeviceInfo_Dev& info, 23 const PP_VideoCaptureDeviceInfo_Dev& info,
25 const std::vector<Buffer_Dev>& buffers) = 0; 24 const std::vector<Buffer_Dev>& buffers) = 0;
26 virtual void OnStatus(PP_Resource video_capture, uint32_t status) = 0; 25 virtual void OnStatus(PP_Resource video_capture, uint32_t status) = 0;
27 virtual void OnError(PP_Resource video_capture, uint32_t error) = 0; 26 virtual void OnError(PP_Resource video_capture, uint32_t error) = 0;
28 virtual void OnBufferReady(PP_Resource video_capture, uint32_t buffer) = 0; 27 virtual void OnBufferReady(PP_Resource video_capture, uint32_t buffer) = 0;
29 28
30 private: 29 private:
31 Instance* instance_; 30 InstanceHandle instance_;
32 }; 31 };
33 32
34 } // namespace pp 33 } // namespace pp
35 34
36 #endif // PPAPI_CPP_DEV_VIDEO_CAPTURE_CLIENT_DEV_H_ 35 #endif // PPAPI_CPP_DEV_VIDEO_CAPTURE_CLIENT_DEV_H_
OLDNEW
« no previous file with comments | « ppapi/cpp/dev/url_util_dev.cc ('k') | ppapi/cpp/dev/video_capture_client_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698