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 package org.chromium.chrome.browser; | 5 package org.chromium.chrome.browser; |
6 | 6 |
7 import org.chromium.base.CalledByNative; | 7 import org.chromium.base.CalledByNative; |
8 import org.chromium.content.app.ContentApplication; | 8 import org.chromium.content.app.ContentApplication; |
9 | 9 |
10 /** | 10 /** |
11 * Basic application functionality that should be shared among all browser appli
cations that use | 11 * Basic application functionality that should be shared among all browser appli
cations that use |
12 * chrome layer. | 12 * chrome layer. |
13 */ | 13 */ |
14 public abstract class ChromiumApplication extends ContentApplication { | 14 public abstract class ChromiumApplication extends ContentApplication { |
15 @Override | |
16 public void onCreate() { | |
17 super.onCreate(); | |
18 ChromeVersionInfo.init(this); | |
19 } | |
20 | |
21 /** | 15 /** |
22 * Opens a protected content settings page, if available. | 16 * Opens a protected content settings page, if available. |
23 */ | 17 */ |
24 @CalledByNative | 18 @CalledByNative |
25 protected abstract void openProtectedContentSettings(); | 19 protected abstract void openProtectedContentSettings(); |
26 | 20 |
27 @CalledByNative | 21 @CalledByNative |
28 protected abstract void showSyncSettings(); | 22 protected abstract void showSyncSettings(); |
29 | 23 |
30 @CalledByNative | 24 @CalledByNative |
(...skipping 13 matching lines...) Expand all Loading... |
44 * @return Whether parental controls are enabled. Returning true will disab
le | 38 * @return Whether parental controls are enabled. Returning true will disab
le |
45 * incognito mode. | 39 * incognito mode. |
46 */ | 40 */ |
47 @CalledByNative | 41 @CalledByNative |
48 protected abstract boolean areParentalControlsEnabled(); | 42 protected abstract boolean areParentalControlsEnabled(); |
49 | 43 |
50 // TODO(yfriedman): This is too widely available. Plumb this through ChromeN
etworkDelegate | 44 // TODO(yfriedman): This is too widely available. Plumb this through ChromeN
etworkDelegate |
51 // instead. | 45 // instead. |
52 protected abstract PKCS11AuthenticationManager getPKCS11AuthenticationManage
r(); | 46 protected abstract PKCS11AuthenticationManager getPKCS11AuthenticationManage
r(); |
53 } | 47 } |
OLD | NEW |