blob: 72b8bd2b03f74208d0036d0c18eb788ee3a500b3 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.support_lib_callback_glue;
import org.chromium.android_webview.AwContentsClient.AwWebResourceError;
import org.chromium.support_lib_boundary.WebResourceErrorBoundaryInterface;
/**
* Adapter between {@link AwWebResourceError} and {@link WebResourceErrorBoundaryInterface}.
*/
public class SupportLibWebResourceError implements WebResourceErrorBoundaryInterface {
private AwWebResourceError mError;
public SupportLibWebResourceError(AwWebResourceError error) {
mError = error;
}
public AwWebResourceError getAwWebResourceError() {
return mError;
}
@Override
public int getErrorCode() {
return mError.errorCode;
}
@Override
public CharSequence getDescription() {
return mError.description;
}
};