#include "third_party/blink/renderer/core/loader/resource_load_observer_for_worker.h"
#include "services/network/public/cpp/ip_address_space_util.h"
#include "third_party/blink/renderer/core/core_probe_sink.h"
#include "third_party/blink/renderer/core/core_probes_inl.h"
#include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/core/loader/mixed_content_checker.h"
#include "third_party/blink/renderer/core/loader/worker_fetch_context.h"
#include "third_party/blink/renderer/platform/loader/fetch/fetch_client_settings_object.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_fetcher_properties.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_response.h"
#include "third_party/blink/renderer/platform/loader/mixed_content.h"
namespace blink {
ResourceLoadObserverForWorker::ResourceLoadObserverForWorker(
CoreProbeSink& probe,
const ResourceFetcherProperties& properties,
WorkerFetchContext& worker_fetch_context,
const base::UnguessableToken& devtools_worker_token)
: … { … }
ResourceLoadObserverForWorker::~ResourceLoadObserverForWorker() = default;
void ResourceLoadObserverForWorker::DidStartRequest(const FetchParameters&,
ResourceType) { … }
void ResourceLoadObserverForWorker::WillSendRequest(
const ResourceRequest& request,
const ResourceResponse& redirect_response,
ResourceType resource_type,
const ResourceLoaderOptions& options,
RenderBlockingBehavior render_blocking_behavior,
const Resource* resource) { … }
void ResourceLoadObserverForWorker::DidChangePriority(
uint64_t identifier,
ResourceLoadPriority priority,
int intra_priority_value) { … }
void RecordPrivateNetworkAccessFeature(ExecutionContext* execution_context,
const ResourceResponse& response) { … }
void ResourceLoadObserverForWorker::DidReceiveResponse(
uint64_t identifier,
const ResourceRequest& request,
const ResourceResponse& response,
const Resource* resource,
ResponseSource) { … }
void ResourceLoadObserverForWorker::DidReceiveData(
uint64_t identifier,
base::SpanOrSize<const char> chunk) { … }
void ResourceLoadObserverForWorker::DidReceiveTransferSizeUpdate(
uint64_t identifier,
int transfer_size_diff) { … }
void ResourceLoadObserverForWorker::DidDownloadToBlob(uint64_t identifier,
BlobDataHandle* blob) { … }
void ResourceLoadObserverForWorker::DidFinishLoading(
uint64_t identifier,
base::TimeTicks finish_time,
int64_t encoded_data_length,
int64_t decoded_body_length) { … }
void ResourceLoadObserverForWorker::DidFailLoading(const KURL&,
uint64_t identifier,
const ResourceError& error,
int64_t,
IsInternalRequest) { … }
bool ResourceLoadObserverForWorker::InterestedInAllRequests() { … }
void ResourceLoadObserverForWorker::Trace(Visitor* visitor) const { … }
}