#include "third_party/blink/renderer/platform/mojo/browser_interface_broker_proxy_impl.h"
#include <string_view>
#include "base/task/single_thread_task_runner.h"
#include "third_party/blink/renderer/platform/wtf/std_lib_extras.h"
#include "third_party/blink/renderer/platform/wtf/text/string_hasher.h"
#include "third_party/blink/renderer/platform/wtf/text/string_view.h"
namespace blink {
namespace {
struct InterfaceNameHashTranslator { … };
class EmptyBrowserInterfaceBrokerProxy
: public TestableBrowserInterfaceBrokerProxy { … };
}
TestableBrowserInterfaceBrokerProxy::TestBinder*
TestableBrowserInterfaceBrokerProxy::FindTestBinder(
std::string_view interface_name) const { … }
bool TestableBrowserInterfaceBrokerProxy::SetBinderForTesting(
const std::string& name,
base::RepeatingCallback<void(mojo::ScopedMessagePipeHandle)> binder) const { … }
BrowserInterfaceBrokerProxy& GetEmptyBrowserInterfaceBroker() { … }
BrowserInterfaceBrokerProxy::BrowserInterfaceBrokerProxy() = default;
BrowserInterfaceBrokerProxy::~BrowserInterfaceBrokerProxy() = default;
BrowserInterfaceBrokerProxyImpl::BrowserInterfaceBrokerProxyImpl(
ContextLifecycleNotifier* notifier)
: … { … }
void BrowserInterfaceBrokerProxyImpl::Bind(
CrossVariantMojoRemote<mojom::BrowserInterfaceBrokerInterfaceBase> broker,
scoped_refptr<base::SingleThreadTaskRunner> task_runner) { … }
CrossVariantMojoReceiver<mojom::BrowserInterfaceBrokerInterfaceBase>
BrowserInterfaceBrokerProxyImpl::Reset(
scoped_refptr<base::SingleThreadTaskRunner> task_runner) { … }
void BrowserInterfaceBrokerProxyImpl::GetInterface(
mojo::GenericPendingReceiver receiver) const { … }
bool BrowserInterfaceBrokerProxyImpl::is_bound() const { … }
void BrowserInterfaceBrokerProxyImpl::Trace(Visitor* visitor) const { … }
}