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

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

Issue 1803723002: Move xfa/src up to xfa/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master 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 | « xfa/fxfa/app/xfa_checksum.h ('k') | xfa/fxfa/app/xfa_ffapp.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 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 "xfa/src/fxfa/app/xfa_checksum.h" 7 #include "xfa/fxfa/app/xfa_checksum.h"
8 8
9 #include "core/include/fdrm/fx_crypt.h" 9 #include "core/include/fdrm/fx_crypt.h"
10 #include "xfa/src/fgas/crt/fgas_algorithm.h" 10 #include "xfa/fgas/crt/fgas_algorithm.h"
11 11
12 CXFA_SAXReaderHandler::CXFA_SAXReaderHandler(CXFA_ChecksumContext* pContext) 12 CXFA_SAXReaderHandler::CXFA_SAXReaderHandler(CXFA_ChecksumContext* pContext)
13 : m_pContext(pContext) { 13 : m_pContext(pContext) {
14 FXSYS_assert(m_pContext); 14 FXSYS_assert(m_pContext);
15 } 15 }
16 CXFA_SAXReaderHandler::~CXFA_SAXReaderHandler() {} 16 CXFA_SAXReaderHandler::~CXFA_SAXReaderHandler() {}
17 void* CXFA_SAXReaderHandler::OnTagEnter(const CFX_ByteStringC& bsTagName, 17 void* CXFA_SAXReaderHandler::OnTagEnter(const CFX_ByteStringC& bsTagName,
18 FX_SAXNODE eType, 18 FX_SAXNODE eType,
19 FX_DWORD dwStartPos) { 19 FX_DWORD dwStartPos) {
20 UpdateChecksum(TRUE); 20 UpdateChecksum(TRUE);
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 } 181 }
182 } 182 }
183 void CXFA_ChecksumContext::GetChecksum(CFX_ByteString& bsChecksum) { 183 void CXFA_ChecksumContext::GetChecksum(CFX_ByteString& bsChecksum) {
184 bsChecksum = m_bsChecksum; 184 bsChecksum = m_bsChecksum;
185 } 185 }
186 void CXFA_ChecksumContext::Update(const CFX_ByteStringC& bsText) { 186 void CXFA_ChecksumContext::Update(const CFX_ByteStringC& bsText) {
187 if (m_pByteContext) { 187 if (m_pByteContext) {
188 CRYPT_SHA1Update(m_pByteContext, bsText.GetPtr(), bsText.GetLength()); 188 CRYPT_SHA1Update(m_pByteContext, bsText.GetPtr(), bsText.GetLength());
189 } 189 }
190 } 190 }
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_checksum.h ('k') | xfa/fxfa/app/xfa_ffapp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698