Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / web_resource / notification_promo_helper.h
blob4e1cf3dd8d5b80051163803352be5b63447ec149
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_WEB_RESOURCE_NOTIFICATION_PROMO_HELPER_H_
6 #define CHROME_BROWSER_WEB_RESOURCE_NOTIFICATION_PROMO_HELPER_H_
8 #include "components/web_resource/notification_promo.h"
10 // Helpers for NewTabPageHandler.
11 namespace web_resource {
13 // Mark the promo as closed when the user dismisses it.
14 void HandleNotificationPromoClosed(NotificationPromo::PromoType promo_type);
16 // Mark the promo has having been viewed. This returns true if views
17 // exceeds the maximum allowed.
18 bool HandleNotificationPromoViewed(NotificationPromo::PromoType promo_type);
20 } // namespace web_resource
22 #endif // CHROME_BROWSER_WEB_RESOURCE_NOTIFICATION_PROMO_HELPER_H_