Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/profiles/Profile.java

Issue 1263053002: Move JNI annotations to annotations package. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698