#include "content/browser/mojo_binder_policy_applier.h"
#include <string_view>
#include "base/containers/contains.h"
#include "base/containers/fixed_flat_set.h"
#include "content/public/browser/mojo_binder_policy_map.h"
#include "mojo/public/cpp/bindings/message.h"
namespace {
constexpr auto kSyncMethodInterfaces = …;
}
namespace content {
MojoBinderPolicyApplier::MojoBinderPolicyApplier(
const MojoBinderPolicyMapImpl* policy_map,
base::OnceCallback<void(const std::string& interface_name)> cancel_callback)
: … { … }
MojoBinderPolicyApplier::~MojoBinderPolicyApplier() = default;
std::unique_ptr<MojoBinderPolicyApplier>
MojoBinderPolicyApplier::CreateForSameOriginPrerendering(
base::OnceCallback<void(const std::string& interface_name)>
cancel_callback) { … }
std::unique_ptr<MojoBinderPolicyApplier>
MojoBinderPolicyApplier::CreateForPreview(
base::OnceCallback<void(const std::string& interface_name)>
cancel_callback) { … }
void MojoBinderPolicyApplier::ApplyPolicyToNonAssociatedBinder(
const std::string& interface_name,
base::OnceClosure binder_callback) { … }
bool MojoBinderPolicyApplier::ApplyPolicyToAssociatedBinder(
const std::string& interface_name) { … }
void MojoBinderPolicyApplier::PrepareToGrantAll() { … }
void MojoBinderPolicyApplier::GrantAll() { … }
void MojoBinderPolicyApplier::DropDeferredBinders() { … }
MojoBinderNonAssociatedPolicy
MojoBinderPolicyApplier::GetNonAssociatedMojoBinderPolicy(
const std::string& interface_name) const { … }
}