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

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

Issue 1409153007: Merge to XFA: Make checkdeps --resolve-dotdot succeed. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: rebase Created 5 years, 1 month 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/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp ('k') | fpdfsdk/DEPS » ('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 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 2657 matching lines...) Expand 10 before | Expand all | Expand 10 after
2668 break; 2668 break;
2669 } 2669 }
2670 } 2670 }
2671 } 2671 }
2672 2672
2673 class CPDF_DataAvail final : public IPDF_DataAvail { 2673 class CPDF_DataAvail final : public IPDF_DataAvail {
2674 public: 2674 public:
2675 CPDF_DataAvail(IFX_FileAvail* pFileAvail, IFX_FileRead* pFileRead); 2675 CPDF_DataAvail(IFX_FileAvail* pFileAvail, IFX_FileRead* pFileRead);
2676 ~CPDF_DataAvail() override; 2676 ~CPDF_DataAvail() override;
2677 2677
2678 // IPDF_DataAvail:
2678 FX_BOOL IsDocAvail(IFX_DownloadHints* pHints) override; 2679 FX_BOOL IsDocAvail(IFX_DownloadHints* pHints) override;
2679
2680 void SetDocument(CPDF_Document* pDoc) override; 2680 void SetDocument(CPDF_Document* pDoc) override;
2681
2682 FX_BOOL IsPageAvail(int iPage, IFX_DownloadHints* pHints) override; 2681 FX_BOOL IsPageAvail(int iPage, IFX_DownloadHints* pHints) override;
2683
2684 int32_t IsFormAvail(IFX_DownloadHints* pHints) override; 2682 int32_t IsFormAvail(IFX_DownloadHints* pHints) override;
2685
2686 int32_t IsLinearizedPDF() override; 2683 int32_t IsLinearizedPDF() override;
2687
2688 FX_BOOL IsLinearized() override { return m_bLinearized; } 2684 FX_BOOL IsLinearized() override { return m_bLinearized; }
2689
2690 void GetLinearizedMainXRefInfo(FX_FILESIZE* pPos, FX_DWORD* pSize) override; 2685 void GetLinearizedMainXRefInfo(FX_FILESIZE* pPos, FX_DWORD* pSize) override;
2691 2686
2692 protected: 2687 protected:
2693 static const int kMaxDataAvailRecursionDepth = 64; 2688 static const int kMaxDataAvailRecursionDepth = 64;
2694 static int s_CurrentDataAvailRecursionDepth; 2689 static int s_CurrentDataAvailRecursionDepth;
2695 static const int kMaxPageRecursionDepth = 1024; 2690 static const int kMaxPageRecursionDepth = 1024;
2696 2691
2697 FX_DWORD GetObjectSize(FX_DWORD objnum, FX_FILESIZE& offset); 2692 FX_DWORD GetObjectSize(FX_DWORD objnum, FX_FILESIZE& offset);
2698 FX_BOOL IsObjectsAvail(CFX_PtrArray& obj_array, 2693 FX_BOOL IsObjectsAvail(CFX_PtrArray& obj_array,
2699 FX_BOOL bParsePage, 2694 FX_BOOL bParsePage,
(...skipping 1832 matching lines...) Expand 10 before | Expand all | Expand 10 after
4532 return FALSE; 4527 return FALSE;
4533 } 4528 }
4534 CPDF_PageNode::~CPDF_PageNode() { 4529 CPDF_PageNode::~CPDF_PageNode() {
4535 int32_t iSize = m_childNode.GetSize(); 4530 int32_t iSize = m_childNode.GetSize();
4536 for (int32_t i = 0; i < iSize; ++i) { 4531 for (int32_t i = 0; i < iSize; ++i) {
4537 CPDF_PageNode* pNode = (CPDF_PageNode*)m_childNode[i]; 4532 CPDF_PageNode* pNode = (CPDF_PageNode*)m_childNode[i];
4538 delete pNode; 4533 delete pNode;
4539 } 4534 }
4540 m_childNode.RemoveAll(); 4535 m_childNode.RemoveAll();
4541 } 4536 }
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp ('k') | fpdfsdk/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698