summaryrefslogtreecommitdiff
path: root/chromium/components/gcm_driver/features.h
blob: 0c11d37fb349820bd4bb6ebe6dea3eca618de47b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_GCM_DRIVER_FEATURES_H_
#define COMPONENTS_GCM_DRIVER_FEATURES_H_

#include "base/feature_list.h"

namespace base {
class TimeDelta;
}

namespace gcm {

namespace features {

BASE_DECLARE_FEATURE(kInvalidateTokenFeature);
BASE_DECLARE_FEATURE(kGCMIncludeAccountTokensInCheckinRequest);
BASE_DECLARE_FEATURE(kGCMReportAccountTokenChanges);
extern const char kParamNameTokenInvalidationPeriodDays[];

// The period after which the GCM token becomes stale.
base::TimeDelta GetTokenInvalidationInterval();

}  // namespace features

}  // namespace gcm

#endif  // COMPONENTS_GCM_DRIVER_FEATURES_H_