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

Unified Diff: components/subresource_filter/core/common/activation_scope.h

Issue 2186233003: Introduce activation scope logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adressed-comments Created 4 years, 4 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/common/activation_scope.h
diff --git a/components/subresource_filter/core/common/activation_scope.h b/components/subresource_filter/core/common/activation_scope.h
new file mode 100644
index 0000000000000000000000000000000000000000..aa65d368b8a27de1969d83af3225556449d123a8
--- /dev/null
+++ b/components/subresource_filter/core/common/activation_scope.h
@@ -0,0 +1,29 @@
+// 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_CORE_COMMON_ACTIVATION_SCOPE_H_
+#define COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_ACTIVATION_SCOPE_H_
+
+#include <iosfwd>
+
+namespace subresource_filter {
+
+// Defines the scope of triggering the Safe Browsing Subresource Filter.
+enum class ActivationScope {
+ NO_SITES,
+ // Allows to activate Safe Browsing Subresource Filter only on web sites from
+ // the Safe Browsing blacklist.
+ ACTIVATION_LIST,
+ // Testing only. Allows to send activation signal to the RenderFrame for each
+ // load.
+ ALL_SITES,
+ LAST = ACTIVATION_LIST,
+};
+
+// For logging use only.
+std::ostream& operator<<(std::ostream& os, const ActivationScope& state);
+
+} // namespace subresource_filter
+
+#endif // COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_ACTIVATION_SCOPE_H_
« no previous file with comments | « components/subresource_filter/core/common/BUILD.gn ('k') | components/subresource_filter/core/common/activation_scope.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698