chromium/third_party/puffin/src/include/puffin/common.h

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

#ifndef SRC_INCLUDE_PUFFIN_COMMON_H_
#define SRC_INCLUDE_PUFFIN_COMMON_H_

#include <functional>
#include <memory>
#include <vector>

#ifndef DISALLOW_COPY_AND_ASSIGN
#define DISALLOW_COPY_AND_ASSIGN(TypeName)
#endif  // DISALLOW_COPY_AND_ASSIGN

#ifndef FALLTHROUGH_INTENDED
#ifdef __clang__
#define FALLTHROUGH_INTENDED
#else
#define FALLTHROUGH_INTENDED
#endif  // __clang__
#endif  // FALLTHROUGH_INTENDED

namespace puffin {

enum class CompressorType : uint8_t {};

Buffer;

// This class is similar to the protobuf generated for |ProtoByteExtent|. We
// defined an extra class so the users of Puffin do not have to include
// puffin.pb.h and deal with its use.
struct ByteExtent {};

struct BitExtent {};

}  // namespace puffin

#endif  // SRC_INCLUDE_PUFFIN_COMMON_H_