| OLD | NEW |
| 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 #include "ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h" | 5 #include "ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "native_client/src/include/checked_cast.h" | 10 #include "native_client/src/include/checked_cast.h" |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 nacl::string headers = streaming_downloader_->GetResponseHeaders(); | 491 nacl::string headers = streaming_downloader_->GetResponseHeaders(); |
| 492 NaClHttpResponseHeaders parser; | 492 NaClHttpResponseHeaders parser; |
| 493 parser.Parse(headers); | 493 parser.Parse(headers); |
| 494 | 494 |
| 495 temp_nexe_file_.reset(new TempFile(plugin_)); | 495 temp_nexe_file_.reset(new TempFile(plugin_)); |
| 496 pp::CompletionCallback cb = | 496 pp::CompletionCallback cb = |
| 497 callback_factory_.NewCallback(&PnaclCoordinator::NexeFdDidOpen); | 497 callback_factory_.NewCallback(&PnaclCoordinator::NexeFdDidOpen); |
| 498 int32_t nexe_fd_err = | 498 int32_t nexe_fd_err = |
| 499 plugin_->nacl_interface()->GetNexeFd( | 499 plugin_->nacl_interface()->GetNexeFd( |
| 500 plugin_->pp_instance(), | 500 plugin_->pp_instance(), |
| 501 streaming_downloader_->url().c_str(), | 501 streaming_downloader_->full_url().c_str(), |
| 502 // TODO(dschuff): Get this value from the pnacl json file after it | 502 // TODO(dschuff): Get this value from the pnacl json file after it |
| 503 // rolls in from NaCl. | 503 // rolls in from NaCl. |
| 504 1, | 504 1, |
| 505 pnacl_options_.opt_level(), | 505 pnacl_options_.opt_level(), |
| 506 parser.GetHeader("last-modified").c_str(), | 506 parser.GetHeader("last-modified").c_str(), |
| 507 parser.GetHeader("etag").c_str(), | 507 parser.GetHeader("etag").c_str(), |
| 508 PP_FromBool(parser.CacheControlNoStore()), | 508 PP_FromBool(parser.CacheControlNoStore()), |
| 509 GetSandboxISA(), | 509 GetSandboxISA(), |
| 510 "", // No extra compile flags yet. | 510 "", // No extra compile flags yet. |
| 511 &is_cache_hit_, | 511 &is_cache_hit_, |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 688 temp_nexe_file_.get(), | 688 temp_nexe_file_.get(), |
| 689 invalid_desc_wrapper_.get(), | 689 invalid_desc_wrapper_.get(), |
| 690 &error_info_, | 690 &error_info_, |
| 691 resources_.get(), | 691 resources_.get(), |
| 692 &pnacl_options_, | 692 &pnacl_options_, |
| 693 this, | 693 this, |
| 694 plugin_); | 694 plugin_); |
| 695 } | 695 } |
| 696 | 696 |
| 697 } // namespace plugin | 697 } // namespace plugin |
| OLD | NEW |