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

Side by Side Diff: core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp

Issue 1832113003: Replace CFX_DWordArray with CFX_ArrayTemplate<FX_DWORD>. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Re-upload Created 4 years, 9 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
« no previous file with comments | « core/fpdfapi/fpdf_parser/cpdf_data_avail.h ('k') | core/fpdfapi/fpdf_parser/cpdf_hint_tables.h » ('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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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 "core/fpdfapi/fpdf_parser/include/ipdf_data_avail.h" 7 #include "core/fpdfapi/fpdf_parser/include/ipdf_data_avail.h"
8 8
9 #include "core/fpdfapi/fpdf_parser/cpdf_data_avail.h" 9 #include "core/fpdfapi/fpdf_parser/cpdf_data_avail.h"
10 #include "core/fpdfapi/fpdf_parser/fpdf_parser_utility.h" 10 #include "core/fpdfapi/fpdf_parser/fpdf_parser_utility.h"
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 bool CPDF_DataAvail::IsFirstCheck(int iPage) { 492 bool CPDF_DataAvail::IsFirstCheck(int iPage) {
493 return m_pageMapCheckState.insert(iPage).second; 493 return m_pageMapCheckState.insert(iPage).second;
494 } 494 }
495 495
496 void CPDF_DataAvail::ResetFirstCheck(int iPage) { 496 void CPDF_DataAvail::ResetFirstCheck(int iPage) {
497 m_pageMapCheckState.erase(iPage); 497 m_pageMapCheckState.erase(iPage);
498 } 498 }
499 499
500 FX_BOOL CPDF_DataAvail::CheckPage(IPDF_DataAvail::DownloadHints* pHints) { 500 FX_BOOL CPDF_DataAvail::CheckPage(IPDF_DataAvail::DownloadHints* pHints) {
501 FX_DWORD iPageObjs = m_PageObjList.GetSize(); 501 FX_DWORD iPageObjs = m_PageObjList.GetSize();
502 CFX_DWordArray UnavailObjList; 502 CFX_ArrayTemplate<FX_DWORD> UnavailObjList;
503 for (FX_DWORD i = 0; i < iPageObjs; ++i) { 503 for (FX_DWORD i = 0; i < iPageObjs; ++i) {
504 FX_DWORD dwPageObjNum = m_PageObjList.GetAt(i); 504 FX_DWORD dwPageObjNum = m_PageObjList.GetAt(i);
505 FX_BOOL bExist = FALSE; 505 FX_BOOL bExist = FALSE;
506 CPDF_Object* pObj = GetObject(dwPageObjNum, pHints, &bExist); 506 CPDF_Object* pObj = GetObject(dwPageObjNum, pHints, &bExist);
507 if (!pObj) { 507 if (!pObj) {
508 if (bExist) 508 if (bExist)
509 UnavailObjList.Add(dwPageObjNum); 509 UnavailObjList.Add(dwPageObjNum);
510 continue; 510 continue;
511 } 511 }
512 512
(...skipping 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after
1835 return FormAvailable; 1835 return FormAvailable;
1836 } 1836 }
1837 1837
1838 CPDF_DataAvail::PageNode::PageNode() : m_type(PDF_PAGENODE_UNKNOWN) {} 1838 CPDF_DataAvail::PageNode::PageNode() : m_type(PDF_PAGENODE_UNKNOWN) {}
1839 1839
1840 CPDF_DataAvail::PageNode::~PageNode() { 1840 CPDF_DataAvail::PageNode::~PageNode() {
1841 for (int32_t i = 0; i < m_childNode.GetSize(); ++i) 1841 for (int32_t i = 0; i < m_childNode.GetSize(); ++i)
1842 delete m_childNode[i]; 1842 delete m_childNode[i];
1843 m_childNode.RemoveAll(); 1843 m_childNode.RemoveAll();
1844 } 1844 }
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_parser/cpdf_data_avail.h ('k') | core/fpdfapi/fpdf_parser/cpdf_hint_tables.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698