#ifndef EXTENSIONS_BROWSER_URL_REQUEST_UTIL_H_
#define EXTENSIONS_BROWSER_URL_REQUEST_UTIL_H_
#include <optional>
#include <string>
#include <string_view>
#include "services/network/public/mojom/fetch_api.mojom.h"
#include "ui/base/page_transition_types.h"
class GURL;
namespace network {
struct ResourceRequest;
}
namespace extensions {
class Extension;
class ExtensionSet;
class ProcessMap;
namespace url_request_util {
bool AllowCrossRendererResourceLoad(
const network::ResourceRequest& request,
network::mojom::RequestDestination destination,
ui::PageTransition page_transition,
int child_id,
bool is_incognito,
const Extension* extension,
const ExtensionSet& extensions,
const ProcessMap& process_map,
const GURL& upstream_url,
bool* allowed);
bool AllowCrossRendererResourceLoadHelper(bool is_guest,
const Extension* extension,
const Extension* owner_extension,
const std::string& partition_id,
std::string_view resource_path,
ui::PageTransition page_transition,
bool* allowed);
}
}
#endif