Chromium Code Reviews| Index: core/fpdfapi/parser/cpdf_stream.h |
| diff --git a/core/fpdfapi/parser/cpdf_stream.h b/core/fpdfapi/parser/cpdf_stream.h |
| index ddf7cc5b693e69a3b5c36063ec36c0fcd42172fb..6ca961dd480ac7db29b43bc155ef9519811373c6 100644 |
| --- a/core/fpdfapi/parser/cpdf_stream.h |
| +++ b/core/fpdfapi/parser/cpdf_stream.h |
| @@ -19,7 +19,10 @@ class CPDF_Stream : public CPDF_Object { |
| CPDF_Stream(); |
| // Takes ownership of |pData| and |pDict|. |
|
Lei Zhang
2016/11/18 23:50:34
Update comment.
Tom Sepez
2016/11/19 00:05:16
Done. I assume you meant removing the "and |pDict|
|
| - CPDF_Stream(uint8_t* pData, uint32_t size, CPDF_Dictionary* pDict); |
| + CPDF_Stream(uint8_t* pData, |
| + uint32_t size, |
| + std::unique_ptr<CPDF_Dictionary> pDict); |
| + |
| ~CPDF_Stream() override; |
| // CPDF_Object: |
| @@ -37,9 +40,11 @@ class CPDF_Stream : public CPDF_Object { |
| // Does not takes onwership of |pData|, copies into internally-owned buffer. |
| void SetData(const uint8_t* pData, uint32_t size); |
| - void InitStream(const uint8_t* pData, uint32_t size, CPDF_Dictionary* pDict); |
| + void InitStream(const uint8_t* pData, |
| + uint32_t size, |
| + std::unique_ptr<CPDF_Dictionary> pDict); |
| void InitStreamFromFile(IFX_SeekableReadStream* pFile, |
| - CPDF_Dictionary* pDict); |
| + std::unique_ptr<CPDF_Dictionary> pDict); |
| bool ReadRawData(FX_FILESIZE start_pos, |
| uint8_t* pBuf, |