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_CHROME_APPLICATION_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_CHROME_APPLICATION_H_ |
6 #define CHROME_BROWSER_ANDROID_CHROME_APPLICATION_H_ | 6 #define CHROME_BROWSER_ANDROID_CHROME_APPLICATION_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 | 11 |
12 namespace content { | |
13 class WebContents; | |
14 } | |
15 | |
16 namespace chrome { | 12 namespace chrome { |
17 namespace android { | 13 namespace android { |
18 | 14 |
19 // Represents Android Chrome Application. This is a singleton and | 15 // Represents Android Chrome Application. This is a singleton and |
20 // provides functions to request browser side actions, such as opening a | 16 // provides functions to request browser side actions, such as opening a |
21 // settings page. | 17 // settings page. |
22 class ChromeApplication { | 18 class ChromeApplication { |
23 public: | 19 public: |
24 static bool RegisterBindings(JNIEnv* env); | 20 static bool RegisterBindings(JNIEnv* env); |
25 | 21 |
26 // Opens the password settings page. | |
27 static void ShowPasswordSettings(); | |
28 | |
29 // Open the clear browsing data UI. | |
30 static void OpenClearBrowsingData(content::WebContents* web_contents); | |
31 | |
32 // Determines whether parental controls are enabled. | |
33 static bool AreParentalControlsEnabled(); | |
34 | |
35 private: | 22 private: |
36 ChromeApplication() {} | 23 ChromeApplication() {} |
37 ~ChromeApplication() {} | 24 ~ChromeApplication() {} |
38 | 25 |
39 DISALLOW_COPY_AND_ASSIGN(ChromeApplication); | 26 DISALLOW_COPY_AND_ASSIGN(ChromeApplication); |
40 }; | 27 }; |
41 | 28 |
42 } // namespace android | 29 } // namespace android |
43 } // namespace chrome | 30 } // namespace chrome |
44 | 31 |
45 #endif // CHROME_BROWSER_ANDROID_CHROME_APPLICATION_H_ | 32 #endif // CHROME_BROWSER_ANDROID_CHROME_APPLICATION_H_ |
OLD | NEW |