This source file includes following definitions.
- host_resource_
- MakeInstanceOnly
- SetHostResource
#include "ppapi/shared_impl/host_resource.h"
namespace ppapi {
HostResource::HostResource() : instance_(0), host_resource_(0) {}
HostResource HostResource::MakeInstanceOnly(PP_Instance instance) {
HostResource resource;
resource.SetHostResource(instance, 0);
return resource;
}
void HostResource::SetHostResource(PP_Instance instance, PP_Resource resource) {
instance_ = instance;
host_resource_ = resource;
}
}