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

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

Issue 2791983003: Remove untrusted sources installation flow. (Closed)
Patch Set: Remove untrusted sources installation flow. Created 3 years, 8 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"
(...skipping 11 matching lines...) Expand all
22 MAX = 5 22 MAX = 5
23 }; 23 };
24 24
25 // ChromeWebApkHost is the C++ counterpart of org.chromium.chrome.browser's 25 // ChromeWebApkHost is the C++ counterpart of org.chromium.chrome.browser's
26 // ChromeWebApkHost in Java. 26 // ChromeWebApkHost in Java.
27 class ChromeWebApkHost { 27 class ChromeWebApkHost {
28 public: 28 public:
29 // Registers JNI hooks. 29 // Registers JNI hooks.
30 static bool Register(JNIEnv* env); 30 static bool Register(JNIEnv* env);
31 31
32 // Returns whether installing WebApk is possible either from "unknown sources" 32 // Returns whether installing WebApk is possible.
33 // or Google Play.
34 static bool CanInstallWebApk(); 33 static bool CanInstallWebApk();
35 34
36 // Returns the state of installing a WebAPK from Google Play. 35 // Returns the state of installing a WebAPK from Google Play.
37 static GooglePlayInstallState GetGooglePlayInstallState(); 36 static GooglePlayInstallState GetGooglePlayInstallState();
38 37
39 private: 38 private:
40 DISALLOW_IMPLICIT_CONSTRUCTORS(ChromeWebApkHost); 39 DISALLOW_IMPLICIT_CONSTRUCTORS(ChromeWebApkHost);
41 }; 40 };
42 41
43 #endif // CHROME_BROWSER_ANDROID_WEBAPK_CHROME_WEBAPK_HOST_H_ 42 #endif // CHROME_BROWSER_ANDROID_WEBAPK_CHROME_WEBAPK_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/shortcut_helper.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