OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_ACCOUNT_MANAGEMENT_SCREEN_HELPER_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_SIGNIN_ACCOUNT_MANAGEMENT_SCREEN_HELPER_H_ |
6 #define CHROME_BROWSER_ANDROID_SIGNIN_ACCOUNT_MANAGEMENT_SCREEN_HELPER_H_ | 6 #define CHROME_BROWSER_ANDROID_SIGNIN_ACCOUNT_MANAGEMENT_SCREEN_HELPER_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/macros.h" |
11 #include "components/signin/core/browser/signin_header_helper.h" | 11 #include "components/signin/core/browser/signin_header_helper.h" |
12 | 12 |
13 class Profile; | 13 class Profile; |
14 | 14 |
15 // The glue for Java-side implementation of AccountManagementScreenHelper. | 15 // The glue for Java-side implementation of AccountManagementScreenHelper. |
16 class AccountManagementScreenHelper { | 16 class AccountManagementScreenHelper { |
17 public: | 17 public: |
18 // Registers AccountManagementScreenHelper native methods through JNI. | 18 // Registers AccountManagementScreenHelper native methods through JNI. |
19 static bool Register(JNIEnv* env); | 19 static bool Register(JNIEnv* env); |
20 | 20 |
21 // Opens the account management screen. | 21 // Opens the account management screen. |
22 static void OpenAccountManagementScreen(Profile* profile, | 22 static void OpenAccountManagementScreen(Profile* profile, |
23 signin::GAIAServiceType service_type); | 23 signin::GAIAServiceType service_type); |
24 | 24 |
25 private: | 25 private: |
26 DISALLOW_COPY_AND_ASSIGN(AccountManagementScreenHelper); | 26 DISALLOW_COPY_AND_ASSIGN(AccountManagementScreenHelper); |
27 }; | 27 }; |
28 | 28 |
29 #endif // CHROME_BROWSER_ANDROID_SIGNIN_ACCOUNT_MANAGEMENT_SCREEN_HELPER_H_ | 29 #endif // CHROME_BROWSER_ANDROID_SIGNIN_ACCOUNT_MANAGEMENT_SCREEN_HELPER_H_ |
OLD | NEW |