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