Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: chrome/browser/android/chrome_application.h

Issue 2768023002: Move remaining @CalledByNative methods out of ChromeApplication. (Closed)
Patch Set: Use DISALLOW_IMPLICIT_CONSTRUCTORS instead of DISALLOW_COPY_AND_ASSIGN Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/android/chrome_application.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/android/chrome_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698