CPluginInstancePeer::QueryInterface(const nsIID& iid, void** ptr) { if (NULL == ptr) { return NS_ERROR_NULL_POINTER; }  if (iid.Equals(kIPluginInstancePeerIID)) { *ptr = (void*) this; AddRef(); return NS_OK; } if (iid.Equals(kIPluginTagInfoIID) || iid.Equals(kISupportsIID)) { *ptr = (void*) ((nsIPluginTagInfo*)this); AddRef(); return NS_OK; } return NS_NOINTERFACE;
nsresult CPluginStreamPeer::QueryInterface(const nsIID& iid, void** ptr) { if (NULL == ptr) { return NS_ERROR_NULL_POINTER; } if (iid.Equals(kISeekablePluginStreamPeerIID))  { *ptr = (void*) ((nsISeekablePluginStreamPeer*)this); AddRef(); return NS_OK; } else if (iid.Equals(kIPluginStreamPeerIID) || iid.Equals(kISupportsIID)) { *ptr = (void*) ((nsIPluginStreamPeer*)this); AddRef(); return NS_OK; } return NS_NOINTERFACE;
CPluginInstancePeer::QueryInterface(const nsIID& iid, void** ptr) {                                                                            if (NULL == ptr) {                                                    return NS_ERROR_NULL_POINTER;                                            }                                                                            if (iid.Equals(kIPluginInstancePeerIID)) {        *ptr = (void*) this;                                                AddRef();                                                                    return NS_OK;                                                            }                                                                          if (iid.Equals(kIPluginTagInfoIID) || iid.Equals(kISupportsIID)) {                                              *ptr = (void*) ((nsIPluginTagInfo*)this);                                AddRef();                                                                    return NS_OK;                                                            }                                                                          return NS_NOINTERFACE;                                                 }