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/basictypes.h" |
| 11 #include "chrome/browser/signin/signin_header_helper.h" |
11 | 12 |
12 class Profile; | 13 class Profile; |
13 | 14 |
14 // The glue for Java-side implementation of AccountManagementScreenHelper. | 15 // The glue for Java-side implementation of AccountManagementScreenHelper. |
15 class AccountManagementScreenHelper { | 16 class AccountManagementScreenHelper { |
16 public: | 17 public: |
17 // Registers AccountManagementScreenHelper native methods through JNI. | 18 // Registers AccountManagementScreenHelper native methods through JNI. |
18 static bool Register(JNIEnv* env); | 19 static bool Register(JNIEnv* env); |
19 | 20 |
20 // Opens the account management screen. | 21 // Opens the account management screen. |
21 static void OpenAccountManagementScreen(Profile* profile); | 22 static void OpenAccountManagementScreen(Profile* profile, |
| 23 signin::GAIAServiceType service_type); |
22 | 24 |
23 private: | 25 private: |
24 DISALLOW_COPY_AND_ASSIGN(AccountManagementScreenHelper); | 26 DISALLOW_COPY_AND_ASSIGN(AccountManagementScreenHelper); |
25 }; | 27 }; |
26 | 28 |
27 #endif // CHROME_BROWSER_ANDROID_SIGNIN_ACCOUNT_MANAGEMENT_SCREEN_HELPER_H_ | 29 #endif // CHROME_BROWSER_ANDROID_SIGNIN_ACCOUNT_MANAGEMENT_SCREEN_HELPER_H_ |
OLD | NEW |