| // Copyright 2018 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 COMPONENTS_FEED_FEED_FEATURE_LIST_H_ | 
 | #define COMPONENTS_FEED_FEED_FEATURE_LIST_H_ | 
 |  | 
 | #include <string> | 
 |  | 
 | #include "base/feature_list.h" | 
 | #include "base/metrics/field_trial_params.h" | 
 |  | 
 | // TODO(crbug.com/1165828): Clean up feedv1 features. | 
 |  | 
 | namespace feed { | 
 |  | 
 | extern const base::Feature kInterestFeedContentSuggestions; | 
 | extern const base::Feature kInterestFeedV2; | 
 | extern const base::Feature kInterestFeedV2Autoplay; | 
 | extern const base::Feature kInterestFeedV2Hearts; | 
 | extern const base::Feature kInterestFeedV2Scrolling; | 
 |  | 
 | extern const base::FeatureParam<std::string> kDisableTriggerTypes; | 
 | extern const base::FeatureParam<int> kSuppressRefreshDurationMinutes; | 
 | extern const base::FeatureParam<int> kTimeoutDurationSeconds; | 
 | extern const base::FeatureParam<bool> kThrottleBackgroundFetches; | 
 | extern const base::FeatureParam<bool> kOnlySetLastRefreshAttemptOnSuccess; | 
 |  | 
 | // Determines whether conditions should be reached before enabling the upload of | 
 | // click and view actions in the feed (e.g., the user needs to view X cards). | 
 | // For example, this is needed when the notice card is at the second position in | 
 | // the feed. | 
 | extern const base::Feature kInterestFeedV1ClicksAndViewsConditionalUpload; | 
 | extern const base::Feature kInterestFeedV2ClicksAndViewsConditionalUpload; | 
 |  | 
 | // Feature that allows the client to automatically dismiss the notice card based | 
 | // on the clicks and views on the notice card. | 
 | extern const base::Feature kInterestFeedNoticeCardAutoDismiss; | 
 |  | 
 | // Used for A:B testing of a bug fix (crbug.com/1151391). | 
 | extern const base::Feature kInterestFeedSpinnerAlwaysAnimate; | 
 |  | 
 | // Feature that allows the user to share articles from their feed. | 
 | extern const base::Feature kFeedShare; | 
 |  | 
 | // Feature that allows users to keep up with and consume web content. | 
 | extern const base::Feature kWebFeed; | 
 |  | 
 | // Use the new DiscoFeed endpoint. | 
 | extern const base::Feature kDiscoFeedEndpoint; | 
 |  | 
 | // Feature that enables xsurface to provide the metrics reporting state to an | 
 | // xsurface feed. | 
 | extern const base::Feature kXsurfaceMetricsReporting; | 
 |  | 
 | std::string GetFeedReferrerUrl(); | 
 |  | 
 | }  // namespace feed | 
 |  | 
 | #endif  // COMPONENTS_FEED_FEED_FEATURE_LIST_H_ |