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

Side by Side Diff: chrome/browser/banners/webapp_manifest_validator.h

Issue 2050933002: Upstream: Add additional checks before creating a WebAPK after clicking "Add to Homescreen" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_BANNERS_WEBAPP_MANIFEST_VALIDATOR_H_
6 #define CHROME_BROWSER_BANNERS_WEBAPP_MANIFEST_VALIDATOR_H_
7
8 #include "chrome/browser/banners/app_banner_debug_log.h"
9
10 namespace content {
11 struct Manifest;
12 }
13
14 namespace banners {
15 namespace webapp_manifest_validator {
16
17 // Returns whether a page with |manifest| can be launched as a fullscreen web
18 // app. If |manifest| prevents the page from launching as a fullscreen web app,
19 // sets |code| to the reason why.
20 bool IsWebappCapable(const content::Manifest& manifest,
21 OutputDeveloperMessageCode* code);
22
23 // Returns true if a page with |manifest| will make a good fullscreen web app.
24 // If not, sets |code| as to why.
pkotwicz 2016/06/09 01:39:38 I am not sold on this function name. Do you have a
25 bool IsManifestGoodForWebapp(const content::Manifest& manifest,
26 OutputDeveloperMessageCode* code);
27
28 } // namespace webapp_manifest_validator
29 } // namespace banners
30
31 #endif // CHROME_BROWSER_BANNERS_WEBAPP_MANIFEST_VALIDATOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/banners/app_banner_debug_log.cc ('k') | chrome/browser/banners/webapp_manifest_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698