Upstream version 10.38.208.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / profiles / profile_android.h
index 0017b5b..8350afd 100644 (file)
@@ -23,6 +23,24 @@ class ProfileAndroid : public base::SupportsUserData::Data {
 
   static jobject GetLastUsedProfile(JNIEnv* env, jclass clazz);
 
+  // Return the original profile.
+  base::android::ScopedJavaLocalRef<jobject> GetOriginalProfile(
+      JNIEnv* env, jobject obj);
+
+  // Return the incognito profile.
+  //
+  // WARNING: This will create the OffTheRecord profile if it doesn't already
+  // exist. If this isn't what you want, you need to check
+  // HasOffTheRecordProfile() first.
+  base::android::ScopedJavaLocalRef<jobject> GetOffTheRecordProfile(
+      JNIEnv* env, jobject obj);
+
+  // Return whether an off the record profile exists.
+  jboolean HasOffTheRecordProfile(JNIEnv* env, jobject obj);
+
+  // Whether this profile is off the record.
+  jboolean IsOffTheRecord(JNIEnv* env, jobject obj);
+
   explicit ProfileAndroid(Profile* profile);
   virtual ~ProfileAndroid();