OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PROXY_PLUGIN_RESOURCE_VAR_H_ | 5 #ifndef PPAPI_PROXY_PLUGIN_RESOURCE_VAR_H_ |
6 #define PPAPI_PROXY_PLUGIN_RESOURCE_VAR_H_ | 6 #define PPAPI_PROXY_PLUGIN_RESOURCE_VAR_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "ppapi/c/pp_resource.h" | 9 #include "ppapi/c/pp_resource.h" |
9 #include "ppapi/proxy/ppapi_proxy_export.h" | 10 #include "ppapi/proxy/ppapi_proxy_export.h" |
10 #include "ppapi/shared_impl/resource.h" | 11 #include "ppapi/shared_impl/resource.h" |
11 #include "ppapi/shared_impl/resource_var.h" | 12 #include "ppapi/shared_impl/resource_var.h" |
12 #include "ppapi/shared_impl/var.h" | 13 #include "ppapi/shared_impl/var.h" |
13 | 14 |
14 // Represents a resource Var, usable on the plugin side. | 15 // Represents a resource Var, usable on the plugin side. |
15 class PPAPI_PROXY_EXPORT PluginResourceVar : public ppapi::ResourceVar { | 16 class PPAPI_PROXY_EXPORT PluginResourceVar : public ppapi::ResourceVar { |
16 public: | 17 public: |
17 // Makes a null resource var. | 18 // Makes a null resource var. |
(...skipping 13 matching lines...) Expand all Loading... |
31 ~PluginResourceVar() override; | 32 ~PluginResourceVar() override; |
32 | 33 |
33 private: | 34 private: |
34 // If NULL, this represents the PP_Resource 0. | 35 // If NULL, this represents the PP_Resource 0. |
35 scoped_refptr<ppapi::Resource> resource_; | 36 scoped_refptr<ppapi::Resource> resource_; |
36 | 37 |
37 DISALLOW_COPY_AND_ASSIGN(PluginResourceVar); | 38 DISALLOW_COPY_AND_ASSIGN(PluginResourceVar); |
38 }; | 39 }; |
39 | 40 |
40 #endif | 41 #endif |
OLD | NEW |