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

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

Issue 286353002: Move ClearBrowsingData from the ToolbarModel to the application (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove OpenClearBrowsingData declaration from tab model test. Created 6 years, 7 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 | Annotate | Revision Log
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_CHROMIUM_APPLICATION_H_ 5 #ifndef CHROME_BROWSER_ANDROID_CHROMIUM_APPLICATION_H_
6 #define CHROME_BROWSER_ANDROID_CHROMIUM_APPLICATION_H_ 6 #define CHROME_BROWSER_ANDROID_CHROMIUM_APPLICATION_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 11
12 namespace content {
13 class WebContents;
14 }
15
12 namespace chrome { 16 namespace chrome {
13 namespace android { 17 namespace android {
14 18
15 // Represents Android Chromium Application. This is a singleton and 19 // Represents Android Chromium Application. This is a singleton and
16 // provides functions to request browser side actions, such as opening a 20 // provides functions to request browser side actions, such as opening a
17 // settings page. 21 // settings page.
18 class ChromiumApplication { 22 class ChromiumApplication {
19 public: 23 public:
20 static bool RegisterBindings(JNIEnv* env); 24 static bool RegisterBindings(JNIEnv* env);
21 25
22 // Opens a protected content settings page, if available. 26 // Opens a protected content settings page, if available.
23 static void OpenProtectedContentSettings(); 27 static void OpenProtectedContentSettings();
24 28
25 // Opens the sync settings page. 29 // Opens the sync settings page.
26 static void ShowSyncSettings(); 30 static void ShowSyncSettings();
27 31
28 // Shows a dialog with the terms of service. 32 // Shows a dialog with the terms of service.
29 static void ShowTermsOfServiceDialog(); 33 static void ShowTermsOfServiceDialog();
30 34
35 // Open the clear browsing data UI.
36 static void OpenClearBrowsingData(content::WebContents* web_contents);
37
31 // Determines whether parental controls are enabled. 38 // Determines whether parental controls are enabled.
32 static bool AreParentalControlsEnabled(); 39 static bool AreParentalControlsEnabled();
33 40
34 private: 41 private:
35 ChromiumApplication() {} 42 ChromiumApplication() {}
36 ~ChromiumApplication() {} 43 ~ChromiumApplication() {}
37 44
38 DISALLOW_COPY_AND_ASSIGN(ChromiumApplication); 45 DISALLOW_COPY_AND_ASSIGN(ChromiumApplication);
39 }; 46 };
40 47
41 } // namespace android 48 } // namespace android
42 } // namespace chrome 49 } // namespace chrome
43 50
44 #endif // CHROME_BROWSER_ANDROID_CHROMIUM_APPLICATION_H_ 51 #endif // CHROME_BROWSER_ANDROID_CHROMIUM_APPLICATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698