1 // Copyright 2020 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 
5 #ifndef COMPONENTS_SYNC_INVALIDATIONS_SWITCHES_H_
6 #define COMPONENTS_SYNC_INVALIDATIONS_SWITCHES_H_
7 
8 #include "base/feature_list.h"
9 
10 namespace switches {
11 
12 // If enabled, interested data types, excluding Wallet and Offer, will be sent
13 // to the Sync Server as part of DeviceInfo.
14 extern const base::Feature kSyncSendInterestedDataTypes;
15 
16 // If enabled, the device will register with FCM and listen to new
17 // invalidations. Also, FCM token will be set in DeviceInfo, which signals to
18 // the server that device listens to new invalidations.
19 // The device will not subscribe to old invalidations for any data types except
20 // Wallet and Offer, since that will be covered by the new system.
21 // SyncSendInterestedDataTypes must be enabled for this to take effect.
22 extern const base::Feature kUseSyncInvalidations;
23 
24 // If enabled, types related to Wallet and Offer will be included in interested
25 // data types, and the device will listen to new invalidations for those types
26 // (if they are enabled).
27 // The device will not register for old invalidations at all.
28 // UseSyncInvalidations must be enabled for this to take effect.
29 extern const base::Feature kUseSyncInvalidationsForWalletAndOffer;
30 
31 }  // namespace switches
32 
33 #endif  // COMPONENTS_SYNC_INVALIDATIONS_SWITCHES_H_
34