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

Side by Side Diff: xfa/src/fxfa/src/app/xfa_checksum.cpp

Issue 1570743002: XFA: Remove many relative includes in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 4 years, 11 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 "../../../foxitlib.h" 7 #include "xfa/src/foxitlib.h"
8 #include "../common/xfa_common.h" 8 #include "xfa/src/fxfa/src/common/xfa_common.h"
9 #include "xfa_checksum.h" 9 #include "xfa_checksum.h"
Tom Sepez 2016/01/08 18:47:18 nit: full path,comes first.
10 CXFA_SAXReaderHandler::CXFA_SAXReaderHandler(CXFA_ChecksumContext* pContext) 10 CXFA_SAXReaderHandler::CXFA_SAXReaderHandler(CXFA_ChecksumContext* pContext)
11 : m_pContext(pContext) { 11 : m_pContext(pContext) {
12 FXSYS_assert(m_pContext); 12 FXSYS_assert(m_pContext);
13 } 13 }
14 CXFA_SAXReaderHandler::~CXFA_SAXReaderHandler() {} 14 CXFA_SAXReaderHandler::~CXFA_SAXReaderHandler() {}
15 void* CXFA_SAXReaderHandler::OnTagEnter(const CFX_ByteStringC& bsTagName, 15 void* CXFA_SAXReaderHandler::OnTagEnter(const CFX_ByteStringC& bsTagName,
16 FX_SAXNODE eType, 16 FX_SAXNODE eType,
17 FX_DWORD dwStartPos) { 17 FX_DWORD dwStartPos) {
18 UpdateChecksum(TRUE); 18 UpdateChecksum(TRUE);
19 if (eType != FX_SAXNODE_Tag && eType != FX_SAXNODE_Instruction) { 19 if (eType != FX_SAXNODE_Tag && eType != FX_SAXNODE_Instruction) {
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 } 179 }
180 } 180 }
181 void CXFA_ChecksumContext::GetChecksum(CFX_ByteString& bsChecksum) { 181 void CXFA_ChecksumContext::GetChecksum(CFX_ByteString& bsChecksum) {
182 bsChecksum = m_bsChecksum; 182 bsChecksum = m_bsChecksum;
183 } 183 }
184 void CXFA_ChecksumContext::Update(const CFX_ByteStringC& bsText) { 184 void CXFA_ChecksumContext::Update(const CFX_ByteStringC& bsText) {
185 if (m_pByteContext != NULL) { 185 if (m_pByteContext != NULL) {
186 CRYPT_SHA1Update(m_pByteContext, bsText.GetPtr(), bsText.GetLength()); 186 CRYPT_SHA1Update(m_pByteContext, bsText.GetPtr(), bsText.GetLength());
187 } 187 }
188 } 188 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698