| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_WEBAPK_CHROME_WEBAPK_HOST_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_WEBAPK_CHROME_WEBAPK_HOST_H_ |
| 6 #define CHROME_BROWSER_ANDROID_WEBAPK_CHROME_WEBAPK_HOST_H_ | 6 #define CHROME_BROWSER_ANDROID_WEBAPK_CHROME_WEBAPK_HOST_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 // ChromeWebApkHost is the C++ counterpart of org.chromium.chrome.browser's | 12 // ChromeWebApkHost is the C++ counterpart of org.chromium.chrome.browser's |
| 13 // ChromeWebApkHost in Java. | 13 // ChromeWebApkHost in Java. |
| 14 class ChromeWebApkHost { | 14 class ChromeWebApkHost { |
| 15 public: | 15 public: |
| 16 // Registers JNI hooks. | 16 // Registers JNI hooks. |
| 17 static bool Register(JNIEnv* env); | 17 static bool Register(JNIEnv* env); |
| 18 | 18 |
| 19 // Returns whether the "enalbe-webapk" is turned on. | 19 // Returns whether installing WebApk is possible either from "unknown sources" |
| 20 static bool AreWebApkEnabled(); | 20 // or Google Play. |
| 21 static bool CanInstallWebApk(); |
| 21 | 22 |
| 22 private: | 23 private: |
| 23 DISALLOW_IMPLICIT_CONSTRUCTORS(ChromeWebApkHost); | 24 DISALLOW_IMPLICIT_CONSTRUCTORS(ChromeWebApkHost); |
| 24 }; | 25 }; |
| 25 | 26 |
| 26 #endif // CHROME_BROWSER_ANDROID_WEBAPK_CHROME_WEBAPK_HOST_H_ | 27 #endif // CHROME_BROWSER_ANDROID_WEBAPK_CHROME_WEBAPK_HOST_H_ |
| OLD | NEW |