OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef _FXCRT_EXTENSION_IMP_ | 7 #ifndef _FXCRT_EXTENSION_IMP_ |
8 #define _FXCRT_EXTENSION_IMP_ | 8 #define _FXCRT_EXTENSION_IMP_ |
9 | 9 |
| 10 #include "fx_safe_types.h" |
| 11 |
10 class IFXCRT_FileAccess | 12 class IFXCRT_FileAccess |
11 { | 13 { |
12 public: | 14 public: |
13 virtual ~IFXCRT_FileAccess() {} | 15 virtual ~IFXCRT_FileAccess() {} |
14 virtual FX_BOOL Open(FX_BSTR fileName, FX_DWORD dwMode) = 0; | 16 virtual FX_BOOL Open(FX_BSTR fileName, FX_DWORD dwMode) = 0; |
15 virtual FX_BOOL Open(FX_WSTR fileName, FX_DWORD dwMode) = 0; | 17 virtual FX_BOOL Open(FX_WSTR fileName, FX_DWORD dwMode) = 0; |
16 virtual void Close() = 0; | 18 virtual void Close() = 0; |
17 virtual void Release() = 0; | 19 virtual void Release() = 0; |
18 virtual FX_FILESIZE GetSize() const = 0; | 20 virtual FX_FILESIZE GetSize() const = 0; |
19 virtual FX_FILESIZE GetPosition() const = 0; | 21 virtual FX_FILESIZE GetPosition() const = 0; |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 FX_DWORD mt[MT_N]; | 435 FX_DWORD mt[MT_N]; |
434 } FX_MTRANDOMCONTEXT, * FX_LPMTRANDOMCONTEXT; | 436 } FX_MTRANDOMCONTEXT, * FX_LPMTRANDOMCONTEXT; |
435 typedef FX_MTRANDOMCONTEXT const * FX_LPCMTRANDOMCONTEXT; | 437 typedef FX_MTRANDOMCONTEXT const * FX_LPCMTRANDOMCONTEXT; |
436 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 438 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
437 FX_BOOL FX_GenerateCryptoRandom(FX_LPDWORD pBuffer, FX_INT32 iCount); | 439 FX_BOOL FX_GenerateCryptoRandom(FX_LPDWORD pBuffer, FX_INT32 iCount); |
438 #endif | 440 #endif |
439 #ifdef __cplusplus | 441 #ifdef __cplusplus |
440 } | 442 } |
441 #endif | 443 #endif |
442 #endif | 444 #endif |
OLD | NEW |