summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/cpdf_page_object_avail.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/parser/cpdf_page_object_avail.h')
-rw-r--r--core/fpdfapi/parser/cpdf_page_object_avail.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/core/fpdfapi/parser/cpdf_page_object_avail.h b/core/fpdfapi/parser/cpdf_page_object_avail.h
new file mode 100644
index 0000000000..8c740ed045
--- /dev/null
+++ b/core/fpdfapi/parser/cpdf_page_object_avail.h
@@ -0,0 +1,21 @@
+// Copyright 2017 PDFium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CORE_FPDFAPI_PARSER_CPDF_PAGE_OBJECT_AVAIL_H_
+#define CORE_FPDFAPI_PARSER_CPDF_PAGE_OBJECT_AVAIL_H_
+
+#include "core/fpdfapi/parser/cpdf_object_avail.h"
+
+// Helper for check availability of page's object tree.
+// Exclude references to pages.
+class CPDF_PageObjectAvail : public CPDF_ObjectAvail {
+ public:
+ using CPDF_ObjectAvail::CPDF_ObjectAvail;
+ ~CPDF_PageObjectAvail() override;
+
+ protected:
+ bool ExcludeObject(const CPDF_Object* object) const override;
+};
+
+#endif // CORE_FPDFAPI_PARSER_CPDF_PAGE_OBJECT_AVAIL_H_