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

Side by Side Diff: ppapi/cpp/dev/video_capture_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, 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
« no previous file with comments | « ppapi/cpp/dev/video_capture_client_dev.cc ('k') | ppapi/cpp/dev/video_capture_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) 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_CPP_DEV_VIDEO_CAPTURE_DEV_H_ 5 #ifndef PPAPI_CPP_DEV_VIDEO_CAPTURE_DEV_H_
6 #define PPAPI_CPP_DEV_VIDEO_CAPTURE_DEV_H_ 6 #define PPAPI_CPP_DEV_VIDEO_CAPTURE_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/resource.h" 11 #include "ppapi/cpp/resource.h"
12 12
13 namespace pp { 13 namespace pp {
14 14
15 class CompletionCallback; 15 class CompletionCallback;
16 class DeviceRef_Dev; 16 class DeviceRef_Dev;
17 class Instance; 17 class InstanceHandle;
18 18
19 class VideoCapture_Dev : public Resource { 19 class VideoCapture_Dev : public Resource {
20 public: 20 public:
21 explicit VideoCapture_Dev(const Instance& instance); 21 explicit VideoCapture_Dev(const InstanceHandle& instance);
22 VideoCapture_Dev(PP_Resource resource); 22 VideoCapture_Dev(PP_Resource resource);
23 VideoCapture_Dev(const VideoCapture_Dev& other); 23 VideoCapture_Dev(const VideoCapture_Dev& other);
24 24
25 virtual ~VideoCapture_Dev(); 25 virtual ~VideoCapture_Dev();
26 26
27 VideoCapture_Dev& operator=(const VideoCapture_Dev& other); 27 VideoCapture_Dev& operator=(const VideoCapture_Dev& other);
28 28
29 // Returns true if the required interface is available. 29 // Returns true if the required interface is available.
30 static bool IsAvailable(); 30 static bool IsAvailable();
31 31
(...skipping 19 matching lines...) Expand all
51 // responsibility to delete it. 51 // responsibility to delete it.
52 static void OnEnumerateDevicesComplete(void* user_data, int32_t result); 52 static void OnEnumerateDevicesComplete(void* user_data, int32_t result);
53 53
54 // Not owned by this object. 54 // Not owned by this object.
55 EnumerateDevicesState* enum_state_; 55 EnumerateDevicesState* enum_state_;
56 }; 56 };
57 57
58 } // namespace pp 58 } // namespace pp
59 59
60 #endif // PPAPI_CPP_DEV_VIDEO_CAPTURE_DEV_H_ 60 #endif // PPAPI_CPP_DEV_VIDEO_CAPTURE_DEV_H_
OLDNEW
« no previous file with comments | « ppapi/cpp/dev/video_capture_client_dev.cc ('k') | ppapi/cpp/dev/video_capture_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698