Bug 1600671 - Improve doc for onLoadRequest. r=droeh

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Agi Sferro 2019-12-03 18:31:26 +00:00
Родитель a47186d18f
Коммит fcc373703f
1 изменённых файлов: 4 добавлений и 3 удалений

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

@ -3595,10 +3595,11 @@ public class GeckoSession implements Parcelable {
* @param session The GeckoSession that initiated the callback.
* @param request The {@link LoadRequest} containing the request details.
*
* @return A {@link GeckoResult} with a AllowOrDeny value which indicates whether
* @return A {@link GeckoResult} with a {@link AllowOrDeny} value which indicates whether
* or not the load was handled. If unhandled, Gecko will continue the
* load as normal. If handled (true value), Gecko will abandon the load.
* A null return value is interpreted as false (unhandled).
* load as normal. If handled (a {@link AllowOrDeny#DENY DENY} value), Gecko
* will abandon the load. A null return value is interpreted as
* {@link AllowOrDeny#ALLOW ALLOW} (unhandled).
*/
@UiThread
default @Nullable GeckoResult<AllowOrDeny> onLoadRequest(@NonNull GeckoSession session,