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_ANDROID_SIGNIN_SIGNIN_MANAGER_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_SIGNIN_SIGNIN_MANAGER_ANDROID_H_ |
6 #define CHROME_BROWSER_ANDROID_SIGNIN_SIGNIN_MANAGER_ANDROID_H_ | 6 #define CHROME_BROWSER_ANDROID_SIGNIN_SIGNIN_MANAGER_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 void LogInSignedInUser(JNIEnv* env, jobject obj); | 61 void LogInSignedInUser(JNIEnv* env, jobject obj); |
62 | 62 |
63 void ClearLastSignedInUser(JNIEnv* env, jobject obj); | 63 void ClearLastSignedInUser(JNIEnv* env, jobject obj); |
64 | 64 |
65 jboolean IsSigninAllowedByPolicy(JNIEnv* env, jobject obj); | 65 jboolean IsSigninAllowedByPolicy(JNIEnv* env, jobject obj); |
66 | 66 |
67 jboolean IsSignedInOnNative(JNIEnv* env, jobject obj); | 67 jboolean IsSignedInOnNative(JNIEnv* env, jobject obj); |
68 | 68 |
69 private: | 69 private: |
70 virtual ~SigninManagerAndroid(); | 70 ~SigninManagerAndroid() override; |
71 | 71 |
72 #if defined(ENABLE_CONFIGURATION_POLICY) | 72 #if defined(ENABLE_CONFIGURATION_POLICY) |
73 void OnPolicyRegisterDone(const std::string& dm_token, | 73 void OnPolicyRegisterDone(const std::string& dm_token, |
74 const std::string& client_id); | 74 const std::string& client_id); |
75 void OnPolicyFetchDone(bool success); | 75 void OnPolicyFetchDone(bool success); |
76 #endif | 76 #endif |
77 | 77 |
78 void OnBrowsingDataRemoverDone(); | 78 void OnBrowsingDataRemoverDone(); |
79 | 79 |
80 void ClearLastSignedInUser(); | 80 void ClearLastSignedInUser(); |
(...skipping 25 matching lines...) Expand all Loading... |
106 scoped_ptr<MergeSessionHelper> merge_session_helper_; | 106 scoped_ptr<MergeSessionHelper> merge_session_helper_; |
107 | 107 |
108 PrefChangeRegistrar pref_change_registrar_; | 108 PrefChangeRegistrar pref_change_registrar_; |
109 | 109 |
110 base::WeakPtrFactory<SigninManagerAndroid> weak_factory_; | 110 base::WeakPtrFactory<SigninManagerAndroid> weak_factory_; |
111 | 111 |
112 DISALLOW_COPY_AND_ASSIGN(SigninManagerAndroid); | 112 DISALLOW_COPY_AND_ASSIGN(SigninManagerAndroid); |
113 }; | 113 }; |
114 | 114 |
115 #endif // CHROME_BROWSER_ANDROID_SIGNIN_SIGNIN_MANAGER_ANDROID_H_ | 115 #endif // CHROME_BROWSER_ANDROID_SIGNIN_SIGNIN_MANAGER_ANDROID_H_ |
OLD | NEW |