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

Unified Diff: content/browser/gpu/shader_disk_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 | « chrome/browser/nacl_host/pnacl_translation_cache.cc ('k') | content/browser/gpu/shader_disk_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/shader_disk_cache.h
diff --git a/content/browser/gpu/shader_disk_cache.h b/content/browser/gpu/shader_disk_cache.h
index d06434ad987f6c9e50e717fef340e780b9f56ad2..051be5876ec6ca8ed97950a13e4f7dde0984ee3a 100644
--- a/content/browser/gpu/shader_disk_cache.h
+++ b/content/browser/gpu/shader_disk_cache.h
@@ -75,7 +75,7 @@ class CONTENT_EXPORT ShaderDiskCache
void CacheCreatedCallback(int rv);
- disk_cache::Backend* backend() { return backend_; }
+ disk_cache::Backend* backend() { return backend_.get(); }
void EntryComplete(void* entry);
void ReadComplete();
@@ -87,7 +87,7 @@ class CONTENT_EXPORT ShaderDiskCache
net::CompletionCallback available_callback_;
net::CompletionCallback cache_complete_callback_;
- disk_cache::Backend* backend_;
+ scoped_ptr<disk_cache::Backend> backend_;
scoped_refptr<ShaderDiskReadHelper> helper_;
std::map<void*, scoped_refptr<ShaderDiskCacheEntry> > entry_map_;
« no previous file with comments | « chrome/browser/nacl_host/pnacl_translation_cache.cc ('k') | content/browser/gpu/shader_disk_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698