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

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

Issue 2248293002: Do not install WebAPKs with web manifests with invalid URL components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into webapk_installable_checker 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
Index: chrome/browser/android/webapk/webapk_web_manifest_checker.h
diff --git a/chrome/browser/android/webapk/webapk_web_manifest_checker.h b/chrome/browser/android/webapk/webapk_web_manifest_checker.h
new file mode 100644
index 0000000000000000000000000000000000000000..49b98d83d062015962b17c174fcb70ca84a11224
--- /dev/null
+++ b/chrome/browser/android/webapk/webapk_web_manifest_checker.h
@@ -0,0 +1,16 @@
+// 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_WEBAPK_WEB_MANIFEST_CHECKER_H_
+#define CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_WEB_MANIFEST_CHECKER_H_
+
+namespace content {
+struct Manifest;
+}
+
+// Returns whether the format of the URLs in the Web Manifest is WebAPK
+// compatible.
+bool AreWebManifestUrlsWebApkCompatible(const content::Manifest& manifest);
+
+#endif // CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_WEB_MANIFEST_CHECKER_H_

Powered by Google App Engine
This is Rietveld 408576698