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

Side by Side Diff: fpdfsdk/fpdfxfa/cpdfxfa_app.cpp

Issue 2443723002: Rename IFX_ stream names (Closed)
Patch Set: Nits Created 4 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 | « fpdfsdk/fpdfxfa/cpdfxfa_app.h ('k') | fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.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 "fpdfsdk/fpdfxfa/cpdfxfa_app.h" 7 #include "fpdfsdk/fpdfxfa/cpdfxfa_app.h"
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 pBuff[nLength + 1] = 0; 180 pBuff[nLength + 1] = 0;
181 wsAnswer = CFX_WideString::FromUTF16LE( 181 wsAnswer = CFX_WideString::FromUTF16LE(
182 reinterpret_cast<const unsigned short*>(pBuff), 182 reinterpret_cast<const unsigned short*>(pBuff),
183 nLength / sizeof(unsigned short)); 183 nLength / sizeof(unsigned short));
184 } 184 }
185 delete[] pBuff; 185 delete[] pBuff;
186 } 186 }
187 return wsAnswer; 187 return wsAnswer;
188 } 188 }
189 189
190 IFX_FileRead* CPDFXFA_App::DownloadURL(const CFX_WideString& wsURL) { 190 IFX_SeekableReadStream* CPDFXFA_App::DownloadURL(const CFX_WideString& wsURL) {
191 CPDFSDK_FormFillEnvironment* pFormFillEnv = m_pFormFillEnvList.GetAt(0); 191 CPDFSDK_FormFillEnvironment* pFormFillEnv = m_pFormFillEnvList.GetAt(0);
192 return pFormFillEnv ? pFormFillEnv->DownloadFromURL(wsURL.c_str()) : nullptr; 192 return pFormFillEnv ? pFormFillEnv->DownloadFromURL(wsURL.c_str()) : nullptr;
193 } 193 }
194 194
195 FX_BOOL CPDFXFA_App::PostRequestURL(const CFX_WideString& wsURL, 195 FX_BOOL CPDFXFA_App::PostRequestURL(const CFX_WideString& wsURL,
196 const CFX_WideString& wsData, 196 const CFX_WideString& wsData,
197 const CFX_WideString& wsContentType, 197 const CFX_WideString& wsContentType,
198 const CFX_WideString& wsEncode, 198 const CFX_WideString& wsEncode,
199 const CFX_WideString& wsHeader, 199 const CFX_WideString& wsHeader,
200 CFX_WideString& wsResponse) { 200 CFX_WideString& wsResponse) {
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 } 314 }
315 } 315 }
316 316
317 IFWL_AdapterTimerMgr* CPDFXFA_App::GetTimerMgr() { 317 IFWL_AdapterTimerMgr* CPDFXFA_App::GetTimerMgr() {
318 CXFA_FWLAdapterTimerMgr* pAdapter = nullptr; 318 CXFA_FWLAdapterTimerMgr* pAdapter = nullptr;
319 CPDFSDK_FormFillEnvironment* pFormFillEnv = m_pFormFillEnvList.GetAt(0); 319 CPDFSDK_FormFillEnvironment* pFormFillEnv = m_pFormFillEnvList.GetAt(0);
320 if (pFormFillEnv) 320 if (pFormFillEnv)
321 pAdapter = new CXFA_FWLAdapterTimerMgr(pFormFillEnv); 321 pAdapter = new CXFA_FWLAdapterTimerMgr(pFormFillEnv);
322 return pAdapter; 322 return pAdapter;
323 } 323 }
OLDNEW
« no previous file with comments | « fpdfsdk/fpdfxfa/cpdfxfa_app.h ('k') | fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698