chromium/content/browser/background_fetch/storage/database_helpers.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/storage/database_helpers.h"

#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "third_party/blink/public/common/storage_key/storage_key.h"
#include "third_party/blink/public/mojom/background_fetch/background_fetch.mojom.h"

namespace content {
namespace background_fetch {

std::string ActiveRegistrationUniqueIdKey(const std::string& developer_id) {}

std::string RegistrationKey(const std::string& unique_id) {}

std::string UIOptionsKey(const std::string& unique_id) {}

std::string PendingRequestKeyPrefix(const std::string& unique_id) {}

std::string PendingRequestKey(const std::string& unique_id, int request_index) {}

std::string ActiveRequestKeyPrefix(const std::string& unique_id) {}

std::string ActiveRequestKey(const std::string& unique_id, int request_index) {}

std::string CompletedRequestKeyPrefix(const std::string& unique_id) {}

std::string CompletedRequestKey(const std::string& unique_id,
                                int request_index) {}

std::string StorageVersionKey(const std::string& unique_id) {}

DatabaseStatus ToDatabaseStatus(blink::ServiceWorkerStatusCode status) {}

bool ToBackgroundFetchRegistration(
    const proto::BackgroundFetchMetadata& metadata_proto,
    blink::mojom::BackgroundFetchRegistrationData* registration_data) {}

blink::StorageKey GetMetadataStorageKey(
    const proto::BackgroundFetchMetadata& metadata_proto) {}

bool MojoFailureReasonFromRegistrationProto(
    proto::BackgroundFetchRegistration::BackgroundFetchFailureReason
        proto_failure_reason,
    blink::mojom::BackgroundFetchFailureReason* failure_reason) {}

GURL MakeCacheUrlUnique(const GURL& url,
                        const std::string& unique_id,
                        size_t request_index) {}

GURL RemoveUniqueParamFromCacheURL(const GURL& url,
                                   const std::string& unique_id) {}

}  // namespace background_fetch
}  // namespace content