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

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 windows specific file. 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
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 96f03c01246d5eebb4927b8cdc86242e970d1907..117f638c8f54352890dd8b38ffe97439bf28b086 100644
--- a/chrome/browser/nacl_host/pnacl_translation_cache.h
+++ b/chrome/browser/nacl_host/pnacl_translation_cache.h
@@ -62,7 +62,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,
@@ -77,7 +77,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') | net/disk_cache/backend_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698