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

Side by Side Diff: core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp

Issue 1299963002: Extern in .cpp files is a code smell. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 4 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 "../../../include/fxcrt/fx_ext.h" 7 #include "../../../include/fxcrt/fx_ext.h"
8 #include "../../../include/fpdfapi/fpdf_serial.h" 8 #include "../../../include/fpdfapi/fpdf_serial.h"
9 #include "../../../include/fpdfapi/fpdf_parser.h"
Lei Zhang 2015/08/18 22:24:19 alphabetical order
9 #include "editint.h" 10 #include "editint.h"
10 11
11 #define PDF_OBJECTSTREAM_MAXLENGTH (256 * 1024) 12 #define PDF_OBJECTSTREAM_MAXLENGTH (256 * 1024)
12 #define PDF_XREFSTREAM_MAXSIZE 10000 13 #define PDF_XREFSTREAM_MAXSIZE 10000
13 extern void FlateEncode(const uint8_t* src_buf, 14
14 FX_DWORD src_data,
15 uint8_t*& dest_buf,
16 FX_DWORD& dest_size);
17 extern void FlateEncode(const uint8_t* src_buf,
18 FX_DWORD src_size,
19 int predictor,
20 int Colors,
21 int BitsPerComponent,
22 int Columns,
23 uint8_t*& dest_buf,
24 FX_DWORD& dest_size);
25 extern FX_BOOL IsSignatureDict(const CPDF_Dictionary* pDict);
26 int32_t PDF_CreatorAppendObject(const CPDF_Object* pObj, 15 int32_t PDF_CreatorAppendObject(const CPDF_Object* pObj,
27 CFX_FileBufferArchive* pFile, 16 CFX_FileBufferArchive* pFile,
28 FX_FILESIZE& offset) { 17 FX_FILESIZE& offset) {
29 int32_t len = 0; 18 int32_t len = 0;
30 if (pObj == NULL) { 19 if (pObj == NULL) {
31 if (pFile->AppendString(FX_BSTRC(" null")) < 0) { 20 if (pFile->AppendString(FX_BSTRC(" null")) < 0) {
32 return -1; 21 return -1;
33 } 22 }
34 offset += 5; 23 offset += 5;
35 return 1; 24 return 1;
(...skipping 2101 matching lines...) Expand 10 before | Expand all | Expand 10 after
2137 m_bNewCrypto = FALSE; 2126 m_bNewCrypto = FALSE;
2138 if (!m_bStandardSecurity) { 2127 if (!m_bStandardSecurity) {
2139 return; 2128 return;
2140 } 2129 }
2141 if (m_pEncryptDict) { 2130 if (m_pEncryptDict) {
2142 m_pEncryptDict->Release(); 2131 m_pEncryptDict->Release();
2143 m_pEncryptDict = NULL; 2132 m_pEncryptDict = NULL;
2144 } 2133 }
2145 m_bStandardSecurity = FALSE; 2134 m_bStandardSecurity = FALSE;
2146 } 2135 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698