summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/cpdf_document.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-05-01 21:24:14 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-01 21:24:14 +0000
commit2e118e8f73f939fa93d144470e7fa31228e7e74d (patch)
tree002d889a771caded90403a50b6a16a3b6015ea02 /core/fpdfapi/parser/cpdf_document.h
parentbbcbc72765ea6d95d3f6ff6989c0d6477f3f929c (diff)
downloadpdfium-2e118e8f73f939fa93d144470e7fa31228e7e74d.tar.xz
Add CPDF_Document::Extension::DeletePage()
Replaces one compile-time #ifdef XFA with a dynamic check and a call through a virtual API that prevents the CPDF code from knowing anything about the XFA code. Change-Id: If0ff9b6918b908b3eac824fe1d525c6d4f7316e7 Reviewed-on: https://pdfium-review.googlesource.com/31890 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/parser/cpdf_document.h')
-rw-r--r--core/fpdfapi/parser/cpdf_document.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/fpdfapi/parser/cpdf_document.h b/core/fpdfapi/parser/cpdf_document.h
index 4466df640e..82af1cfd82 100644
--- a/core/fpdfapi/parser/cpdf_document.h
+++ b/core/fpdfapi/parser/cpdf_document.h
@@ -45,6 +45,7 @@ class CPDF_Document : public CPDF_IndirectObjectHolder {
class Extension {
public:
virtual ~Extension() {}
+ virtual void DeletePage(int page_index) = 0;
};
explicit CPDF_Document(std::unique_ptr<CPDF_Parser> pParser);