From a52ab741019342fbca0468e43a01deb44fa5f1bd Mon Sep 17 00:00:00 2001 From: dsinclair Date: Thu, 29 Sep 2016 13:59:29 -0700 Subject: Move core/fxcrt/include to core/fxcrt BUG=pdfium:611 Review-Url: https://codereview.chromium.org/2382723003 --- core/fxcrt/fx_safe_types.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 core/fxcrt/fx_safe_types.h (limited to 'core/fxcrt/fx_safe_types.h') diff --git a/core/fxcrt/fx_safe_types.h b/core/fxcrt/fx_safe_types.h new file mode 100644 index 0000000000..66dbc57681 --- /dev/null +++ b/core/fxcrt/fx_safe_types.h @@ -0,0 +1,20 @@ +// Copyright 2014 PDFium 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 CORE_FXCRT_FX_SAFE_TYPES_H_ +#define CORE_FXCRT_FX_SAFE_TYPES_H_ + +#include // For size_t. + +#include "core/fxcrt/fx_stream.h" // for FX_FILESIZE. +#include "core/fxcrt/fx_system.h" +#include "third_party/base/numerics/safe_math.h" + +typedef pdfium::base::CheckedNumeric FX_SAFE_UINT32; +typedef pdfium::base::CheckedNumeric FX_SAFE_INT32; +typedef pdfium::base::CheckedNumeric FX_SAFE_SIZE_T; +typedef pdfium::base::CheckedNumeric FX_SAFE_FILESIZE; +typedef pdfium::base::CheckedNumeric FX_SAFE_STRSIZE; + +#endif // CORE_FXCRT_FX_SAFE_TYPES_H_ -- cgit v1.2.3