Lines Matching refs:ScopedComPtr
20 class ScopedComPtr : public scoped_refptr<Interface> {
22 // Utility template to prevent users of ScopedComPtr from calling AddRef
23 // and/or Release() without going through the ScopedComPtr class.
33 ScopedComPtr() {
36 explicit ScopedComPtr(Interface* p) : ParentClass(p) {
39 ScopedComPtr(const ScopedComPtr<Interface, interface_id>& p)
43 ~ScopedComPtr() {
46 COMPILE_ASSERT(sizeof(ScopedComPtr<Interface, interface_id>) ==
51 // ScopedComPtr instance.
130 ScopedComPtr<IUnknown> my_identity;
133 ScopedComPtr<IUnknown> other_identity;
143 // ScopedComPtr<IUnknown> p(Foo());
148 // by statically casting the ScopedComPtr instance to the wrapped interface