| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_PREFERENCES_PREFERENCES_LAUNCHER_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_PREFERENCES_PREFERENCES_LAUNCHER_H_ |
| 6 #define CHROME_BROWSER_ANDROID_PREFERENCES_PREFERENCES_LAUNCHER_H_ | 6 #define CHROME_BROWSER_ANDROID_PREFERENCES_PREFERENCES_LAUNCHER_H_ |
| 7 | 7 |
| 8 #include <jni.h> | |
| 9 #include "base/macros.h" | 8 #include "base/macros.h" |
| 10 | 9 |
| 10 namespace content { |
| 11 class WebContents; |
| 12 } |
| 13 |
| 11 namespace chrome { | 14 namespace chrome { |
| 12 namespace android { | 15 namespace android { |
| 13 | 16 |
| 14 class PreferencesLauncher { | 17 class PreferencesLauncher { |
| 15 public: | 18 public: |
| 16 // Opens the autofill settings page. | 19 // Opens the autofill settings page. |
| 17 static void ShowAutofillSettings(); | 20 static void ShowAutofillSettings(); |
| 18 | 21 |
| 22 // Opens the password settings page. |
| 23 static void ShowPasswordSettings(); |
| 24 |
| 25 // Open the clear browsing data UI. |
| 26 static void OpenClearBrowsingData(content::WebContents* web_contents); |
| 27 |
| 19 private: | 28 private: |
| 20 PreferencesLauncher() {} | 29 PreferencesLauncher() {} |
| 21 ~PreferencesLauncher() {} | 30 ~PreferencesLauncher() {} |
| 22 | 31 |
| 23 DISALLOW_COPY_AND_ASSIGN(PreferencesLauncher); | 32 DISALLOW_COPY_AND_ASSIGN(PreferencesLauncher); |
| 24 }; | 33 }; |
| 25 | 34 |
| 26 } // namespace android | 35 } // namespace android |
| 27 } // namespace chrome | 36 } // namespace chrome |
| 28 | 37 |
| 29 #endif // CHROME_BROWSER_ANDROID_PREFERENCES_PREFERENCES_LAUNCHER_H_ | 38 #endif // CHROME_BROWSER_ANDROID_PREFERENCES_PREFERENCES_LAUNCHER_H_ |
| OLD | NEW |