michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsNativeAppSupportBase.h" michael@0: michael@0: nsresult michael@0: NS_CreateNativeAppSupport( nsINativeAppSupport **aResult ) michael@0: { michael@0: nsNativeAppSupportBase* native = new nsNativeAppSupportBase(); michael@0: if (!native) return NS_ERROR_OUT_OF_MEMORY; michael@0: michael@0: *aResult = native; michael@0: NS_ADDREF( *aResult ); michael@0: michael@0: return NS_OK; michael@0: }