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_ |