1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef PDF_PDFIUM_PDFIUM_MEM_BUFFER_FILE_READ_H_
6 #define PDF_PDFIUM_PDFIUM_MEM_BUFFER_FILE_READ_H_
10 #include "third_party/pdfium/public/fpdfview.h"
12 namespace chrome_pdf
{
14 // Implementation of FPDF_FILEACCESS from a memory buffer.
15 class PDFiumMemBufferFileRead
: public FPDF_FILEACCESS
{
17 PDFiumMemBufferFileRead(const void* data
, size_t size
);
18 ~PDFiumMemBufferFileRead();
21 static int GetBlock(void* param
,
22 unsigned long position
,
25 const unsigned char* data_
;
28 } // namespace chrome_pdf
30 #endif // PDF_PDFIUM_PDFIUM_MEM_BUFFER_FILE_READ_H_