From 738ca226d4093e9e422b48e9bb460bb65076f973 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 4 Jun 2015 18:53:39 -0700 Subject: Move fx_safe_types.h to include/ directory. Small bit of OCD here, since this file is included cross-library (i.e. from fpdfsk), it can't be in src/. In other words, the following should be empty: grep -R 'include.*core/src/' fpdfsdk Fix some IWYU in it at the same time. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1147353006 --- core/include/fxcrt/fx_safe_types.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 core/include/fxcrt/fx_safe_types.h (limited to 'core/include') diff --git a/core/include/fxcrt/fx_safe_types.h b/core/include/fxcrt/fx_safe_types.h new file mode 100644 index 0000000000..e45e6d3c8d --- /dev/null +++ b/core/include/fxcrt/fx_safe_types.h @@ -0,0 +1,19 @@ +// 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_INCLUDE_FXCRT_FX_SAFE_TYPES_H_ +#define CORE_INCLUDE_FXCRT_FX_SAFE_TYPES_H_ + +#include // For size_t. + +#include "../../../third_party/base/numerics/safe_math.h" +#include "fx_stream.h" // for FX_FILESIZE. +#include "fx_system.h" + +typedef pdfium::base::CheckedNumeric FX_SAFE_DWORD; +typedef pdfium::base::CheckedNumeric FX_SAFE_INT32; +typedef pdfium::base::CheckedNumeric FX_SAFE_SIZE_T; +typedef pdfium::base::CheckedNumeric FX_SAFE_FILESIZE; + +#endif // CORE_INCLUDE_FXCRT_FX_SAFE_TYPES_H_ -- cgit v1.2.3