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

Side by Side Diff: ppapi/cpp/dev/device_ref_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/buffer_dev.cc ('k') | ppapi/cpp/dev/device_ref_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_DEVICE_REF_DEV_H_ 5 #ifndef PPAPI_CPP_DEV_DEVICE_REF_DEV_H_
6 #define PPAPI_CPP_DEV_DEVICE_REF_DEV_H_ 6 #define PPAPI_CPP_DEV_DEVICE_REF_DEV_H_
7 7
8 #include "ppapi/c/dev/ppb_device_ref_dev.h" 8 #include "ppapi/c/dev/ppb_device_ref_dev.h"
9 #include "ppapi/cpp/resource.h" 9 #include "ppapi/cpp/resource.h"
10 #include "ppapi/cpp/var.h" 10 #include "ppapi/cpp/var.h"
11 11
12 namespace pp { 12 namespace pp {
13 13
14 class DeviceRef_Dev : public Resource { 14 class DeviceRef_Dev : public Resource {
15 public: 15 public:
16 DeviceRef_Dev(); 16 DeviceRef_Dev();
17 17
18 explicit DeviceRef_Dev(PP_Resource resource); 18 explicit DeviceRef_Dev(PP_Resource resource);
19 19
20 struct PassRef {};
21
22 DeviceRef_Dev(PassRef, PP_Resource resource); 20 DeviceRef_Dev(PassRef, PP_Resource resource);
23 21
24 DeviceRef_Dev(const DeviceRef_Dev& other); 22 DeviceRef_Dev(const DeviceRef_Dev& other);
25 23
26 virtual ~DeviceRef_Dev(); 24 virtual ~DeviceRef_Dev();
27 25
28 PP_DeviceType_Dev GetType() const; 26 PP_DeviceType_Dev GetType() const;
29 27
30 Var GetName() const; 28 Var GetName() const;
31 }; 29 };
32 30
33 } // namespace pp 31 } // namespace pp
34 32
35 #endif // PPAPI_CPP_DEV_DEVICE_REF_DEV_H_ 33 #endif // PPAPI_CPP_DEV_DEVICE_REF_DEV_H_
OLDNEW
« no previous file with comments | « ppapi/cpp/dev/buffer_dev.cc ('k') | ppapi/cpp/dev/device_ref_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698