diff options
author | dschuff@chromium.org <dschuff@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-04 21:34:25 +0000 |
---|---|---|
committer | dschuff@chromium.org <dschuff@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-04 21:34:25 +0000 |
commit | a675c011e16db84fc2022a34d25a8c03bf76cdcd (patch) | |
tree | 1ad1e0006ad26f651a85961570ccc8f13ab7746b /components | |
parent | 50c79657b611ac92cbe54dc94ecb2f60d802688b (diff) | |
download | chromium_src-a675c011e16db84fc2022a34d25a8c03bf76cdcd.zip chromium_src-a675c011e16db84fc2022a34d25a8c03bf76cdcd.tar.gz chromium_src-a675c011e16db84fc2022a34d25a8c03bf76cdcd.tar.bz2 |
Handle cache-control:no-store header in PNaCl translation cache
Pexe files with the cache-control:no-store header should not be cached.
Add a field to the PnaclCacheInfo struct, plumb the value all the way
from the plugin to the browser, and treat it basically the same way we
currently treat incognito translations (since we currently don't have an
off-the-record cache for those).
R=jvoung@chromium.org
BUG=none, noticed this was missing when doing cleanup
Review URL: https://chromiumcodereview.appspot.com/23458015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221275 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components')
-rw-r--r-- | components/nacl/common/nacl_host_messages.h | 1 | ||||
-rw-r--r-- | components/nacl/common/pnacl_types.cc | 3 | ||||
-rw-r--r-- | components/nacl/common/pnacl_types.h | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/components/nacl/common/nacl_host_messages.h b/components/nacl/common/nacl_host_messages.h index 0e3880a..4afa1c7 100644 --- a/components/nacl/common/nacl_host_messages.h +++ b/components/nacl/common/nacl_host_messages.h @@ -42,6 +42,7 @@ IPC_STRUCT_TRAITS_BEGIN(nacl::PnaclCacheInfo) IPC_STRUCT_TRAITS_MEMBER(opt_level) IPC_STRUCT_TRAITS_MEMBER(last_modified) IPC_STRUCT_TRAITS_MEMBER(etag) + IPC_STRUCT_TRAITS_MEMBER(has_no_store_header) IPC_STRUCT_TRAITS_END() // A renderer sends this to the browser process when it wants to start diff --git a/components/nacl/common/pnacl_types.cc b/components/nacl/common/pnacl_types.cc index 6c43319..75384b6 100644 --- a/components/nacl/common/pnacl_types.cc +++ b/components/nacl/common/pnacl_types.cc @@ -6,7 +6,8 @@ namespace nacl { -PnaclCacheInfo::PnaclCacheInfo() {} +PnaclCacheInfo::PnaclCacheInfo() + : abi_version(0), opt_level(0), has_no_store_header(0) {} PnaclCacheInfo::~PnaclCacheInfo() {} // static diff --git a/components/nacl/common/pnacl_types.h b/components/nacl/common/pnacl_types.h index 3fc405a..d1a12c8 100644 --- a/components/nacl/common/pnacl_types.h +++ b/components/nacl/common/pnacl_types.h @@ -27,6 +27,7 @@ struct PnaclCacheInfo { int opt_level; base::Time last_modified; std::string etag; + bool has_no_store_header; }; // Progress information for PNaCl on-demand installs. |