| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "pdf/document_loader.h" | 5 #include "pdf/document_loader.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
| 7 #include "base/logging.h" | 10 #include "base/logging.h" |
| 8 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
| 9 #include "net/http/http_util.h" | 12 #include "net/http/http_util.h" |
| 10 #include "ppapi/c/pp_errors.h" | 13 #include "ppapi/c/pp_errors.h" |
| 11 #include "ppapi/cpp/url_loader.h" | 14 #include "ppapi/cpp/url_loader.h" |
| 12 #include "ppapi/cpp/url_request_info.h" | 15 #include "ppapi/cpp/url_request_info.h" |
| 13 #include "ppapi/cpp/url_response_info.h" | 16 #include "ppapi/cpp/url_response_info.h" |
| 14 | 17 |
| 15 namespace chrome_pdf { | 18 namespace chrome_pdf { |
| 16 | 19 |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 | 534 |
| 532 void DocumentLoader::UpdateRendering() { | 535 void DocumentLoader::UpdateRendering() { |
| 533 if (header_request_) | 536 if (header_request_) |
| 534 client_->OnPartialDocumentLoaded(); | 537 client_->OnPartialDocumentLoaded(); |
| 535 else | 538 else |
| 536 client_->OnPendingRequestComplete(); | 539 client_->OnPendingRequestComplete(); |
| 537 header_request_ = false; | 540 header_request_ = false; |
| 538 } | 541 } |
| 539 | 542 |
| 540 } // namespace chrome_pdf | 543 } // namespace chrome_pdf |
| OLD | NEW |