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

Side by Side Diff: chrome/browser/installable/installable_logging.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 'webapk_updater_non_installable' 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 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_INSTALLABLE_INSTALLABLE_LOGGING_H_ 5 #ifndef CHROME_BROWSER_INSTALLABLE_INSTALLABLE_LOGGING_H_
6 #define CHROME_BROWSER_INSTALLABLE_INSTALLABLE_LOGGING_H_ 6 #define CHROME_BROWSER_INSTALLABLE_INSTALLABLE_LOGGING_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace content { 10 namespace content {
(...skipping 26 matching lines...) Expand all
37 NO_ID_SPECIFIED, 37 NO_ID_SPECIFIED,
38 IDS_DO_NOT_MATCH, 38 IDS_DO_NOT_MATCH,
39 ALREADY_INSTALLED, 39 ALREADY_INSTALLED,
40 INSUFFICIENT_ENGAGEMENT, 40 INSUFFICIENT_ENGAGEMENT,
41 PACKAGE_NAME_OR_START_URL_EMPTY, 41 PACKAGE_NAME_OR_START_URL_EMPTY,
42 PREVIOUSLY_BLOCKED, 42 PREVIOUSLY_BLOCKED,
43 PREVIOUSLY_IGNORED, 43 PREVIOUSLY_IGNORED,
44 SHOWING_NATIVE_APP_BANNER, 44 SHOWING_NATIVE_APP_BANNER,
45 SHOWING_WEB_APP_BANNER, 45 SHOWING_WEB_APP_BANNER,
46 FAILED_TO_CREATE_BANNER, 46 FAILED_TO_CREATE_BANNER,
47 URL_USERNAME_AND_PASSWORD_NOT_SUPPORTED_FOR_WEBAPK,
dominickn 2016/08/24 03:27:11 I think you can just have one error here - URL_NOT
pkotwicz 2016/08/24 15:04:56 I now use just one error code. You are right that
48 URL_PORT_NOT_SUPPORTED_FOR_WEBAPK,
47 MAX_ERROR_CODE, 49 MAX_ERROR_CODE,
48 }; 50 };
49 51
50 // Logs a message associated with |code| with a parameter |param| to the 52 // Logs a message associated with |code| with a parameter |param| to the
51 // devtools console attached to |web_contents|. Does nothing if |web_contents| 53 // devtools console attached to |web_contents|. Does nothing if |web_contents|
52 // is nullptr. 54 // is nullptr.
53 void LogErrorToConsole(content::WebContents* web_contents, 55 void LogErrorToConsole(content::WebContents* web_contents,
54 InstallableStatusCode code, 56 InstallableStatusCode code,
55 const std::string& param); 57 const std::string& param);
56 58
57 #endif // CHROME_BROWSER_INSTALLABLE_INSTALLABLE_LOGGING_H_ 59 #endif // CHROME_BROWSER_INSTALLABLE_INSTALLABLE_LOGGING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698