chromium/third_party/blink/renderer/core/loader/frame_resource_fetcher_properties.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/core/loader/frame_resource_fetcher_properties.h"

#include "base/metrics/field_trial_params.h"
#include "third_party/blink/public/platform/modules/service_worker/web_service_worker_network_provider.h"
#include "third_party/blink/public/platform/web_effective_connection_type.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/frame/settings.h"
#include "third_party/blink/renderer/core/loader/document_loader.h"
#include "third_party/blink/renderer/core/page/page.h"
#include "third_party/blink/renderer/core/script/fetch_client_settings_object_impl.h"
#include "third_party/blink/renderer/platform/loader/fetch/fetch_client_settings_object.h"
#include "third_party/blink/renderer/platform/loader/fetch/fetch_client_settings_object_snapshot.h"
#include "third_party/blink/renderer/platform/network/network_state_notifier.h"

namespace blink {

namespace {

// Feature for throttling field trial.
BASE_FEATURE();

// Field trial parameters.
// Note: bg_limit is supported on m61+, but bg_sub_limit is only on m63+.
// If bg_sub_limit param is not found, we should use bg_limit to make the
// study result statistically correct.
constexpr base::FeatureParam<int> kOutstandingLimitForBackgroundMainFrame{};
constexpr base::FeatureParam<int> kOutstandingLimitForBackgroundSubFrame{};

}  // namespace

FrameResourceFetcherProperties::FrameResourceFetcherProperties(
    DocumentLoader& document_loader,
    Document& document)
    :{}

void FrameResourceFetcherProperties::Trace(Visitor* visitor) const {}

bool FrameResourceFetcherProperties::IsOutermostMainFrame() const {}

mojom::ControllerServiceWorkerMode
FrameResourceFetcherProperties::GetControllerServiceWorkerMode() const {}

int64_t FrameResourceFetcherProperties::ServiceWorkerId() const {}

bool FrameResourceFetcherProperties::IsPaused() const {}

LoaderFreezeMode FrameResourceFetcherProperties::FreezeMode() const {}

bool FrameResourceFetcherProperties::IsLoadComplete() const {}

bool FrameResourceFetcherProperties::ShouldBlockLoadingSubResource() const {}

bool FrameResourceFetcherProperties::IsSubframeDeprioritizationEnabled() const {}

scheduler::FrameStatus FrameResourceFetcherProperties::GetFrameStatus() const {}

int FrameResourceFetcherProperties::GetOutstandingThrottledLimit() const {}

}  // namespace blink