| 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 #ifndef CHROME_BROWSER_PROFILES_PROFILE_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_ANDROID_H_ |
| 6 #define CHROME_BROWSER_PROFILES_PROFILE_ANDROID_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 base::android::ScopedJavaLocalRef<jobject> GetOffTheRecordProfile( | 38 base::android::ScopedJavaLocalRef<jobject> GetOffTheRecordProfile( |
| 39 JNIEnv* env, jobject obj); | 39 JNIEnv* env, jobject obj); |
| 40 | 40 |
| 41 // Return whether an off the record profile exists. | 41 // Return whether an off the record profile exists. |
| 42 jboolean HasOffTheRecordProfile(JNIEnv* env, jobject obj); | 42 jboolean HasOffTheRecordProfile(JNIEnv* env, jobject obj); |
| 43 | 43 |
| 44 // Whether this profile is off the record. | 44 // Whether this profile is off the record. |
| 45 jboolean IsOffTheRecord(JNIEnv* env, jobject obj); | 45 jboolean IsOffTheRecord(JNIEnv* env, jobject obj); |
| 46 | 46 |
| 47 explicit ProfileAndroid(Profile* profile); | 47 explicit ProfileAndroid(Profile* profile); |
| 48 virtual ~ProfileAndroid(); | 48 ~ProfileAndroid() override; |
| 49 | 49 |
| 50 base::android::ScopedJavaLocalRef<jobject> GetJavaObject(); | 50 base::android::ScopedJavaLocalRef<jobject> GetJavaObject(); |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 Profile* profile_; // weak | 53 Profile* profile_; // weak |
| 54 base::android::ScopedJavaGlobalRef<jobject> obj_; | 54 base::android::ScopedJavaGlobalRef<jobject> obj_; |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 #endif // CHROME_BROWSER_PROFILES_PROFILE_ANDROID_H_ | 57 #endif // CHROME_BROWSER_PROFILES_PROFILE_ANDROID_H_ |
| OLD | NEW |