Lines Matching defs:HandleContext
41 // A HandleContext adds handle semantics to the Context object.
42 // Note that not every Context is a HandleContext - the Contexts we hand
43 // to our API customers for fondling are not. Also note that a HandleContext
45 // HandleContext has an allocation method taking a Allocator. To destroy
51 // the same context must do any arbitration themselves. A HandleContext is howerver
53 // The upshot is that you're safe using a HandleContext unless someone else is trying
56 class HandleContext : public HandleObject, public Context {
58 HandleContext(CSPAttachment &attach,
62 virtual ~HandleContext();
75 static void destroy(HandleContext *context, Allocator &alloc) throw()
76 { context->~HandleContext(); alloc.free(context); }
95 inline HandleContext &enterContext(CSSM_CC_HANDLE h)
97 return HandleObject::findAndLock<HandleContext>((CSSM_HANDLE)h, CSSM_ERRCODE_INVALID_CONTEXT_HANDLE);
102 // A Maker is a deluxe wrapper around Builder. It creates whole HandleContext
106 class HandleContext::Maker : public Context::Builder {