Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: core/src/fxcrt/extension.h

Issue 1477663003: Manual fixups to PDF_ENABLE_XFA in core/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Same as master Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/src/fxcodec/codec/fx_codec_jpeg.cpp ('k') | core/src/fxcrt/fx_basic_buffer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "core/include/fxcrt/fx_basic.h" 10 #include "core/include/fxcrt/fx_basic.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 FX_BOOL Init(const CFX_WideStringC& wsPath) { 56 FX_BOOL Init(const CFX_WideStringC& wsPath) {
57 m_path = wsPath; 57 m_path = wsPath;
58 m_RefCount = 1; 58 m_RefCount = 1;
59 return TRUE; 59 return TRUE;
60 } 60 }
61 61
62 protected: 62 protected:
63 CFX_WideString m_path; 63 CFX_WideString m_path;
64 FX_DWORD m_RefCount; 64 FX_DWORD m_RefCount;
65 }; 65 };
66 #endif // PDF_ENABLE_XFA
66 67
67 #endif
68 class CFX_CRTFileStream final : public IFX_FileStream { 68 class CFX_CRTFileStream final : public IFX_FileStream {
69 public: 69 public:
70 CFX_CRTFileStream(IFXCRT_FileAccess* pFA) : m_pFile(pFA), m_dwCount(1) {} 70 CFX_CRTFileStream(IFXCRT_FileAccess* pFA) : m_pFile(pFA), m_dwCount(1) {}
71 ~CFX_CRTFileStream() override { 71 ~CFX_CRTFileStream() override {
72 if (m_pFile) { 72 if (m_pFile) {
73 m_pFile->Release(); 73 m_pFile->Release();
74 } 74 }
75 } 75 }
76 virtual IFX_FileStream* Retain() override { 76 virtual IFX_FileStream* Retain() override {
77 m_dwCount++; 77 m_dwCount++;
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 } FX_MTRANDOMCONTEXT, *FX_LPMTRANDOMCONTEXT; 343 } FX_MTRANDOMCONTEXT, *FX_LPMTRANDOMCONTEXT;
344 typedef FX_MTRANDOMCONTEXT const* FX_LPCMTRANDOMCONTEXT; 344 typedef FX_MTRANDOMCONTEXT const* FX_LPCMTRANDOMCONTEXT;
345 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 345 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
346 FX_BOOL FX_GenerateCryptoRandom(FX_DWORD* pBuffer, int32_t iCount); 346 FX_BOOL FX_GenerateCryptoRandom(FX_DWORD* pBuffer, int32_t iCount);
347 #endif 347 #endif
348 #ifdef __cplusplus 348 #ifdef __cplusplus
349 } 349 }
350 #endif 350 #endif
351 351
352 #endif // CORE_SRC_FXCRT_EXTENSION_H_ 352 #endif // CORE_SRC_FXCRT_EXTENSION_H_
OLDNEW
« no previous file with comments | « core/src/fxcodec/codec/fx_codec_jpeg.cpp ('k') | core/src/fxcrt/fx_basic_buffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698