Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: pdf/pdfium/pdfium_mem_buffer_file_read.h

Issue 1140603002: Roll PDFium to 2daf76f (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pull new OWNERS via DEPS. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pdf/pdfium/pdfium_engine.cc ('k') | pdf/pdfium/pdfium_mem_buffer_file_write.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PDF_PDFIUM_PDFIUM_MEM_BUFFER_FILE_READ_H_ 5 #ifndef PDF_PDFIUM_PDFIUM_MEM_BUFFER_FILE_READ_H_
6 #define PDF_PDFIUM_PDFIUM_MEM_BUFFER_FILE_READ_H_ 6 #define PDF_PDFIUM_PDFIUM_MEM_BUFFER_FILE_READ_H_
7 7
8 #include <stdlib.h> 8 #include <stdlib.h>
9 9
10 #include "third_party/pdfium/fpdfsdk/include/fpdfview.h" 10 #include "third_party/pdfium/public/fpdfview.h"
11 11
12 namespace chrome_pdf { 12 namespace chrome_pdf {
13 13
14 // Implementation of FPDF_FILEACCESS from a memory buffer. 14 // Implementation of FPDF_FILEACCESS from a memory buffer.
15 class PDFiumMemBufferFileRead : public FPDF_FILEACCESS { 15 class PDFiumMemBufferFileRead : public FPDF_FILEACCESS {
16 public: 16 public:
17 PDFiumMemBufferFileRead(const void* data, size_t size); 17 PDFiumMemBufferFileRead(const void* data, size_t size);
18 ~PDFiumMemBufferFileRead(); 18 ~PDFiumMemBufferFileRead();
19 19
20 private: 20 private:
21 static int GetBlock(void* param, 21 static int GetBlock(void* param,
22 unsigned long position, 22 unsigned long position,
23 unsigned char* buf, 23 unsigned char* buf,
24 unsigned long size); 24 unsigned long size);
25 const unsigned char* data_; 25 const unsigned char* data_;
26 }; 26 };
27 27
28 } // namespace chrome_pdf 28 } // namespace chrome_pdf
29 29
30 #endif // PDF_PDFIUM_PDFIUM_MEM_BUFFER_FILE_READ_H_ 30 #endif // PDF_PDFIUM_PDFIUM_MEM_BUFFER_FILE_READ_H_
OLDNEW
« no previous file with comments | « pdf/pdfium/pdfium_engine.cc ('k') | pdf/pdfium/pdfium_mem_buffer_file_write.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698