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

Unified Diff: components/safe_browsing/triggers/trigger_manager.h

Issue 2855643002: Very basic change to add a TriggerManager class owned by SafeBrowsingService. (Closed)
Patch Set: Fix copyright date Created 3 years, 7 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/safe_browsing/triggers/BUILD.gn ('k') | components/safe_browsing/triggers/trigger_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_browsing/triggers/trigger_manager.h
diff --git a/components/safe_browsing/triggers/trigger_manager.h b/components/safe_browsing/triggers/trigger_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..3d89fd7c40f76407d2305dbb788a5cf95caf25c7
--- /dev/null
+++ b/components/safe_browsing/triggers/trigger_manager.h
@@ -0,0 +1,27 @@
+// 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_TRIGGERS_TRIGGER_MANAGER_H_
+#define COMPONENTS_SAFE_BROWSING_TRIGGERS_TRIGGER_MANAGER_H_
+
+#include "base/macros.h"
+
+namespace safe_browsing {
+
+// This class manager SafeBrowsing triggers. It has two main responsibilities:
+// 1) ensuring triggers only run when appropriate by honouring user opt-ins and
+// incognito state, and 2) tracking how often triggers fire and throttling them
+// when necessary.
+class TriggerManager {
+ public:
+ TriggerManager();
+ ~TriggerManager();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(TriggerManager);
+};
+
+} // namespace safe_browsing
+
+#endif // COMPONENTS_SAFE_BROWSING_TRIGGERS_TRIGGER_MANAGER_H_
« no previous file with comments | « components/safe_browsing/triggers/BUILD.gn ('k') | components/safe_browsing/triggers/trigger_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698