| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 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_APP_BANNER_DEBUG_LOG_H_ | |
| 6 #define CHROME_BROWSER_BANNERS_APP_BANNER_DEBUG_LOG_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 namespace content { | |
| 11 class WebContents; | |
| 12 } // namespace content | |
| 13 | |
| 14 namespace banners { | |
| 15 | |
| 16 // Error message strings used to notify developers via the console. | |
| 17 | |
| 18 enum OutputDeveloperMessageCode { | |
| 19 kRendererRequestCancel, | |
| 20 kManifestEmpty, | |
| 21 kNoManifest, | |
| 22 kNoIconMatchingRequirements, | |
| 23 kCannotDownloadIcon, | |
| 24 kNoMatchingServiceWorker, | |
| 25 kNoIconAvailable, | |
| 26 kUserNavigatedBeforeBannerShown, | |
| 27 kStartURLNotValid, | |
| 28 kManifestDisplayStandaloneFullscreen, | |
| 29 kManifestMissingNameOrShortName, | |
| 30 kManifestMissingSuitableIcon, | |
| 31 kNotLoadedInMainFrame, | |
| 32 kNotServedFromSecureOrigin, | |
| 33 kIgnoredNotSupportedOnAndroid, | |
| 34 kIgnoredNoId, | |
| 35 kIgnoredIdsDoNotMatch, | |
| 36 }; | |
| 37 | |
| 38 // Logs a message to the main console if a banner could not be shown | |
| 39 // and the engagement checks have been bypassed. | |
| 40 void OutputDeveloperNotShownMessage(content::WebContents* web_contents, | |
| 41 OutputDeveloperMessageCode code, | |
| 42 bool is_debug_mode); | |
| 43 | |
| 44 // Logs a message to the main console if a banner could not be shown | |
| 45 // and the engagement checks have been bypassed. | |
| 46 void OutputDeveloperNotShownMessage(content::WebContents* web_contents, | |
| 47 OutputDeveloperMessageCode code, | |
| 48 const std::string& param, | |
| 49 bool is_debug_mode); | |
| 50 | |
| 51 } // namespace banners | |
| 52 | |
| 53 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_DEBUG_LOG_H_ | |
| OLD | NEW |