Source code

Revision control

Copy as Markdown

Other Tools

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "EwsLanguageInteropFactory.h"
#include "EwsOAuth2CustomDetails.h"
NS_IMPL_ISUPPORTS(EwsLanguageInteropFactory, IEwsLanguageInteropFactory);
NS_IMETHODIMP EwsLanguageInteropFactory::CreateOAuth2Details(
const nsACString& identifier, IOAuth2CustomDetails** result) {
NS_ENSURE_ARG_POINTER(result);
RefPtr<EwsOAuth2CustomDetails> details;
nsresult rv =
EwsOAuth2CustomDetails::ForHostname(identifier, getter_AddRefs(details));
NS_ENSURE_SUCCESS(rv, rv);
details.forget(result);
return NS_OK;
}