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

Unified Diff: pdf/pdfium/pdfium_engine.h

Issue 863043003: PDF: Add a bunch of DCHECKs to make sure we do not go out of bounds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pdf/pdfium/pdfium_engine.cc » ('j') | pdf/pdfium/pdfium_engine.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/pdfium/pdfium_engine.h
diff --git a/pdf/pdfium/pdfium_engine.h b/pdf/pdfium/pdfium_engine.h
index bf3bff995aeeaaade2a505789fa6dc671287aa01..d7b48355666c4fddb257b85e22d19065e89b5ff9 100644
--- a/pdf/pdfium/pdfium_engine.h
+++ b/pdf/pdfium/pdfium_engine.h
@@ -691,7 +691,7 @@ class PDFiumEngine : public PDFEngine,
int page_index;
// Temporary used to figure out if in a series of Paint() calls whether this
// pending paint was updated or not.
- int painted_;
+ bool painted_;
};
std::vector<ProgressivePaint> progressive_paints_;
@@ -708,6 +708,8 @@ class PDFiumEngine : public PDFEngine,
// Set to true if the user is being prompted for their password. Will be set
// to false after the user finishes getting their password.
bool getting_password_;
+
+ DISALLOW_COPY_AND_ASSIGN(PDFiumEngine);
};
// Create a local variable of this when calling PDFium functions which can call
« 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