blob: 33953135061eee6957cf3ae251d2e37793c15da7 [file]
// Copyright 2016 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef CORE_FXCRT_BYTESTRING_POOL_H_
#define CORE_FXCRT_BYTESTRING_POOL_H_
#include <memory>
#include "core/fxcrt/bytestring.h"
namespace fxcrt {
class ByteStringPool {
public:
// Never returns nullptr.
static std::unique_ptr<ByteStringPool> Create();
virtual ~ByteStringPool() = default;
virtual ByteString Intern(const ByteString& str) = 0;
protected:
ByteStringPool() = default;
};
} // namespace fxcrt
using fxcrt::ByteStringPool;
#endif // CORE_FXCRT_BYTESTRING_POOL_H_