• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2016 The PDFium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef CORE_FPDFAPI_PARSER_CPDF_NULL_H_
8 #define CORE_FPDFAPI_PARSER_CPDF_NULL_H_
9 
10 #include "core/fpdfapi/parser/cpdf_object.h"
11 #include "core/fxcrt/retain_ptr.h"
12 
13 class CPDF_Null final : public CPDF_Object {
14  public:
15   CONSTRUCT_VIA_MAKE_RETAIN;
16 
17   // CPDF_Object.
18   Type GetType() const override;
19   RetainPtr<CPDF_Object> Clone() const override;
20   CPDF_Null* AsMutableNull() override;
21   bool WriteTo(IFX_ArchiveStream* archive,
22                const CPDF_Encryptor* encryptor) const override;
23 
24  private:
25   CPDF_Null();
26 };
27 
28 #endif  // CORE_FPDFAPI_PARSER_CPDF_NULL_H_
29