Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / banners / app_banner_debug_log.h
blobdfcc1473f45152cc30a8b7aa045b556880fd6f05
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.
5 #ifndef CHROME_BROWSER_BANNERS_APP_BANNER_DEBUG_LOG_H_
6 #define CHROME_BROWSER_BANNERS_APP_BANNER_DEBUG_LOG_H_
8 #include <string>
10 namespace content {
11 class WebContents;
12 } // namespace content
14 namespace banners {
16 // Error message strings used to notify developers via the console.
17 extern const char kRendererRequestCancel[];
18 extern const char kManifestEmpty[];
19 extern const char kCannotDetermineBestIcon[];
20 extern const char kNoMatchingServiceWorker[];
21 extern const char kNoIconAvailable[];
22 extern const char kBannerAlreadyAdded[];
23 extern const char kUserNavigatedBeforeBannerShown[];
24 extern const char kStartURLNotValid[];
25 extern const char kManifestMissingNameOrShortName[];
26 extern const char kManifestMissingSuitableIcon[];
27 extern const char kNotServedFromSecureOrigin[];
28 extern const char kIgnoredNotSupportedOnAndroid[];
29 extern const char kIgnoredNoId[];
30 extern const char kIgnoredIdsDoNotMatch[];
32 // Logs a message to the main console if a banner could not be shown
33 // and the engagement checks have been bypassed.
34 void OutputDeveloperNotShownMessage(content::WebContents* web_contents,
35 const std::string& message);
37 // Logs a debugging message to the main console if the engagement checks have
38 // been bypassed.
39 void OutputDeveloperDebugMessage(content::WebContents* web_contents,
40 const std::string& message);
42 } // namespace banners
44 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_DEBUG_LOG_H_