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

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

Issue 1167393002: PDF: Interpret printing permission bits correctly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | pdf/pdfium/pdfium_engine.cc » ('j') | pdf/pdfium/pdfium_engine.cc » ('J')
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_ENGINE_H_ 5 #ifndef PDF_PDFIUM_PDFIUM_ENGINE_H_
6 #define PDF_PDFIUM_PDFIUM_ENGINE_H_ 6 #define PDF_PDFIUM_PDFIUM_ENGINE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 int last_page_to_search_; 640 int last_page_to_search_;
641 int last_character_index_to_search_; // -1 if search until end of page. 641 int last_character_index_to_search_; // -1 if search until end of page.
642 // Which result the user has currently selected. 642 // Which result the user has currently selected.
643 FindTextIndex current_find_index_; 643 FindTextIndex current_find_index_;
644 // Where to resume searching. 644 // Where to resume searching.
645 FindTextIndex resume_find_index_; 645 FindTextIndex resume_find_index_;
646 646
647 // Permissions bitfield. 647 // Permissions bitfield.
648 unsigned long permissions_; 648 unsigned long permissions_;
649 649
650 // Permissions security handler revision number. -1 for unknown.
651 int permissions_handler_revision_;
652
650 // Interface structure to provide access to document stream. 653 // Interface structure to provide access to document stream.
651 FPDF_FILEACCESS file_access_; 654 FPDF_FILEACCESS file_access_;
652 // Interface structure to check data availability in the document stream. 655 // Interface structure to check data availability in the document stream.
653 FileAvail file_availability_; 656 FileAvail file_availability_;
654 // Interface structure to request data chunks from the document stream. 657 // Interface structure to request data chunks from the document stream.
655 DownloadHints download_hints_; 658 DownloadHints download_hints_;
656 // Pointer to the document availability interface. 659 // Pointer to the document availability interface.
657 FPDF_AVAIL fpdf_availability_; 660 FPDF_AVAIL fpdf_availability_;
658 661
659 pp::Size default_page_size_; 662 pp::Size default_page_size_;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 754
752 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. 755 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details.
753 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, 756 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer,
754 int pdf_buffer_size, int page_number, 757 int pdf_buffer_size, int page_number,
755 double* width, double* height); 758 double* width, double* height);
756 }; 759 };
757 760
758 } // namespace chrome_pdf 761 } // namespace chrome_pdf
759 762
760 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ 763 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_
OLDNEW
« no previous file with comments | « no previous file | pdf/pdfium/pdfium_engine.cc » ('j') | pdf/pdfium/pdfium_engine.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698