// 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_BROWSER_MOJO_BINDER_POLICY_APPLIER_H_ #define CONTENT_BROWSER_MOJO_BINDER_POLICY_APPLIER_H_ #include <string> #include "base/functional/bind.h" #include "base/functional/callback.h" #include "base/functional/callback_forward.h" #include "base/memory/raw_ref.h" #include "content/browser/mojo_binder_policy_map_impl.h" #include "content/common/content_export.h" namespace content { // MojoBinderPolicyApplier is a helper class for `BrowserInterfaceBrokerImpl` // which allows control over when to run the binder registered for a // requested interface. This is useful in cases like prerendering pages, where // it can be desirable to defer binding until the page is activated, or take // other actions. // // The action to take for each interface is specified in the given // `MojoBinderPolicyMap`, and kDefer is used when no policy is specified. // // See content/browser/preloading/prerender/README.md for more about capability // control. class CONTENT_EXPORT MojoBinderPolicyApplier { … }; } // namespace content #endif // CONTENT_BROWSER_MOJO_BINDER_POLICY_APPLIER_H_