exception_filter.h 663 B

123456789101112131415161718192021
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef WEBLAYER_BROWSER_ANDROID_EXCEPTION_FILTER_H_
  5. #define WEBLAYER_BROWSER_ANDROID_EXCEPTION_FILTER_H_
  6. #include <jni.h>
  7. #include "base/android/scoped_java_ref.h"
  8. namespace weblayer {
  9. // Called when an uncaught exception is detected. A return value of true
  10. // indicates the exception is likely relevant to WebLayer.
  11. bool WebLayerJavaExceptionFilter(
  12. const base::android::JavaRef<jthrowable>& throwable);
  13. } // namespace weblayer
  14. #endif // WEBLAYER_BROWSER_ANDROID_EXCEPTION_FILTER_H_