chromium/components/page_load_metrics/renderer/page_resource_data_use.cc

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

#include "components/page_load_metrics/renderer/page_resource_data_use.h"

#include "net/base/proxy_chain.h"
#include "services/network/public/cpp/url_loader_completion_status.h"
#include "services/network/public/mojom/url_response_head.mojom.h"
#include "third_party/blink/public/common/loader/resource_type_util.h"
#include "url/gurl.h"
#include "url/scheme_host_port.h"

namespace page_load_metrics {

PageResourceDataUse::PageResourceDataUse(int resource_id)
    :{}

PageResourceDataUse::PageResourceDataUse(const PageResourceDataUse& other) =
    default;
PageResourceDataUse::~PageResourceDataUse() = default;

void PageResourceDataUse::DidStartResponse(
    const url::SchemeHostPort& final_response_url,
    int resource_id,
    const network::mojom::URLResponseHead& response_head,
    network::mojom::RequestDestination request_destination,
    bool is_ad_resource) {}

void PageResourceDataUse::DidReceiveTransferSizeUpdate(
    int received_data_length) {}

void PageResourceDataUse::DidCompleteResponse(
    const network::URLLoaderCompletionStatus& status) {}

void PageResourceDataUse::DidCancelResponse() {}

void PageResourceDataUse::DidLoadFromMemoryCache(const GURL& response_url,
                                                 int64_t encoded_body_length,
                                                 const std::string& mime_type) {}

bool PageResourceDataUse::IsFinishedLoading() {}

void PageResourceDataUse::SetIsMainFrameResource(bool is_main_frame_resource) {}

int64_t PageResourceDataUse::CalculateNewlyReceivedBytes() {}

mojom::ResourceDataUpdatePtr PageResourceDataUse::GetResourceDataUpdate() {}
}  // namespace page_load_metrics