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

Unified Diff: pdf/out_of_process_instance.cc

Issue 2349753003: Improve linearized pdf load/show time. (Closed)
Patch Set: Fix review issues. Created 4 years, 2 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
Index: pdf/out_of_process_instance.cc
diff --git a/pdf/out_of_process_instance.cc b/pdf/out_of_process_instance.cc
index 92511185c9715dd610adc6353cae440616666284..e8b5e1e20292f13306354d50a88ef562929ab234 100644
--- a/pdf/out_of_process_instance.cc
+++ b/pdf/out_of_process_instance.cc
@@ -852,15 +852,6 @@ void OutOfProcessInstance::DidOpen(int32_t result) {
NOTREACHED();
DocumentLoadFailed();
}
-
- // If it's a progressive load, cancel the stream URL request so that requests
- // can be made on the original URL.
- // TODO(raymes): Make this clearer once the in-process plugin is deleted.
- if (engine_->IsProgressiveLoad()) {
- pp::VarDictionary message;
- message.Set(kType, kJSCancelStreamUrlType);
- PostMessage(message);
- }
}
void OutOfProcessInstance::DidOpenPreview(int32_t result) {
@@ -1485,6 +1476,12 @@ uint32_t OutOfProcessInstance::GetBackgroundColor() {
return background_color_;
}
+void OutOfProcessInstance::CancelBrowserDownload() {
+ pp::VarDictionary message;
+ message.Set(kType, kJSCancelStreamUrlType);
+ PostMessage(message);
+}
+
void OutOfProcessInstance::IsSelectingChanged(bool is_selecting) {
pp::VarDictionary message;
message.Set(kType, kJSSetIsSelectingType);

Powered by Google App Engine
This is Rietveld 408576698