summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/push_messaging/push_messaging_constants.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/push_messaging/push_messaging_constants.h')
-rw-r--r--chromium/chrome/browser/push_messaging/push_messaging_constants.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/chromium/chrome/browser/push_messaging/push_messaging_constants.h b/chromium/chrome/browser/push_messaging/push_messaging_constants.h
new file mode 100644
index 00000000000..cf0480a5f14
--- /dev/null
+++ b/chromium/chrome/browser/push_messaging/push_messaging_constants.h
@@ -0,0 +1,25 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// 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[];
+
+// 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.
+constexpr base::TimeDelta kPushSubscriptionExpirationPeriodTimeDelta =
+ base::Days(90);
+
+// TimeDelta for subscription refreshes to keep old subscriptions alive
+constexpr base::TimeDelta kPushSubscriptionRefreshTimeDelta = base::Minutes(2);
+
+#endif // CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_CONSTANTS_H_