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

Unified Diff: components/subresource_filter/core/common/activation_state.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/common/activation_state.h
diff --git a/components/subresource_filter/core/common/activation_state.h b/components/subresource_filter/core/common/activation_state.h
new file mode 100644
index 0000000000000000000000000000000000000000..6a92e41193648e423374e8b554d08b0db195ac7f
--- /dev/null
+++ b/components/subresource_filter/core/common/activation_state.h
@@ -0,0 +1,27 @@
+// 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_STATE_H_
+#define COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_ACTIVATION_STATE_H_
+
+#include <iosfwd>
+
+namespace subresource_filter {
+
+// Degrees to which the subresource filtering mechanism can be activated.
+enum class ActivationState {
+ DISABLED,
+ // Subresource loads are matched against filtering rules, but all loads are
+ // allowed to proceed regardless. Used for stability and performance testing.
+ DRYRUN,
+ ENABLED,
+ LAST = ENABLED
+};
+
+// For logging use only.
+std::ostream& operator<<(std::ostream& os, const ActivationState& state);
+
+} // namespace subresource_filter
+
+#endif // COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_ACTIVATION_STATE_H_
« no previous file with comments | « components/subresource_filter/core/common/BUILD.gn ('k') | components/subresource_filter/core/common/activation_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698