blob: 50c4518fb94f8a57f2a6dd74c2c7e0f455eb4c01 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "public/web/WebFrameClient.h"
#include "services/service_manager/public/cpp/interface_provider.h"
namespace blink {
service_manager::InterfaceProvider* WebFrameClient::GetInterfaceProvider() {
static service_manager::InterfaceProvider* interface_provider = []() {
auto* interface_provider = new service_manager::InterfaceProvider();
service_manager::mojom::InterfaceProviderPtr provider;
mojo::MakeRequest(&provider);
interface_provider->Bind(std::move(provider));
return interface_provider;
}();
return interface_provider;
}
} // namespace blink