| // Copyright 2018 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. |
| |
| module subresource_filter.mojom; |
| |
| import "components/subresource_filter/core/mojom/subresource_filter.mojom"; |
| import "third_party/blink/public/mojom/ad_tagging/ad_frame.mojom"; |
| |
| interface SubresourceFilterAgent { |
| // Instructs the renderer to activate subresource filtering at the specified |
| // |activation_state| for the document load committed next in a frame. |
| // |
| // Most be called just before mojom::FrameNavigationControl::CommitNavigation, |
| // at ReadyToCommitNavigation time. If not called, the default behavior is |
| // mojom::ActivationLevel::kDisabled. |
| ActivateForNextCommittedLoad(ActivationState activation_state, |
| blink.mojom.AdFrameType ad_type); |
| }; |