chromium/third_party/blink/common/blob/blob_utils.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 "third_party/blink/public/common/blob/blob_utils.h"

#include <algorithm>

#include "base/feature_list.h"
#include "base/metrics/field_trial_params.h"
#include "base/numerics/clamped_math.h"
#include "services/network/public/cpp/features.h"
#include "third_party/blink/public/common/features.h"

namespace blink {

constexpr uint64_t BlobUtils::kUnknownSize;

namespace {

BASE_FEATURE();

constexpr int kBlobMinDataPipeCapacity =;

// The 2MB limit was selected via a finch trial.
constexpr int kBlobDefaultDataPipeCapacity =;

constexpr base::FeatureParam<int> kBlobDataPipeCapacity{};

constexpr int kBlobMinDataPipeChunkSize =;
constexpr int kBlobDefaultDataPipeChunkSize =;

constexpr base::FeatureParam<int> kBlobDataPipeChunkSize{};

}  // namespace

// static
uint32_t BlobUtils::GetDataPipeCapacity(uint64_t target_blob_size) {}

// static
uint32_t BlobUtils::GetDataPipeChunkSize() {}

}  // namespace blink