diff options
Diffstat (limited to 'chrome/browser/nacl_host/nacl_validation_cache.h')
-rw-r--r-- | chrome/browser/nacl_host/nacl_validation_cache.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/nacl_host/nacl_validation_cache.h b/chrome/browser/nacl_host/nacl_validation_cache.h index 8ceb9a7..eace325 100644 --- a/chrome/browser/nacl_host/nacl_validation_cache.h +++ b/chrome/browser/nacl_host/nacl_validation_cache.h @@ -27,12 +27,19 @@ class NaClValidationCache { // Put the validation signature in the database. void SetKnownToValidate(const std::string& signature); + // Should the cache be used? + bool IsEnabled() { + return enabled_; + } + private: typedef base::HashingMRUCache<std::string, bool> ValidationCacheType; ValidationCacheType validation_cache_; std::string validation_cache_key_; + bool enabled_; + DISALLOW_COPY_AND_ASSIGN(NaClValidationCache); }; |