• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 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 
5 package org.chromium.base;
6 
7 /**
8  * This class provides JNI-related methods to the native library.
9  */
10 public class JNIUtils {
11     /**
12      * This returns a ClassLoader that is capable of loading Chromium Java code. Such a ClassLoader
13      * is needed for the few cases where the JNI mechanism is unable to automatically determine the
14      * appropriate ClassLoader instance.
15      */
16     @CalledByNative
getClassLoader()17     public static Object getClassLoader() {
18         return JNIUtils.class.getClassLoader();
19     }
20 }
21