Home | History | Annotate | Download | only in win

Lines Matching defs:ScopedComPtr

21 class ScopedComPtr : public scoped_refptr<Interface> {
23 // Utility template to prevent users of ScopedComPtr from calling AddRef
24 // and/or Release() without going through the ScopedComPtr class.
34 ScopedComPtr() {
37 explicit ScopedComPtr(Interface* p) : ParentClass(p) {
40 ScopedComPtr(const ScopedComPtr<Interface, interface_id>& p)
44 ~ScopedComPtr() {
47 COMPILE_ASSERT(sizeof(ScopedComPtr<Interface, interface_id>) ==
52 // ScopedComPtr instance.
131 ScopedComPtr<IUnknown> my_identity;
134 ScopedComPtr<IUnknown> other_identity;
144 // ScopedComPtr<IUnknown> p(Foo());
149 // by statically casting the ScopedComPtr instance to the wrapped interface