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

Side by Side Diff: core/fxcrt/include/fx_basic.h

Issue 2013483003: Remove CFX_PrivateData from CPDF_ModuleMgr (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Re-order two lines in .gyp file. Created 4 years, 7 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 | « core/fxcrt/fx_basic_util.cpp ('k') | core/fxcrt/include/fx_memory.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 #ifndef CORE_FXCRT_INCLUDE_FX_BASIC_H_ 7 #ifndef CORE_FXCRT_INCLUDE_FX_BASIC_H_
8 #define CORE_FXCRT_INCLUDE_FX_BASIC_H_ 8 #define CORE_FXCRT_INCLUDE_FX_BASIC_H_
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 class CFX_PrivateData { 632 class CFX_PrivateData {
633 public: 633 public:
634 CFX_PrivateData(); 634 CFX_PrivateData();
635 ~CFX_PrivateData(); 635 ~CFX_PrivateData();
636 636
637 void ClearAll(); 637 void ClearAll();
638 638
639 void SetPrivateData(void* module_id, 639 void SetPrivateData(void* module_id,
640 void* pData, 640 void* pData,
641 PD_CALLBACK_FREEDATA callback); 641 PD_CALLBACK_FREEDATA callback);
642 void SetPrivateObj(void* module_id, CFX_DestructObject* pObj); 642 void SetPrivateObj(void* module_id, CFX_Deletable* pObj);
643 643
644 void* GetPrivateData(void* module_id); 644 void* GetPrivateData(void* module_id);
645 FX_BOOL LookupPrivateData(void* module_id, void*& pData) const { 645 FX_BOOL LookupPrivateData(void* module_id, void*& pData) const {
646 if (!module_id) { 646 if (!module_id) {
647 return FALSE; 647 return FALSE;
648 } 648 }
649 uint32_t nCount = m_DataList.GetSize(); 649 uint32_t nCount = m_DataList.GetSize();
650 for (uint32_t n = 0; n < nCount; n++) { 650 for (uint32_t n = 0; n < nCount; n++) {
651 if (m_DataList[n].m_pModuleId == module_id) { 651 if (m_DataList[n].m_pModuleId == module_id) {
652 pData = m_DataList[n].m_pData; 652 pData = m_DataList[n].m_pData;
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 FX_FLOAT e; 970 FX_FLOAT e;
971 FX_FLOAT f; 971 FX_FLOAT f;
972 FX_FLOAT g; 972 FX_FLOAT g;
973 FX_FLOAT h; 973 FX_FLOAT h;
974 FX_FLOAT i; 974 FX_FLOAT i;
975 }; 975 };
976 976
977 uint32_t GetBits32(const uint8_t* pData, int bitpos, int nbits); 977 uint32_t GetBits32(const uint8_t* pData, int bitpos, int nbits);
978 978
979 #endif // CORE_FXCRT_INCLUDE_FX_BASIC_H_ 979 #endif // CORE_FXCRT_INCLUDE_FX_BASIC_H_
OLDNEW
« no previous file with comments | « core/fxcrt/fx_basic_util.cpp ('k') | core/fxcrt/include/fx_memory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698