#include "third_party/blink/public/common/associated_interfaces/associated_interface_provider.h"
#include <map>
#include "base/containers/contains.h"
#include "base/no_destructor.h"
#include "base/task/single_thread_task_runner.h"
#include "mojo/public/cpp/bindings/associated_receiver.h"
namespace blink {
class AssociatedInterfaceProvider::LocalProvider
: public mojom::AssociatedInterfaceProvider { … };
AssociatedInterfaceProvider::AssociatedInterfaceProvider(
mojo::PendingAssociatedRemote<mojom::AssociatedInterfaceProvider> proxy,
scoped_refptr<base::SingleThreadTaskRunner> task_runner)
: … { … }
AssociatedInterfaceProvider::AssociatedInterfaceProvider(
scoped_refptr<base::SingleThreadTaskRunner> task_runner)
: … { … }
AssociatedInterfaceProvider::~AssociatedInterfaceProvider() = default;
void AssociatedInterfaceProvider::GetInterface(
const std::string& name,
mojo::ScopedInterfaceEndpointHandle handle) { … }
void AssociatedInterfaceProvider::OverrideBinderForTesting(
const std::string& name,
const base::RepeatingCallback<void(mojo::ScopedInterfaceEndpointHandle)>&
binder) { … }
AssociatedInterfaceProvider*
AssociatedInterfaceProvider::GetEmptyAssociatedInterfaceProvider() { … }
}