Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(514)

Unified Diff: components/subresource_filter/core/browser/subresource_filter_features.h

Issue 2022783002: Skeleton of the Safe Browsing Subresource Filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implement RenderFrameObserver::OnDestruct introduced by rebase. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/subresource_filter/core/browser/subresource_filter_features.h
diff --git a/components/subresource_filter/core/browser/subresource_filter_features.h b/components/subresource_filter/core/browser/subresource_filter_features.h
new file mode 100644
index 0000000000000000000000000000000000000000..ded40309727d2b324ef99d6e2e48958787d618c6
--- /dev/null
+++ b/components/subresource_filter/core/browser/subresource_filter_features.h
@@ -0,0 +1,28 @@
+// Copyright 2016 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_SUBRESOURCE_FILTER_SUBRESOURCE_FILTER_FEATURES_H_
+#define COMPONENTS_SUBRESOURCE_FILTER_SUBRESOURCE_FILTER_FEATURES_H_
+
+#include "base/feature_list.h"
+#include "components/subresource_filter/core/common/activation_state.h"
+
+namespace subresource_filter {
+
+// The master toggle to enable/disable the Safe Browsing Subresource Filter.
+extern const base::Feature kSafeBrowsingSubresourceFilter;
+
+// Name/values of the variation parameter controlling maximum activation state.
+extern const char kActivationStateParameterName[];
+extern const char kActivationStateDryRun[];
+extern const char kActivationStateEnabled[];
+
+// Returns the maximum degree to which subresource filtering should be activated
+// on any RenderFrame. This will be ActivationState::DISABLED unless the feature
+// is enabled and variation parameters prescribe a higher activation state.
+ActivationState GetMaximumActivationState();
+
+} // namespace subresource_filter
+
+#endif // COMPONENTS_SUBRESOURCE_FILTER_SUBRESOURCE_FILTER_FEATURES_H_

Powered by Google App Engine
This is Rietveld 408576698