blob: 144dfcf54ab4997c466123a1ff95637d850eec8f (
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
31
32
33
34
35
|
// Copyright 2021 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_SHARED_HIGHLIGHTING_CORE_COMMON_SHARED_HIGHLIGHTING_FEATURES_H_
#define COMPONENTS_SHARED_HIGHLIGHTING_CORE_COMMON_SHARED_HIGHLIGHTING_FEATURES_H_
#include "base/metrics/field_trial_params.h"
namespace base {
struct Feature;
}
namespace shared_highlighting {
// Enables link to text to be generated in advance.
extern const base::Feature kPreemptiveLinkToTextGeneration;
// Sets the timeout length for pre-emptive link generation.
extern const base::FeatureParam<int> kPreemptiveLinkGenTimeoutLengthMs;
// Enables the new UI features for highlighted text.
extern const base::Feature kSharedHighlightingV2;
// Enables shared highlighting for AMP viewers pages.
extern const base::Feature kSharedHighlightingAmp;
// Feature flag that enable Shared Highlighting V2 in iOS.
extern const base::Feature kIOSSharedHighlightingV2;
// Returns the pre-emptive link generation timeout length.
int GetPreemptiveLinkGenTimeoutLengthMs();
} // namespace shared_highlighting
#endif // COMPONENTS_SHARED_HIGHLIGHTING_CORE_COMMON_SHARED_HIGHLIGHTING_FEATURES_H_
|