summaryrefslogtreecommitdiff
path: root/base/android/java/src/org/chromium/base/PathService.java
blob: 9807c2e82a1a931414d3095635a8c9f4aa2a38ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2012 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.base;

import org.chromium.base.annotations.JNINamespace;

/**
 * This class provides java side access to the native PathService.
 */
@JNINamespace("base::android")
public abstract class PathService {

    // Must match the value of DIR_MODULE in base/base_paths.h!
    public static final int DIR_MODULE = 3;

    // Prevent instantiation.
    private PathService() {}

    public static void override(int what, String path) {
        nativeOverride(what, path);
    }

    private static native void nativeOverride(int what, String path);
}