// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_PUBLIC_BROWSER_MOJO_BINDER_POLICY_MAP_H_ #define CONTENT_PUBLIC_BROWSER_MOJO_BINDER_POLICY_MAP_H_ #include <string_view> #include "base/check_op.h" #include "content/common/content_export.h" namespace content { // MojoBinderNonAssociatedPolicy specifies policies for non-associated // interfaces. It is used by `MojoBinderPolicyMapApplier` for Mojo // capability control. // See the comment in // `MojoBinderPolicyApplier::ApplyPolicyToNonAssociatedBinder()` for details. enum class MojoBinderNonAssociatedPolicy { … }; // MojoBinderAssociatedPolicy specifies policies for channel-associated // interfaces. It is used by `MojoBinderPolicyMapApplier` for Mojo capability // control. See the comment in // `MojoBinderPolicyApplier::ApplyPolicyToAssociatedBinder()` for details. enum class MojoBinderAssociatedPolicy { … }; // Used by content/ layer to manage interfaces' binding policies. Embedders can // set their own policies via this interface. // TODO(crbug.com/40160797): Consider integrating it with // mojo::BinderMap. class CONTENT_EXPORT MojoBinderPolicyMap { … }; } // namespace content #endif // CONTENT_PUBLIC_BROWSER_MOJO_BINDER_POLICY_MAP_H_