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

Side by Side Diff: core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp

Issue 1087053002: Merge to XFA: Kill CFX_Object. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 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
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 #include "../../../include/fpdfapi/fpdf_parser.h" 7 #include "../../../include/fpdfapi/fpdf_parser.h"
8 #include "../../../include/fpdfapi/fpdf_module.h" 8 #include "../../../include/fpdfapi/fpdf_module.h"
9 #include "../../../include/fpdfapi/fpdf_page.h" 9 #include "../../../include/fpdfapi/fpdf_page.h"
10 #include "../../../src/fxcrt/fx_safe_types.h" 10 #include "../../../src/fxcrt/fx_safe_types.h"
(...skipping 2710 matching lines...) Expand 10 before | Expand all | Expand 10 after
2721 if (!GetNextChar(ch)) { 2721 if (!GetNextChar(ch)) {
2722 return; 2722 return;
2723 } 2723 }
2724 buffer[offset++] = ch; 2724 buffer[offset++] = ch;
2725 if (offset == size) { 2725 if (offset == size) {
2726 break; 2726 break;
2727 } 2727 }
2728 } 2728 }
2729 } 2729 }
2730 2730
2731 class CPDF_DataAvail FX_FINAL : public CFX_Object, public IPDF_DataAvail 2731 class CPDF_DataAvail FX_FINAL : public IPDF_DataAvail
2732 { 2732 {
2733 public: 2733 public:
2734 CPDF_DataAvail(IFX_FileAvail* pFileAvail, IFX_FileRead* pFileRead); 2734 CPDF_DataAvail(IFX_FileAvail* pFileAvail, IFX_FileRead* pFileRead);
2735 ~CPDF_DataAvail(); 2735 ~CPDF_DataAvail();
2736 2736
2737 virtual FX_BOOL IsDocAvail(IFX_DownloadHints* pHints) F X_OVERRIDE; 2737 virtual FX_BOOL IsDocAvail(IFX_DownloadHints* pHints) F X_OVERRIDE;
2738 2738
2739 virtual void SetDocument(CPDF_Document* pDoc) FX_OVE RRIDE; 2739 virtual void SetDocument(CPDF_Document* pDoc) FX_OVE RRIDE;
2740 2740
2741 virtual FX_BOOL IsPageAvail(int iPage, IFX_DownloadHints * pHints) FX_OVERRIDE; 2741 virtual FX_BOOL IsPageAvail(int iPage, IFX_DownloadHints * pHints) FX_OVERRIDE;
(...skipping 1908 matching lines...) Expand 10 before | Expand all | Expand 10 after
4650 { 4650 {
4651 FX_INT32 iSize = m_childNode.GetSize(); 4651 FX_INT32 iSize = m_childNode.GetSize();
4652 for (FX_INT32 i = 0; i < iSize; ++i) { 4652 for (FX_INT32 i = 0; i < iSize; ++i) {
4653 CPDF_PageNode *pNode = (CPDF_PageNode*)m_childNode[i]; 4653 CPDF_PageNode *pNode = (CPDF_PageNode*)m_childNode[i];
4654 if (pNode) { 4654 if (pNode) {
4655 delete pNode; 4655 delete pNode;
4656 } 4656 }
4657 } 4657 }
4658 m_childNode.RemoveAll(); 4658 m_childNode.RemoveAll();
4659 } 4659 }
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_parser/fpdf_parser_encrypt.cpp ('k') | core/src/fpdfapi/fpdf_render/render_int.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698