OLD | NEW |
---|---|
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 28 matching lines...) Expand all Loading... | |
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_NOT_SUPPORTED_FOR_WEBAPK, | 47 URL_NOT_SUPPORTED_FOR_WEBAPK, |
48 IN_INCOGNITO, | 48 IN_INCOGNITO, |
49 NO_SERVICE_WORKER_FETCH_HANDLER, | |
dominickn
2017/03/16 06:21:56
Nit: SITE_NOT_OFFLINE_CAPABLE ? I think it's best
piotrs
2017/03/17 02:21:37
Done.
| |
49 MAX_ERROR_CODE, | 50 MAX_ERROR_CODE, |
dominickn
2017/03/16 06:21:56
You'll need to edit the (giant giant) tools/metric
piotrs
2017/03/17 02:21:37
Thanks, missed that :) Done.
| |
50 }; | 51 }; |
51 | 52 |
52 // Logs a message associated with |code| with a parameter |param| to the | 53 // Logs a message associated with |code| with a parameter |param| to the |
53 // devtools console attached to |web_contents|. Does nothing if |web_contents| | 54 // devtools console attached to |web_contents|. Does nothing if |web_contents| |
54 // is nullptr. | 55 // is nullptr. |
55 void LogErrorToConsole(content::WebContents* web_contents, | 56 void LogErrorToConsole(content::WebContents* web_contents, |
56 InstallableStatusCode code, | 57 InstallableStatusCode code, |
57 const std::string& param); | 58 const std::string& param); |
58 | 59 |
59 #endif // CHROME_BROWSER_INSTALLABLE_INSTALLABLE_LOGGING_H_ | 60 #endif // CHROME_BROWSER_INSTALLABLE_INSTALLABLE_LOGGING_H_ |
OLD | NEW |