blob: 65518e3b652f0efddd6017f22eae03ac0b287429 [file] [log] [blame]
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_CONSTANTS_H_
#define CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_CONSTANTS_H_
#include "base/time/time.h"
extern const char kPushMessagingGcmEndpoint[];
// Endpoint to replace the GcmEndpoint in the future through feature rollout.
extern const char kPushMessagingWebpushEndpoint[];
// The GCM endpoint to use on non-Stable channels.
extern const char kPushMessagingStagingGcmEndpoint[];
// Endpoint to replace the StagingGcmEndpoint in the future through feature rollout.
extern const char kPushMessagingStagingWebpushEndpoint[];
// The tag of the notification that will be automatically shown if a webapp
// receives a push message then fails to show a notification.
extern const char kPushMessagingForcedNotificationTag[];
// Chrome decided cadence on subscription refreshes. According to the standards:
// https://w3c.github.io/push-api/#dfn-subscription-expiration-time it is
// optional and set by the browser.
inline constexpr base::TimeDelta kPushSubscriptionExpirationPeriodTimeDelta =
base::Days(90);
// TimeDelta for subscription refreshes to keep old subscriptions alive
inline constexpr base::TimeDelta kPushSubscriptionRefreshTimeDelta =
base::Minutes(2);
#endif // CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_CONSTANTS_H_