Lines Matching refs:handle
21 int handle = GenerateHandle();
22 DCHECK(!ContainsHandleImpl(handle));
24 resource_to_handle_[resource] = handle;
25 handle_to_resource_[handle] = resource;
29 return handle;
36 int handle = resource_to_handle_[resource];
37 DCHECK_EQ(resource, handle_to_resource_[handle]);
42 handle_to_resource_.erase(handle);
46 static int handle = 0;
47 return ++handle;
54 bool AutomationResourceTrackerImpl::ContainsHandleImpl(int handle) {
55 return handle_to_resource_.find(handle) != handle_to_resource_.end();
58 const void* AutomationResourceTrackerImpl::GetResourceImpl(int handle) {
59 HandleToResourceMap::const_iterator iter = handle_to_resource_.find(handle);