Home | History | Annotate | Download | only in thunk

Lines Matching refs:resource

16 #include "ppapi/shared_impl/resource.h"
32 // If this fails, then the instance or resource ID supplied was invalid.
40 // Resource member functions: EnterResource
41 // Automatically interprets the given PP_Resource as a resource ID and sets
42 // up the resource object for you.
90 explicit EnterBase(PP_Resource resource);
92 EnterBase(PP_Resource resource, const PP_CompletionCallback& callback);
119 // Helper function to return a Resource from a PP_Resource. Having this
122 static Resource* GetResource(PP_Resource resource);
124 // Helper function to return a Resource from a PP_Instance and singleton
125 // resource identifier.
126 static Resource* GetSingletonResource(PP_Instance instance,
131 // Does error handling associated with entering a resource. The resource_base
135 // both resource_base and object is that we can differentiate "bad resource
136 // ID" from "valid resource ID not of the correct type."
141 Resource* resource_base,
150 // For Enter objects that need a resource, we'll store a pointer to the
151 // Resource object so that we don't need to look it up more than once. For
152 // Enter objects with no resource, this will be NULL.
153 Resource* resource_;
180 EnterResource(PP_Resource resource, bool report_error)
181 : EnterBase(resource) {
182 Init(resource, report_error);
184 EnterResource(PP_Resource resource, const PP_CompletionCallback& callback,
186 : EnterBase(resource, callback) {
187 Init(resource, report_error);
192 Resource* resource() { return resource_; }
195 void Init(PP_Resource resource, bool report_error) {
200 // Validate the resource (note, if both are wrong, we will return
202 SetStateForResourceError(resource, resource_, object_, report_error);
216 EnterResourceNoLock(PP_Resource resource, bool report_error)
217 : EnterResource<ResourceT, false>(resource, report_error) {
219 EnterResourceNoLock(PP_Resource resource,
222 : EnterResource<ResourceT, false>(resource, callback, report_error) {