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

Unified Diff: chrome/browser/android/webapk/chrome_webapk_host.h

Issue 2259093003: Move native "enable-webapk" check to ChromeWebApkHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile error. Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/webapk/chrome_webapk_host.h
diff --git a/chrome/browser/android/webapk/chrome_webapk_host.h b/chrome/browser/android/webapk/chrome_webapk_host.h
new file mode 100644
index 0000000000000000000000000000000000000000..abc2bc7cbbb8b7eafecbf1b081a2dd8fda79dab7
--- /dev/null
+++ b/chrome/browser/android/webapk/chrome_webapk_host.h
@@ -0,0 +1,21 @@
+// Copyright 2016 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_WEBAPK_CHROME_WEBAPK_HOST_H_
+#define CHROME_BROWSER_ANDROID_WEBAPK_CHROME_WEBAPK_HOST_H_
+
+#include "base/macros.h"
+
+// ChromeWebApkHost is the C++ counterpart of org.chromium.chrome.browser's
+// ChromeWebApkHost in Java.
+class ChromeWebApkHost {
+ public:
+ // Returns whether the "enalbe-webapk" is turned on.
+ static bool AreWebApkEnabled();
+
+ private:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(ChromeWebApkHost);
+};
+
+#endif // CHROME_BROWSER_ANDROID_WEBAPK_CHROME_WEBAPK_HOST_H_
« 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