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

Side by Side Diff: ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc

Issue 23458015: Handle cache-control:no-store header in PNaCl translation cache (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix iterator use Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
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 #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 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 int32_t nexe_fd_err = 514 int32_t nexe_fd_err =
515 plugin_->nacl_interface()->GetNexeFd( 515 plugin_->nacl_interface()->GetNexeFd(
516 plugin_->pp_instance(), 516 plugin_->pp_instance(),
517 streaming_downloader_->url().c_str(), 517 streaming_downloader_->url().c_str(),
518 // TODO(dschuff): Get this value from the pnacl json file after it 518 // TODO(dschuff): Get this value from the pnacl json file after it
519 // rolls in from NaCl. 519 // rolls in from NaCl.
520 1, 520 1,
521 pnacl_options_.opt_level(), 521 pnacl_options_.opt_level(),
522 parser.GetHeader("last-modified").c_str(), 522 parser.GetHeader("last-modified").c_str(),
523 parser.GetHeader("etag").c_str(), 523 parser.GetHeader("etag").c_str(),
524 PP_FromBool(parser.CacheControlNoStore()),
524 &is_cache_hit_, 525 &is_cache_hit_,
525 temp_nexe_file_->existing_handle(), 526 temp_nexe_file_->existing_handle(),
526 cb.pp_completion_callback()); 527 cb.pp_completion_callback());
527 if (nexe_fd_err < PP_OK_COMPLETIONPENDING) { 528 if (nexe_fd_err < PP_OK_COMPLETIONPENDING) {
528 ReportPpapiError(ERROR_PNACL_CREATE_TEMP, nexe_fd_err, 529 ReportPpapiError(ERROR_PNACL_CREATE_TEMP, nexe_fd_err,
529 nacl::string("Call to GetNexeFd failed")); 530 nacl::string("Call to GetNexeFd failed"));
530 } 531 }
531 } 532 }
532 533
533 void PnaclCoordinator::NexeFdDidOpen(int32_t pp_error) { 534 void PnaclCoordinator::NexeFdDidOpen(int32_t pp_error) {
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 obj_file_.get(), 699 obj_file_.get(),
699 temp_nexe_file_.get(), 700 temp_nexe_file_.get(),
700 &error_info_, 701 &error_info_,
701 resources_.get(), 702 resources_.get(),
702 &pnacl_options_, 703 &pnacl_options_,
703 this, 704 this,
704 plugin_); 705 plugin_);
705 } 706 }
706 707
707 } // namespace plugin 708 } // namespace plugin
OLDNEW
« no previous file with comments | « ppapi/c/private/ppb_nacl_private.h ('k') | ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698