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

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

Issue 2455663004: Add test to ensure that URLs that redirect inside the PDF plugin fail to load (Closed)
Patch Set: Created 4 years, 1 month 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
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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 bool IsProgressiveLoad() override; 111 bool IsProgressiveLoad() override;
112 std::string GetMetadata(const std::string& key) override; 112 std::string GetMetadata(const std::string& key) override;
113 113
114 // DocumentLoader::Client implementation. 114 // DocumentLoader::Client implementation.
115 pp::Instance* GetPluginInstance() override; 115 pp::Instance* GetPluginInstance() override;
116 pp::URLLoader CreateURLLoader() override; 116 pp::URLLoader CreateURLLoader() override;
117 void OnPartialDocumentLoaded() override; 117 void OnPartialDocumentLoaded() override;
118 void OnPendingRequestComplete() override; 118 void OnPendingRequestComplete() override;
119 void OnNewDataAvailable() override; 119 void OnNewDataAvailable() override;
120 void OnDocumentComplete() override; 120 void OnDocumentComplete() override;
121 void DocumentLoadFailed() override;
121 122
122 void UnsupportedFeature(int type); 123 void UnsupportedFeature(int type);
123 void FontSubstituted(); 124 void FontSubstituted();
124 125
125 std::string current_find_text() const { return current_find_text_; } 126 std::string current_find_text() const { return current_find_text_; }
126 127
127 FPDF_DOCUMENT doc() { return doc_; } 128 FPDF_DOCUMENT doc() { return doc_; }
128 FPDF_FORMHANDLE form() { return form_; } 129 FPDF_FORMHANDLE form() { return form_; }
129 130
130 private: 131 private:
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 bool GetPDFPageSizeByIndex(const void* pdf_buffer, 789 bool GetPDFPageSizeByIndex(const void* pdf_buffer,
789 int pdf_buffer_size, 790 int pdf_buffer_size,
790 int page_number, 791 int page_number,
791 double* width, 792 double* width,
792 double* height) override; 793 double* height) override;
793 }; 794 };
794 795
795 } // namespace chrome_pdf 796 } // namespace chrome_pdf
796 797
797 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ 798 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698