blob: 318a5b3b37647d5a683585b4cac6cd274aa64807 [file] [log] [blame]
// Copyright 2019 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_SHARING_SHARING_CONSTANTS_H_
#define CHROME_BROWSER_SHARING_SHARING_CONSTANTS_H_
#include "base/time/time.h"
#include "net/base/backoff_entry.h"
// InstanceID scope for Google Cloud Messaging to get GCM enabled token.
extern const char kFCMScope[];
// Sender ID linked to GCM messages for Sharing.
extern const char kSharingFCMAppID[];
// Amount of time before an ack message is expired.
extern const base::TimeDelta kAckTimeToLive;
// Amount of offline time before decice is consider expired.
extern const base::TimeDelta kDeviceExpiration;
// Amount of time before FCM registration should happen again.
extern const base::TimeDelta kRegistrationExpiration;
// Amount of time before a message is considered timeout if no ack is received.
extern const base::TimeDelta kSendMessageTimeout;
// Backoff policy for registration retry.
extern const net::BackoffEntry::Policy kRetryBackoffPolicy;
// Time limit for message expiration.
extern const base::TimeDelta kSharingMessageTTL;
// Maximum number of devices to be shown in dialog and context menu.
extern const int kMaxDevicesShown;
// Command id for first device shown in submenu.
extern const int kSubMenuFirstDeviceCommandId;
// Command id for last device shown in submenu.
extern const int kSubMenuLastDeviceCommandId;
// The feature name prefix used in metrics name.
enum class SharingFeatureName {
kUnknown,
kClickToCall,
kSharedClipboard,
kMaxValue = kSharedClipboard,
};
#endif // CHROME_BROWSER_SHARING_SHARING_CONSTANTS_H_