5 #ifndef PPAPI_CPP_RESOURCE_H_
6 #define PPAPI_CPP_RESOURCE_H_
8 #include "ppapi/c/pp_resource.h"
9 #include "ppapi/cpp/instance_handle.h"
10 #include "ppapi/cpp/pass_ref.h"
45 bool is_null()
const {
return !pp_resource_; }
102 return !(lhs == rhs);
105 #endif // PPAPI_CPP_RESOURCE_H_
void PassRefFromConstructor(PP_Resource resource)
Resource()
The default constructor.
bool operator==(const pp::Resource &lhs, const pp::Resource &rhs)
Resource & operator=(const Resource &other)
virtual ~Resource()
Destructor.
PP_Resource pp_resource() const
bool operator!=(const pp::Resource &lhs, const pp::Resource &rhs)
A generic type used for passing data types between the module and the page.
A reference counted module resource.
void Clear()
Sets this resource to null. This releases ownership of the resource.