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

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

Issue 1088733002: Kill CFX_Object. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase. 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 2706 matching lines...) Expand 10 before | Expand all | Expand 10 after
2717 if (!GetNextChar(ch)) { 2717 if (!GetNextChar(ch)) {
2718 return; 2718 return;
2719 } 2719 }
2720 buffer[offset++] = ch; 2720 buffer[offset++] = ch;
2721 if (offset == size) { 2721 if (offset == size) {
2722 break; 2722 break;
2723 } 2723 }
2724 } 2724 }
2725 } 2725 }
2726 2726
2727 class CPDF_DataAvail FX_FINAL : public CFX_Object, public IPDF_DataAvail 2727 class CPDF_DataAvail FX_FINAL : public IPDF_DataAvail
2728 { 2728 {
2729 public: 2729 public:
2730 CPDF_DataAvail(IFX_FileAvail* pFileAvail, IFX_FileRead* pFileRead); 2730 CPDF_DataAvail(IFX_FileAvail* pFileAvail, IFX_FileRead* pFileRead);
2731 ~CPDF_DataAvail(); 2731 ~CPDF_DataAvail();
2732 2732
2733 virtual FX_BOOL IsDocAvail(IFX_DownloadHints* pHints) F X_OVERRIDE; 2733 virtual FX_BOOL IsDocAvail(IFX_DownloadHints* pHints) F X_OVERRIDE;
2734 2734
2735 virtual void SetDocument(CPDF_Document* pDoc) FX_OVE RRIDE; 2735 virtual void SetDocument(CPDF_Document* pDoc) FX_OVE RRIDE;
2736 2736
2737 virtual FX_BOOL IsPageAvail(int iPage, IFX_DownloadHints * pHints) FX_OVERRIDE; 2737 virtual FX_BOOL IsPageAvail(int iPage, IFX_DownloadHints * pHints) FX_OVERRIDE;
(...skipping 1908 matching lines...) Expand 10 before | Expand all | Expand 10 after
4646 { 4646 {
4647 FX_INT32 iSize = m_childNode.GetSize(); 4647 FX_INT32 iSize = m_childNode.GetSize();
4648 for (FX_INT32 i = 0; i < iSize; ++i) { 4648 for (FX_INT32 i = 0; i < iSize; ++i) {
4649 CPDF_PageNode *pNode = (CPDF_PageNode*)m_childNode[i]; 4649 CPDF_PageNode *pNode = (CPDF_PageNode*)m_childNode[i];
4650 if (pNode) { 4650 if (pNode) {
4651 delete pNode; 4651 delete pNode;
4652 } 4652 }
4653 } 4653 }
4654 m_childNode.RemoveAll(); 4654 m_childNode.RemoveAll();
4655 } 4655 }
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