features.h 667 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2018 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.
  4. #ifndef COMPONENTS_GCM_DRIVER_FEATURES_H_
  5. #define COMPONENTS_GCM_DRIVER_FEATURES_H_
  6. #include "base/feature_list.h"
  7. namespace base {
  8. class TimeDelta;
  9. }
  10. namespace gcm {
  11. namespace features {
  12. extern const base::Feature kInvalidateTokenFeature;
  13. extern const char kParamNameTokenInvalidationPeriodDays[];
  14. // The period after which the GCM token becomes stale.
  15. base::TimeDelta GetTokenInvalidationInterval();
  16. } // namespace features
  17. } // namespace gcm
  18. #endif // COMPONENTS_GCM_DRIVER_FEATURES_H_