summaryrefslogtreecommitdiffstats
path: root/chrome/browser/android/chromium_application.h
blob: 6a0ba6da51c1a81c4961843aa883f40c37360091 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_ANDROID_CHROMIUM_APPLICATION_H_
#define CHROME_BROWSER_ANDROID_CHROMIUM_APPLICATION_H_

#include <jni.h>

#include "base/basictypes.h"

namespace content {
class WebContents;
}

namespace chrome {
namespace android {

// Represents Android Chromium Application. This is a singleton and
// provides functions to request browser side actions, such as opening a
// settings page.
class ChromiumApplication {
 public:
  static bool RegisterBindings(JNIEnv* env);

  // Opens a protected content settings page, if available.
  static void OpenProtectedContentSettings();

  // Opens the sync settings page.
  static void ShowSyncSettings();

  // Shows a dialog with the terms of service.
  static void ShowTermsOfServiceDialog();

  // Open the clear browsing data UI.
  static void OpenClearBrowsingData(content::WebContents* web_contents);

  // Determines whether parental controls are enabled.
  static bool AreParentalControlsEnabled();

 private:
  ChromiumApplication() {}
  ~ChromiumApplication() {}

  DISALLOW_COPY_AND_ASSIGN(ChromiumApplication);
};

}  // namespace android
}  // namespace chrome

#endif  // CHROME_BROWSER_ANDROID_CHROMIUM_APPLICATION_H_