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

Unified Diff: chrome/browser/nacl_host/pnacl_translation_cache.h

Issue 20737002: Change the API of disk_cache::CreateCacheBackend to use scoped_ptr (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix new test Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/nacl_host/pnacl_translation_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/nacl_host/pnacl_translation_cache.h
diff --git a/chrome/browser/nacl_host/pnacl_translation_cache.h b/chrome/browser/nacl_host/pnacl_translation_cache.h
index 1cd51ee4b092c6fb4f2555d718a1c04fb0fb4f49..8f2d9acb2015b99ad55554db593524e3411517b1 100644
--- a/chrome/browser/nacl_host/pnacl_translation_cache.h
+++ b/chrome/browser/nacl_host/pnacl_translation_cache.h
@@ -77,7 +77,7 @@ class PnaclTranslationCache
// PnaclTranslationCacheEntry should only use the
// OpComplete and backend methods on PnaclTranslationCache.
void OpComplete(PnaclTranslationCacheEntry* entry);
- disk_cache::Backend* backend() { return disk_cache_; }
+ disk_cache::Backend* backend() { return disk_cache_.get(); }
int InitWithDiskBackend(const base::FilePath& disk_cache_dir,
int cache_size,
@@ -92,7 +92,7 @@ class PnaclTranslationCache
void OnCreateBackendComplete(int rv);
- disk_cache::Backend* disk_cache_;
+ scoped_ptr<disk_cache::Backend> disk_cache_;
CompletionCallback init_callback_;
bool in_memory_;
std::map<void*, scoped_refptr<PnaclTranslationCacheEntry> > open_entries_;
« no previous file with comments | « no previous file | chrome/browser/nacl_host/pnacl_translation_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698