OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.chrome.browser.profiles; | 5 package org.chromium.chrome.browser.profiles; |
6 | 6 |
7 import android.content.Context; | 7 import android.content.Context; |
8 | 8 |
9 import org.chromium.base.ApplicationStatus; | 9 import org.chromium.base.ApplicationStatus; |
10 import org.chromium.base.CalledByNative; | |
11 import org.chromium.base.VisibleForTesting; | 10 import org.chromium.base.VisibleForTesting; |
| 11 import org.chromium.base.annotations.CalledByNative; |
12 import org.chromium.chrome.browser.cookies.CookiesFetcher; | 12 import org.chromium.chrome.browser.cookies.CookiesFetcher; |
13 | 13 |
14 /** | 14 /** |
15 * Wrapper that allows passing a Profile reference around in the Java layer. | 15 * Wrapper that allows passing a Profile reference around in the Java layer. |
16 */ | 16 */ |
17 public class Profile { | 17 public class Profile { |
18 | 18 |
19 /** Whether this wrapper corresponds to an off the record Profile. */ | 19 /** Whether this wrapper corresponds to an off the record Profile. */ |
20 private final boolean mIsOffTheRecord; | 20 private final boolean mIsOffTheRecord; |
21 | 21 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 return mNativeProfileAndroid; | 84 return mNativeProfileAndroid; |
85 } | 85 } |
86 | 86 |
87 private static native Object nativeGetLastUsedProfile(); | 87 private static native Object nativeGetLastUsedProfile(); |
88 private native void nativeDestroyWhenAppropriate(long nativeProfileAndroid); | 88 private native void nativeDestroyWhenAppropriate(long nativeProfileAndroid); |
89 private native Object nativeGetOriginalProfile(long nativeProfileAndroid); | 89 private native Object nativeGetOriginalProfile(long nativeProfileAndroid); |
90 private native Object nativeGetOffTheRecordProfile(long nativeProfileAndroid
); | 90 private native Object nativeGetOffTheRecordProfile(long nativeProfileAndroid
); |
91 private native boolean nativeHasOffTheRecordProfile(long nativeProfileAndroi
d); | 91 private native boolean nativeHasOffTheRecordProfile(long nativeProfileAndroi
d); |
92 private native boolean nativeIsOffTheRecord(long nativeProfileAndroid); | 92 private native boolean nativeIsOffTheRecord(long nativeProfileAndroid); |
93 } | 93 } |
OLD | NEW |