chromium/content/browser/background_fetch/background_fetch_request_info.cc

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

#include "content/browser/background_fetch/background_fetch_request_info.h"

#include <utility>

#include "base/strings/string_util.h"
#include "base/task/sequenced_task_runner.h"
#include "base/uuid.h"
#include "components/download/public/common/download_item.h"
#include "content/browser/blob_storage/chrome_blob_storage_context.h"
#include "content/public/browser/background_fetch_response.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/service_worker_context.h"
#include "net/http/http_response_headers.h"
#include "storage/browser/blob/blob_data_builder.h"
#include "storage/browser/blob/blob_storage_context.h"

namespace content {

// Holds state on the IO thread. Needed because blobs are bound to the IO
// thread.
class BackgroundFetchRequestInfo::BlobDataOnIO {};

BackgroundFetchRequestInfo::BackgroundFetchRequestInfo(
    int request_index,
    blink::mojom::FetchAPIRequestPtr fetch_request,
    uint64_t request_body_size)
    :{}

BackgroundFetchRequestInfo::~BackgroundFetchRequestInfo() {}

void BackgroundFetchRequestInfo::InitializeDownloadGuid() {}

void BackgroundFetchRequestInfo::SetDownloadGuid(
    const std::string& download_guid) {}

void BackgroundFetchRequestInfo::SetResult(
    std::unique_ptr<BackgroundFetchResult> result) {}

void BackgroundFetchRequestInfo::SetEmptyResultWithFailureReason(
    BackgroundFetchResult::FailureReason failure_reason) {}

void BackgroundFetchRequestInfo::PopulateWithResponse(
    std::unique_ptr<BackgroundFetchResponse> response) {}

int BackgroundFetchRequestInfo::GetResponseCode() const {}

const std::string& BackgroundFetchRequestInfo::GetResponseText() const {}

const std::map<std::string, std::string>&
BackgroundFetchRequestInfo::GetResponseHeaders() const {}

const std::vector<GURL>& BackgroundFetchRequestInfo::GetURLChain() const {}

void BackgroundFetchRequestInfo::CreateResponseBlobDataHandle(
    scoped_refptr<ChromeBlobStorageContext> blob_storage_context) {}

std::unique_ptr<storage::BlobDataHandle>
BackgroundFetchRequestInfo::TakeResponseBlobDataHandleOnIO() {}

uint64_t BackgroundFetchRequestInfo::GetResponseSize() const {}

const base::Time& BackgroundFetchRequestInfo::GetResponseTime() const {}

bool BackgroundFetchRequestInfo::IsResultSuccess() const {}

}  // namespace content