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

Side by Side Diff: chrome/browser/android/webapk/chrome_webapk_host.h

Issue 2675803004: Fall back to shortcut A2HS when Phonesky is out of date or unavailable. (Closed)
Patch Set: Rebase. Created 3 years, 10 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
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/browser/android/banners/app_banner_manager_android.cc ('k') | chrome/browser/android/webapk/chrome_webapk_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698