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 CORE_SRC_FXCRT_EXTENSION_H_ | 7 #ifndef CORE_SRC_FXCRT_EXTENSION_H_ |
8 #define CORE_SRC_FXCRT_EXTENSION_H_ | 8 #define CORE_SRC_FXCRT_EXTENSION_H_ |
9 | 9 |
10 #include "fx_safe_types.h" | 10 #include "../../include/fxcrt/fx_safe_types.h" |
11 | 11 |
12 class IFXCRT_FileAccess | 12 class IFXCRT_FileAccess |
13 { | 13 { |
14 public: | 14 public: |
15 virtual ~IFXCRT_FileAccess() {} | 15 virtual ~IFXCRT_FileAccess() {} |
16 virtual FX_BOOL Open(FX_BSTR fileName, FX_DWORD dwMode) = 0; | 16 virtual FX_BOOL Open(FX_BSTR fileName, FX_DWORD dwMode) = 0; |
17 virtual FX_BOOL Open(FX_WSTR fileName, FX_DWORD dwMode) = 0; | 17 virtual FX_BOOL Open(FX_WSTR fileName, FX_DWORD dwMode) = 0; |
18 virtual void Close() = 0; | 18 virtual void Close() = 0; |
19 virtual void Release() = 0; | 19 virtual void Release() = 0; |
20 virtual FX_FILESIZE GetSize() const = 0; | 20 virtual FX_FILESIZE GetSize() const = 0; |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 } FX_MTRANDOMCONTEXT, * FX_LPMTRANDOMCONTEXT; | 431 } FX_MTRANDOMCONTEXT, * FX_LPMTRANDOMCONTEXT; |
432 typedef FX_MTRANDOMCONTEXT const * FX_LPCMTRANDOMCONTEXT; | 432 typedef FX_MTRANDOMCONTEXT const * FX_LPCMTRANDOMCONTEXT; |
433 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 433 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
434 FX_BOOL FX_GenerateCryptoRandom(FX_LPDWORD pBuffer, FX_INT32 iCount); | 434 FX_BOOL FX_GenerateCryptoRandom(FX_LPDWORD pBuffer, FX_INT32 iCount); |
435 #endif | 435 #endif |
436 #ifdef __cplusplus | 436 #ifdef __cplusplus |
437 } | 437 } |
438 #endif | 438 #endif |
439 | 439 |
440 #endif // CORE_SRC_FXCRT_EXTENSION_H_ | 440 #endif // CORE_SRC_FXCRT_EXTENSION_H_ |
OLD | NEW |