CPluginManager::QueryInterface(const nsIID& iid, void** ptr)
CPluginInstancePeer::QueryInterface(const nsIID& iid, void** ptr)
CPluginManager::QueryInterface(const nsIID& iid, void** ptr) {                                                                            if (NULL == ptr) {                                                    return NS_ERROR_NULL_POINTER;                                            }        if (iid.Equals(NS_GET_IID(nsIPluginManager)) || iid.Equals(NS_GET_IID(nsIPluginManager2))) {        *ptr = (void*) ((nsIPluginManager2*)this);                                AddRef();                                                                    return NS_OK;                                                            }                                                                          if (iid.Equals(NS_GET_IID(nsIServiceManager))) {                                                                  *ptr = (void*) (nsIServiceManager*)this;                                                AddRef();                                                                    return NS_OK;                                                            }    if (iid.Equals(NS_GET_IID(nsIMemory))) {                                                                  *ptr = (void*) (nsIMemory*)this;                                                AddRef();                                                                    return NS_OK;                                                            }    if (iid.Equals(NS_GET_IID(nsISupports))) {        *ptr = (void*) this;                                AddRef();                                                                    return NS_OK;                                                            }                                                                          return NS_NOINTERFACE;                                                 }