1 // Copyright 2012 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 import org.chromium.base.annotations.JNINamespace; 8 9 /** 10 * This class provides java side access to the native PathService. 11 */ 12 @JNINamespace("base::android") 13 public abstract class PathService { 14 15 // Must match the value of DIR_MODULE in base/base_paths.h! 16 public static final int DIR_MODULE = 3; 17 18 // Prevent instantiation. PathService()19 private PathService() {} 20 override(int what, String path)21 public static void override(int what, String path) { 22 nativeOverride(what, path); 23 } 24 nativeOverride(int what, String path)25 private static native void nativeOverride(int what, String path); 26 } 27