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

Unified Diff: core/fpdfapi/include/cpdf_modulemgr.h

Issue 2154843002: Clean up singleton implementation (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: core/fpdfapi/include/cpdf_modulemgr.h
diff --git a/core/fpdfapi/include/cpdf_modulemgr.h b/core/fpdfapi/include/cpdf_modulemgr.h
index 95c5385e641841205b5f2d50bf04ba9e71cc3178..8f88455a67d0c28e2ac768fd1b842f53fe07fcc6 100644
--- a/core/fpdfapi/include/cpdf_modulemgr.h
+++ b/core/fpdfapi/include/cpdf_modulemgr.h
@@ -56,6 +56,8 @@ class CPDF_ModuleMgr {
CPDF_ModuleMgr();
~CPDF_ModuleMgr();
+ static CPDF_ModuleMgr* m_pDefaultMgr;
Lei Zhang 2016/07/16 01:23:03 Leave it as a global, for the same reason as CPDFX
Wei Li 2016/07/18 19:07:07 Not sure which style to follow as both g_ and s_ w
Lei Zhang 2016/07/18 19:35:00 Sorry if I was unclear. What I was trying to say i
+
CCodec_ModuleMgr* m_pCodecModule;
std::unique_ptr<CPDF_PageModule> m_pPageModule;
std::unique_ptr<CFX_Deletable> m_pUnsupportInfoAdapter;

Powered by Google App Engine
This is Rietveld 408576698