Bug 1543331 - clang-format nsDNSService2.cpp r=dragana

Differential Revision: https://phabricator.services.mozilla.com/D63107

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Valentin Gosu 2020-02-17 22:20:55 +00:00
Родитель a5deb4a2c5
Коммит 541f162e0b
1 изменённых файлов: 41 добавлений и 34 удалений

Просмотреть файл

@ -873,8 +873,8 @@ nsresult nsDNSService::AsyncResolveInternal(
res, hostname, aTrrServer, type, aOriginAttributes, listener, flags, af);
if (!req) return NS_ERROR_OUT_OF_MEMORY;
rv = res->ResolveHost(req->mHost, req->mTrrServer, type, req->mOriginAttributes,
flags, af, req);
rv = res->ResolveHost(req->mHost, req->mTrrServer, type,
req->mOriginAttributes, flags, af, req);
req.forget(result);
return rv;
}
@ -909,8 +909,8 @@ nsresult nsDNSService::CancelAsyncResolveInternal(
uint16_t af =
(aType != RESOLVE_TYPE_DEFAULT) ? 0 : GetAFForLookup(hostname, aFlags);
res->CancelAsyncRequest(hostname, aTrrServer, aType, aOriginAttributes, aFlags,
af, aListener, aReason);
res->CancelAsyncRequest(hostname, aTrrServer, aType, aOriginAttributes,
aFlags, af, aListener, aReason);
return NS_OK;
}
@ -927,8 +927,8 @@ nsDNSService::AsyncResolve(const nsACString& aHostname, uint32_t flags,
}
}
return AsyncResolveInternal(aHostname, EmptyCString(), RESOLVE_TYPE_DEFAULT, flags,
listener, target_, attrs, result);
return AsyncResolveInternal(aHostname, EmptyCString(), RESOLVE_TYPE_DEFAULT,
flags, listener, target_, attrs, result);
}
NS_IMETHODIMP
@ -937,15 +937,17 @@ nsDNSService::AsyncResolveNative(const nsACString& aHostname, uint32_t flags,
nsIEventTarget* target_,
const OriginAttributes& aOriginAttributes,
nsICancelable** result) {
return AsyncResolveInternal(aHostname, EmptyCString(), RESOLVE_TYPE_DEFAULT, flags,
aListener, target_, aOriginAttributes, result);
return AsyncResolveInternal(aHostname, EmptyCString(), RESOLVE_TYPE_DEFAULT,
flags, aListener, target_, aOriginAttributes,
result);
}
NS_IMETHODIMP
nsDNSService::AsyncResolveWithTrrServer(const nsACString& aHostname,
const nsACString& aTrrServer, uint32_t flags, nsIDNSListener* listener,
nsIEventTarget* target_, JS::HandleValue aOriginAttributes, JSContext* aCx,
uint8_t aArgc, nsICancelable** result) {
nsDNSService::AsyncResolveWithTrrServer(
const nsACString& aHostname, const nsACString& aTrrServer, uint32_t flags,
nsIDNSListener* listener, nsIEventTarget* target_,
JS::HandleValue aOriginAttributes, JSContext* aCx, uint8_t aArgc,
nsICancelable** result) {
OriginAttributes attrs;
if (aArgc == 1) {
@ -954,8 +956,8 @@ nsDNSService::AsyncResolveWithTrrServer(const nsACString& aHostname,
}
}
return AsyncResolveInternal(aHostname, aTrrServer, RESOLVE_TYPE_DEFAULT, flags,
listener, target_, attrs, result);
return AsyncResolveInternal(aHostname, aTrrServer, RESOLVE_TYPE_DEFAULT,
flags, listener, target_, attrs, result);
}
NS_IMETHODIMP
@ -963,8 +965,9 @@ nsDNSService::AsyncResolveWithTrrServerNative(
const nsACString& aHostname, const nsACString& aTrrServer, uint32_t flags,
nsIDNSListener* aListener, nsIEventTarget* target_,
const OriginAttributes& aOriginAttributes, nsICancelable** result) {
return AsyncResolveInternal(aHostname, aTrrServer, RESOLVE_TYPE_DEFAULT, flags,
aListener, target_, aOriginAttributes, result);
return AsyncResolveInternal(aHostname, aTrrServer, RESOLVE_TYPE_DEFAULT,
flags, aListener, target_, aOriginAttributes,
result);
}
NS_IMETHODIMP
@ -982,8 +985,8 @@ nsDNSService::AsyncResolveByType(const nsACString& aHostname, uint16_t aType,
}
}
return AsyncResolveInternal(aHostname, EmptyCString(), aType, aFlags, aListener,
aTarget_, attrs, aResult);
return AsyncResolveInternal(aHostname, EmptyCString(), aType, aFlags,
aListener, aTarget_, attrs, aResult);
}
NS_IMETHODIMP
@ -991,8 +994,8 @@ nsDNSService::AsyncResolveByTypeNative(
const nsACString& aHostname, uint16_t aType, uint32_t aFlags,
nsIDNSListener* aListener, nsIEventTarget* aTarget_,
const OriginAttributes& aOriginAttributes, nsICancelable** aResult) {
return AsyncResolveInternal(aHostname, EmptyCString(), aType, aFlags, aListener,
aTarget_, aOriginAttributes, aResult);
return AsyncResolveInternal(aHostname, EmptyCString(), aType, aFlags,
aListener, aTarget_, aOriginAttributes, aResult);
}
NS_IMETHODIMP
@ -1008,22 +1011,25 @@ nsDNSService::CancelAsyncResolve(const nsACString& aHostname, uint32_t aFlags,
}
}
return CancelAsyncResolveInternal(aHostname, EmptyCString(), RESOLVE_TYPE_DEFAULT,
aFlags, aListener, aReason, attrs);
return CancelAsyncResolveInternal(aHostname, EmptyCString(),
RESOLVE_TYPE_DEFAULT, aFlags, aListener,
aReason, attrs);
}
NS_IMETHODIMP
nsDNSService::CancelAsyncResolveNative(
const nsACString& aHostname, uint32_t aFlags, nsIDNSListener* aListener,
nsresult aReason, const OriginAttributes& aOriginAttributes) {
return CancelAsyncResolveInternal(aHostname, EmptyCString(), RESOLVE_TYPE_DEFAULT,
aFlags, aListener, aReason, aOriginAttributes);
return CancelAsyncResolveInternal(aHostname, EmptyCString(),
RESOLVE_TYPE_DEFAULT, aFlags, aListener,
aReason, aOriginAttributes);
}
NS_IMETHODIMP
nsDNSService::CancelAsyncResolveWithTrrServer(const nsACString& aHostname,
const nsACString& aTrrServer, uint32_t aFlags, nsIDNSListener* aListener,
nsresult aReason, JS::HandleValue aOriginAttributes, JSContext* aCx, uint8_t aArgc) {
nsDNSService::CancelAsyncResolveWithTrrServer(
const nsACString& aHostname, const nsACString& aTrrServer, uint32_t aFlags,
nsIDNSListener* aListener, nsresult aReason,
JS::HandleValue aOriginAttributes, JSContext* aCx, uint8_t aArgc) {
OriginAttributes attrs;
if (aArgc == 1) {
@ -1042,7 +1048,8 @@ nsDNSService::CancelAsyncResolveWithTrrServerNative(
nsIDNSListener* aListener, nsresult aReason,
const OriginAttributes& aOriginAttributes) {
return CancelAsyncResolveInternal(aHostname, aTrrServer, RESOLVE_TYPE_DEFAULT,
aFlags, aListener, aReason, aOriginAttributes);
aFlags, aListener, aReason,
aOriginAttributes);
}
NS_IMETHODIMP
@ -1060,8 +1067,8 @@ nsDNSService::CancelAsyncResolveByType(const nsACString& aHostname,
}
}
return CancelAsyncResolveInternal(aHostname, EmptyCString(), aType, aFlags, aListener,
aReason, attrs);
return CancelAsyncResolveInternal(aHostname, EmptyCString(), aType, aFlags,
aListener, aReason, attrs);
}
NS_IMETHODIMP
@ -1069,8 +1076,8 @@ nsDNSService::CancelAsyncResolveByTypeNative(
const nsACString& aHostname, uint16_t aType, uint32_t aFlags,
nsIDNSListener* aListener, nsresult aReason,
const OriginAttributes& aOriginAttributes) {
return CancelAsyncResolveInternal(aHostname, EmptyCString(), aType, aFlags, aListener,
aReason, aOriginAttributes);
return CancelAsyncResolveInternal(aHostname, EmptyCString(), aType, aFlags,
aListener, aReason, aOriginAttributes);
}
NS_IMETHODIMP