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

Side by Side Diff: xfa/fxfa/include/xfa_ffdoc.h

Issue 1917493002: Use std::map in xfa_ffdoc.cpp (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 months 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
« xfa/fxfa/app/xfa_ffdoc.cpp ('K') | « xfa/fxfa/app/xfa_ffdoc.cpp ('k') | no next file » | 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 XFA_FXFA_INCLUDE_XFA_FFDOC_H_ 7 #ifndef XFA_FXFA_INCLUDE_XFA_FFDOC_H_
8 #define XFA_FXFA_INCLUDE_XFA_FFDOC_H_ 8 #define XFA_FXFA_INCLUDE_XFA_FFDOC_H_
9 9
10 #include <map>
11
10 #include "xfa/fxfa/include/fxfa.h" 12 #include "xfa/fxfa/include/fxfa.h"
11 #include "xfa/fxfa/parser/xfa_document.h" 13 #include "xfa/fxfa/parser/xfa_document.h"
12 14
13 class CXFA_ChecksumContext; 15 class CXFA_ChecksumContext;
14 class CXFA_FFApp; 16 class CXFA_FFApp;
15 class CXFA_FFNotify; 17 class CXFA_FFNotify;
16 class CXFA_FFDocView; 18 class CXFA_FFDocView;
17 19
18 struct FX_IMAGEDIB_AND_DPI { 20 struct FX_IMAGEDIB_AND_DPI {
19 CFX_DIBSource* pDibSource; 21 CFX_DIBSource* pDibSource;
(...skipping 29 matching lines...) Expand all
49 CXFA_ChecksumContext* pCSContext = NULL); 51 CXFA_ChecksumContext* pCSContext = NULL);
50 FX_BOOL ImportData(IFX_FileRead* pStream, FX_BOOL bXDP = TRUE); 52 FX_BOOL ImportData(IFX_FileRead* pStream, FX_BOOL bXDP = TRUE);
51 53
52 protected: 54 protected:
53 IXFA_DocProvider* m_pDocProvider; 55 IXFA_DocProvider* m_pDocProvider;
54 CXFA_Document* m_pDocument; 56 CXFA_Document* m_pDocument;
55 IFX_FileRead* m_pStream; 57 IFX_FileRead* m_pStream;
56 CXFA_FFApp* m_pApp; 58 CXFA_FFApp* m_pApp;
57 CXFA_FFNotify* m_pNotify; 59 CXFA_FFNotify* m_pNotify;
58 CPDF_Document* m_pPDFDoc; 60 CPDF_Document* m_pPDFDoc;
59 CFX_MapPtrToPtr m_mapNamedImages; 61 std::map<uint32_t, FX_IMAGEDIB_AND_DPI> m_HashToDibDpiMap;
60 CFX_MapPtrToPtr m_mapTypeToDocView; 62 std::map<uint32_t, CXFA_FFDocView*> m_TypeToDocViewMap;
Lei Zhang 2016/04/22 23:37:50 Should the value in the map be a std::unique_ptr?
61 uint32_t m_dwDocType; 63 uint32_t m_dwDocType;
62 FX_BOOL m_bOwnStream; 64 FX_BOOL m_bOwnStream;
63 }; 65 };
64 66
65 #endif // XFA_FXFA_INCLUDE_XFA_FFDOC_H_ 67 #endif // XFA_FXFA_INCLUDE_XFA_FFDOC_H_
OLDNEW
« xfa/fxfa/app/xfa_ffdoc.cpp ('K') | « xfa/fxfa/app/xfa_ffdoc.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698