Index: pdf/pdfium/pdfium_engine.h |
diff --git a/pdf/pdfium/pdfium_engine.h b/pdf/pdfium/pdfium_engine.h |
index 0334a602433e801f199023f35b8f4e31e03e6837..a71f0886ae2525ecc0f6f4b35ff1de802846135f 100644 |
--- a/pdf/pdfium/pdfium_engine.h |
+++ b/pdf/pdfium/pdfium_engine.h |
@@ -108,16 +108,17 @@ class PDFiumEngine : public PDFEngine, |
#if defined(PDF_ENABLE_XFA) |
void SetScrollPosition(const pp::Point& position) override; |
#endif |
+ bool IsProgressiveLoad() override; |
std::string GetMetadata(const std::string& key) override; |
// DocumentLoader::Client implementation. |
pp::Instance* GetPluginInstance() override; |
- std::unique_ptr<URLLoaderWrapper> CreateURLLoader() override; |
+ pp::URLLoader CreateURLLoader() override; |
+ void OnPartialDocumentLoaded() override; |
void OnPendingRequestComplete() override; |
void OnNewDataAvailable() override; |
+ void OnDocumentFailed() override; |
void OnDocumentComplete() override; |
- void OnDocumentCanceled() override; |
- void CancelBrowserDownload() override; |
void UnsupportedFeature(int type); |
void FontSubstituted(); |
@@ -191,11 +192,11 @@ class PDFiumEngine : public PDFEngine, |
friend class SelectionChangeInvalidator; |
struct FileAvail : public FX_FILEAVAIL { |
- PDFiumEngine* engine; |
+ DocumentLoader* loader; |
}; |
struct DownloadHints : public FX_DOWNLOADHINTS { |
- PDFiumEngine* engine; |
+ DocumentLoader* loader; |
}; |
// PDFium interface to get block of data. |
@@ -602,7 +603,7 @@ class PDFiumEngine : public PDFEngine, |
double current_zoom_; |
unsigned int current_rotation_; |
- std::unique_ptr<DocumentLoader> doc_loader_; // Main document's loader. |
+ DocumentLoader doc_loader_; // Main document's loader. |
std::string url_; |
std::string headers_; |
pp::CompletionCallbackFactory<PDFiumEngine> find_factory_; |
@@ -731,11 +732,6 @@ class PDFiumEngine : public PDFEngine, |
// to false after the user finishes getting their password. |
bool getting_password_; |
- // While true, the document try to be opened and parsed after download each |
- // part. Else the document will be opened and parsed only on finish of |
- // downloading. |
- bool process_when_pending_request_complete_ = true; |
- |
DISALLOW_COPY_AND_ASSIGN(PDFiumEngine); |
}; |