#include "third_party/blink/renderer/core/loader/web_bundle/script_web_bundle.h"
#include "base/metrics/histogram_functions.h"
#include "base/unguessable_token.h"
#include "components/web_package/web_bundle_utils.h"
#include "third_party/blink/public/mojom/use_counter/metrics/web_feature.mojom-blink.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/execution_context/agent.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/html/cross_origin_attribute.h"
#include "third_party/blink/renderer/core/html/html_script_element.h"
#include "third_party/blink/renderer/core/inspector/console_message.h"
#include "third_party/blink/renderer/core/loader/web_bundle/script_web_bundle_rule.h"
#include "third_party/blink/renderer/core/loader/web_bundle/web_bundle_loader.h"
#include "third_party/blink/renderer/platform/instrumentation/use_counter.h"
#include "third_party/blink/renderer/platform/loader/cors/cors.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_fetcher.h"
#include "third_party/blink/renderer/platform/loader/fetch/subresource_web_bundle_list.h"
#include "third_party/blink/renderer/platform/scheduler/public/event_loop.h"
#include "third_party/blink/renderer/platform/weborigin/kurl.h"
#include "third_party/blink/renderer/platform/wtf/casting.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_functional.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
namespace blink {
class ScriptWebBundle::ReleaseResourceTask { … };
absl::variant<ScriptWebBundle*, ScriptWebBundleError>
ScriptWebBundle::CreateOrReuseInline(ScriptElementBase& element,
const String& source_text) { … }
ScriptWebBundle::ScriptWebBundle(ScriptElementBase& element,
Document& element_document,
const ScriptWebBundleRule& rule)
: … { … }
void ScriptWebBundle::Trace(Visitor* visitor) const { … }
bool ScriptWebBundle::CanHandleRequest(const KURL& url) const { … }
const KURL& ScriptWebBundle::GetBundleUrl() const { … }
const base::UnguessableToken& ScriptWebBundle::WebBundleToken() const { … }
String ScriptWebBundle::GetCacheIdentifier() const { … }
void ScriptWebBundle::OnWebBundleError(const String& message) const { … }
void ScriptWebBundle::NotifyLoadingFinished() { … }
bool ScriptWebBundle::IsScriptWebBundle() const { … }
bool ScriptWebBundle::WillBeReleased() const { … }
network::mojom::CredentialsMode ScriptWebBundle::GetCredentialsMode() const { … }
bool ScriptWebBundle::IsSameOriginBundle() const { … }
void ScriptWebBundle::CreateBundleLoaderAndRegister() { … }
void ScriptWebBundle::ReleaseBundleLoaderAndUnregister() { … }
void ScriptWebBundle::WillReleaseBundleLoaderAndUnregister() { … }
void ScriptWebBundle::ReusedWith(ScriptElementBase& element,
ScriptWebBundleRule rule) { … }
}