#ifndef FUCHSIA_WEB_WEBENGINE_CONTEXT_PROVIDER_IMPL_H_
#define FUCHSIA_WEB_WEBENGINE_CONTEXT_PROVIDER_IMPL_H_
#include <fuchsia/web/cpp/fidl.h>
#include "fuchsia_web/webengine/web_engine_export.h"
#include "fuchsia_web/webinstance_host/web_instance_host.h"
namespace sys {
class OutgoingDirectory;
}
class WEB_ENGINE_EXPORT ContextProviderImpl
: public fuchsia::web::ContextProvider {
public:
explicit ContextProviderImpl(sys::OutgoingDirectory& outgoing_directory);
~ContextProviderImpl() override;
ContextProviderImpl(const ContextProviderImpl&) = delete;
ContextProviderImpl& operator=(const ContextProviderImpl&) = delete;
void Create(
fuchsia::web::CreateContextParams params,
fidl::InterfaceRequest<fuchsia::web::Context> context_request) override;
fuchsia::web::Debug* debug_api();
private:
WebInstanceHostWithoutServices web_instance_host_;
};
#endif