blob: dfd8a38c5feeb9a74910435945cf2d4f1fd3ee61 [file] [log] [blame]
// Copyright (c) 2017 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_SAFE_BROWSING_FEATURES_H_
#define COMPONENTS_SAFE_BROWSING_FEATURES_H_
#include <stddef.h>
#include <algorithm>
#include <utility>
#include <vector>
#include "base/feature_list.h"
#include "base/macros.h"
#include "base/values.h"
namespace base {
class ListValue;
} // namespace base
namespace safe_browsing {
// Features list
extern const base::Feature kAdSamplerTriggerFeature;
extern const base::Feature kGoogleBrandedPhishingWarning;
extern const base::Feature kLocalDatabaseManagerEnabled;
extern const base::Feature kPasswordFieldOnFocusPinging;
extern const base::Feature kPasswordProtectionInterstitial;
extern const base::Feature kProtectedPasswordEntryPinging;
// Gates registration for SyncPasswordReuseEvent events.
extern const base::Feature kSyncPasswordReuseEvent;
// Specifies which non-resource HTML Elements to collect based on their tag and
// attributes. It's a single param containing a comma-separated list of pairs.
// For example: "tag1,id,tag1,height,tag2,foo" - this will collect elements with
// tag "tag1" that have attribute "id" or "height" set, and elements of tag
// "tag2" if they have attribute "foo" set. All tag names and attributes should
// be lower case.
extern const base::Feature kThreatDomDetailsTagAndAttributeFeature;
extern const base::Feature kV4OnlyEnabled;
base::ListValue GetFeatureStatusList();
#endif // COMPONENTS_SAFE_BROWSING_FEATURES_H_
} // namespace safe_browsing