chromium/components/value_store/value_store.cc

// Copyright 2014 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/value_store/value_store.h"

#include <utility>

#include "base/check.h"

namespace value_store {

// Implementation of Status.

ValueStore::Status::Status() = default;

ValueStore::Status::Status(StatusCode code, const std::string& message)
    :{}

ValueStore::Status::Status(StatusCode code,
                           BackingStoreRestoreStatus restore_status,
                           const std::string& message)
    :{}

ValueStore::Status::Status(Status&& other) = default;

ValueStore::Status::~Status() = default;

ValueStore::Status& ValueStore::Status::operator=(Status&& rhs) = default;

void ValueStore::Status::Merge(const Status& status) {}

// Implementation of ReadResult.

ValueStore::ReadResult::ReadResult(base::Value::Dict settings, Status status)
    :{}

ValueStore::ReadResult::ReadResult(Status status)
    :{}

ValueStore::ReadResult::ReadResult(ReadResult&& other) = default;

ValueStore::ReadResult::~ReadResult() = default;

ValueStore::ReadResult& ValueStore::ReadResult::operator=(ReadResult&& rhs) =
    default;

// Implementation of WriteResult.

ValueStore::WriteResult::WriteResult(ValueStoreChangeList changes,
                                     Status status)
    :{}

ValueStore::WriteResult::WriteResult(Status status)
    :{}

ValueStore::WriteResult::WriteResult(WriteResult&& other) = default;

ValueStore::WriteResult::~WriteResult() = default;

ValueStore::WriteResult& ValueStore::WriteResult::operator=(WriteResult&& rhs) =
    default;

}  // namespace value_store