blob: 6c5f1ba79f4dcdfe4b5046405b93c60dc15651fc [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4065)
#endif
#include "third_party/blink/public/mojom/commit_result/commit_result.mojom-shared.h"
#include <utility>
#include "base/logging.h"
#include "base/stl_util.h" // for base::size()
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_context.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/lib/validation_util.h"
#include "third_party/blink/public/mojom/commit_result/commit_result.mojom-params-data.h"
namespace blink {
namespace mojom {
std::ostream& operator<<(std::ostream& os, CommitResult value) {
switch(value) {
case CommitResult::Ok:
return os << "CommitResult::Ok";
case CommitResult::Aborted:
return os << "CommitResult::Aborted";
case CommitResult::RestartCrossDocument:
return os << "CommitResult::RestartCrossDocument";
default:
return os << "Unknown CommitResult value: " << static_cast<int32_t>(value);
}
}
namespace internal {
} // namespace internal
} // namespace mojom
} // namespace blink
#if defined(_MSC_VER)
#pragma warning(pop)
#endif