// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_BLOCKLIST_OPT_OUT_BLOCKLIST_OPT_OUT_BLOCKLIST_ITEM_H_ #define COMPONENTS_BLOCKLIST_OPT_OUT_BLOCKLIST_OPT_OUT_BLOCKLIST_ITEM_H_ #include <stdint.h> #include <map> #include <memory> #include <optional> #include <queue> #include "base/functional/callback.h" #include "base/time/time.h" namespace blocklist { // Stores the recent block list history for a single host. Stores // |stored_history_length| of the most recent actions. To determine action // eligibility fewer than |opt_out_block_list_threshold| out of the past // |stored_history_length| navigations must be opt outs. |block_list_duration| // is the amount of time that elapses until the host is no longer on the block // list. class OptOutBlocklistItem { … }; } // namespace blocklist #endif // COMPONENTS_BLOCKLIST_OPT_OUT_BLOCKLIST_OPT_OUT_BLOCKLIST_ITEM_H_