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

Unified Diff: components/subresource_filter/core/common/activation_state.cc

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
« no previous file with comments | « components/subresource_filter/core/common/activation_state.h ('k') | components/test_runner/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/subresource_filter/core/common/activation_state.cc
diff --git a/components/subresource_filter/core/common/activation_state.cc b/components/subresource_filter/core/common/activation_state.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3461eb845f3e1b100cfc62b890d09e7d86655080
--- /dev/null
+++ b/components/subresource_filter/core/common/activation_state.cc
@@ -0,0 +1,31 @@
+// 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.
+
+#include "components/subresource_filter/core/common/activation_state.h"
+
+#include <ostream>
+
+#include "base/logging.h"
+
+namespace subresource_filter {
+
+std::ostream& operator<<(std::ostream& os, const ActivationState& state) {
+ switch (state) {
+ case ActivationState::DISABLED:
+ os << "DISABLED";
+ break;
+ case ActivationState::DRYRUN:
+ os << "DRYRUN";
+ break;
+ case ActivationState::ENABLED:
+ os << "ENABLED";
+ break;
+ default:
+ NOTREACHED();
+ break;
+ }
+ return os;
+}
+
+} // namespace subresource_filter
« no previous file with comments | « components/subresource_filter/core/common/activation_state.h ('k') | components/test_runner/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698