diff options
author | tsepez <tsepez@chromium.org> | 2016-12-01 13:02:18 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-12-01 13:02:18 -0800 |
commit | aeeb6d19d1fc794de482826ecaf8ec2fd9e92d0e (patch) | |
tree | 507a83fe5fef7a72fe661c81d710b748086d8169 /core | |
parent | 991f61869cfba58206cc7ec038fe8d5305bbb2ba (diff) | |
download | pdfium-aeeb6d19d1fc794de482826ecaf8ec2fd9e92d0e.tar.xz |
Kill some friends in fpdfapi.
Review-Url: https://codereview.chromium.org/2546813002
Diffstat (limited to 'core')
-rw-r--r-- | core/fpdfapi/page/cpdf_page.h | 2 | ||||
-rw-r--r-- | core/fpdfapi/parser/cpdf_data_avail.h | 4 | ||||
-rw-r--r-- | core/fpdfapi/parser/cpdf_object.h | 1 | ||||
-rw-r--r-- | core/fpdfapi/render/cpdf_pagerendercache.h | 2 |
4 files changed, 1 insertions, 8 deletions
diff --git a/core/fpdfapi/page/cpdf_page.h b/core/fpdfapi/page/cpdf_page.h index a542e33dbc..3812d28670 100644 --- a/core/fpdfapi/page/cpdf_page.h +++ b/core/fpdfapi/page/cpdf_page.h @@ -54,8 +54,6 @@ class CPDF_Page : public CPDF_PageObjectHolder { void SetView(View* pView) { m_pView = pView; } protected: - friend class CPDF_ContentParser; - void StartParse(); FX_FLOAT m_PageWidth; diff --git a/core/fpdfapi/parser/cpdf_data_avail.h b/core/fpdfapi/parser/cpdf_data_avail.h index 809b23fe59..e81d705bcd 100644 --- a/core/fpdfapi/parser/cpdf_data_avail.h +++ b/core/fpdfapi/parser/cpdf_data_avail.h @@ -99,6 +99,7 @@ class CPDF_DataAvail final { bool bSupportHintTable); ~CPDF_DataAvail(); + bool IsDataAvail(FX_FILESIZE offset, uint32_t size, DownloadHints* pHints); DocAvailStatus IsDocAvail(DownloadHints* pHints); void SetDocument(CPDF_Document* pDoc); DocAvailStatus IsPageAvail(uint32_t dwPage, DownloadHints* pHints); @@ -110,8 +111,6 @@ class CPDF_DataAvail final { int GetPageCount() const; CPDF_Dictionary* GetPage(int index); - friend class CPDF_HintTables; - protected: class PageNode { public: @@ -192,7 +191,6 @@ class CPDF_DataAvail final { bool CheckPageCount(DownloadHints* pHints); bool IsFirstCheck(uint32_t dwPage); void ResetFirstCheck(uint32_t dwPage); - bool IsDataAvail(FX_FILESIZE offset, uint32_t size, DownloadHints* pHints); bool ValidatePage(uint32_t dwPage); bool ValidateForm(); diff --git a/core/fpdfapi/parser/cpdf_object.h b/core/fpdfapi/parser/cpdf_object.h index 9c41e9de7b..f6bc5b444f 100644 --- a/core/fpdfapi/parser/cpdf_object.h +++ b/core/fpdfapi/parser/cpdf_object.h @@ -91,7 +91,6 @@ class CPDF_Object { protected: friend class CPDF_Array; friend class CPDF_Dictionary; - friend class CPDF_Document; friend class CPDF_IndirectObjectHolder; friend class CPDF_Parser; friend class CPDF_Reference; diff --git a/core/fpdfapi/render/cpdf_pagerendercache.h b/core/fpdfapi/render/cpdf_pagerendercache.h index 0156416d47..0877e6cb58 100644 --- a/core/fpdfapi/render/cpdf_pagerendercache.h +++ b/core/fpdfapi/render/cpdf_pagerendercache.h @@ -58,8 +58,6 @@ class CPDF_PageRenderCache { bool Continue(IFX_Pause* pPause); protected: - friend class CPDF_Page; - CPDF_Page* const m_pPage; CPDF_ImageCacheEntry* m_pCurImageCacheEntry; std::map<CPDF_Stream*, CPDF_ImageCacheEntry*> m_ImageCache; |