#include "extensions/browser/guest_view/web_view/controlled_frame_embedder_url_fetcher.h"
#include "base/functional/bind.h"
#include "base/memory/scoped_refptr.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/storage_partition.h"
#include "extensions/browser/extensions_browser_client.h"
#include "net/base/load_flags.h"
#include "net/traffic_annotation/network_traffic_annotation.h"
#include "services/network/public/cpp/resource_request.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
#include "services/network/public/cpp/simple_url_loader.h"
#include "services/network/public/mojom/url_response_head.mojom.h"
namespace extensions {
ControlledFrameEmbedderURLFetcher::ControlledFrameEmbedderURLFetcher(
int render_process_id,
int render_frame_id,
const GURL& url,
ControlledFrameEmbedderLoadFileCallback callback)
: … { … }
ControlledFrameEmbedderURLFetcher::~ControlledFrameEmbedderURLFetcher() =
default;
void ControlledFrameEmbedderURLFetcher::Start() { … }
void ControlledFrameEmbedderURLFetcher::OnURLLoaderComplete(
std::unique_ptr<std::string> response_body) { … }
}