#include "components/dom_distiller/content/browser/distiller_javascript_utils.h"
#include <string>
#include <utility>
#include "base/functional/bind.h"
#include "base/strings/utf_string_conversions.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/common/isolated_world_ids.h"
namespace dom_distiller {
namespace {
const int32_t invalid_world_id = …;
int32_t distiller_javascript_world_id = …;
}
void SetDistillerJavaScriptWorldId(const int32_t id) { … }
bool DistillerJavaScriptWorldIdIsSet() { … }
void RunIsolatedJavaScript(
content::RenderFrameHost* render_frame_host,
const std::string& buffer,
content::RenderFrameHost::JavaScriptResultCallback callback) { … }
void RunIsolatedJavaScript(content::RenderFrameHost* render_frame_host,
const std::string& buffer) { … }
}