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

Unified Diff: core/fpdfapi/fpdf_parser/include/cpdf_document.h

Issue 2345063002: Use string pools in some dictionaries (Closed)
Patch Set: windows compilation Created 4 years, 3 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/fpdf_parser/include/cpdf_document.h
diff --git a/core/fpdfapi/fpdf_parser/include/cpdf_document.h b/core/fpdfapi/fpdf_parser/include/cpdf_document.h
index 0b865cb7f2a43c9e3e208d7712800b2d65bc7f8b..8fcebcc6e4af60de05d58a398dc786dd8028c588 100644
--- a/core/fpdfapi/fpdf_parser/include/cpdf_document.h
+++ b/core/fpdfapi/fpdf_parser/include/cpdf_document.h
@@ -13,6 +13,7 @@
#include "core/fpdfapi/fpdf_parser/include/cpdf_indirect_object_holder.h"
#include "core/fpdfapi/fpdf_parser/include/cpdf_object.h"
#include "core/fpdfdoc/include/cpdf_linklist.h"
+#include "core/fxcrt/include/cfx_string_pool_template.h"
#include "core/fxcrt/include/fx_basic.h"
class CFX_Font;
@@ -47,6 +48,7 @@ class CPDF_Document : public CPDF_IndirectObjectHolder {
CPDF_Parser* GetParser() const { return m_pParser.get(); }
CPDF_Dictionary* GetRoot() const { return m_pRootDict; }
CPDF_Dictionary* GetInfo() const { return m_pInfoDict; }
+ CFX_ByteStringPool* GetByteStringPool() { return &m_ByteStringPool; }
int GetPageCount() const;
CPDF_Dictionary* GetPage(int iPage);
@@ -124,6 +126,7 @@ class CPDF_Document : public CPDF_IndirectObjectHolder {
std::unique_ptr<CPDF_DocRenderData> m_pDocRender;
std::unique_ptr<JBig2_DocumentContext> m_pCodecContext;
std::unique_ptr<CPDF_LinkList> m_pLinksContext;
+ CFX_ByteStringPool m_ByteStringPool;
Lei Zhang 2016/09/20 23:48:23 Dumb question: Why have a CFX_ByteStringPool per C
Tom Sepez 2016/09/27 20:42:56 Exactly. I wouldn't want an unloaded document to
private:
void LoadDocInternal();

Powered by Google App Engine
This is Rietveld 408576698