chromium/components/subresource_filter/core/common/load_policy.h

// Copyright 2017 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_SUBRESOURCE_FILTER_CORE_COMMON_LOAD_POLICY_H_
#define COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_LOAD_POLICY_H_

namespace subresource_filter {

// Represents the value returned by the DocumentSubresourceFilter corresponding
// to a resource load. Ordered by in increasing severity.
enum class LoadPolicy {};

// Returns the stricter of the two load policies, as determined by the order
// of the LoadPolicy enum.
LoadPolicy MoreRestrictiveLoadPolicy(LoadPolicy a, LoadPolicy b);

}  // namespace subresource_filter

#endif  // COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_LOAD_POLICY_H_