summaryrefslogtreecommitdiffstats
path: root/base/memory/ref_counted_memory.h
diff options
context:
space:
mode:
authorestade <estade@chromium.org>2016-01-07 09:19:39 -0800
committerCommit bot <commit-bot@chromium.org>2016-01-07 17:20:46 +0000
commitb6178e6fa8ed5784f8ce30fc3d31ebc228da83bd (patch)
tree0bb860f9ab031a3574cdf1a83aeac7ff9a539ac8 /base/memory/ref_counted_memory.h
parent8cb6c4f240200ba511423396646aafffce6d8a62 (diff)
downloadchromium_src-b6178e6fa8ed5784f8ce30fc3d31ebc228da83bd.zip
chromium_src-b6178e6fa8ed5784f8ce30fc3d31ebc228da83bd.tar.gz
chromium_src-b6178e6fa8ed5784f8ce30fc3d31ebc228da83bd.tar.bz2
Change GotDataCallback to scoped_refptr<base::RefCountedMemory>
BUG=571198 Review URL: https://codereview.chromium.org/1536173002 Cr-Commit-Position: refs/heads/master@{#368097}
Diffstat (limited to 'base/memory/ref_counted_memory.h')
-rw-r--r--base/memory/ref_counted_memory.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/memory/ref_counted_memory.h b/base/memory/ref_counted_memory.h
index 0372c87..f37a860 100644
--- a/base/memory/ref_counted_memory.h
+++ b/base/memory/ref_counted_memory.h
@@ -107,7 +107,7 @@ class BASE_EXPORT RefCountedString : public RefCountedMemory {
// Constructs a RefCountedString object by performing a swap. (To non
// destructively build a RefCountedString, use the default constructor and
// copy into object->data()).
- static RefCountedString* TakeString(std::string* to_destroy);
+ static scoped_refptr<RefCountedString> TakeString(std::string* to_destroy);
// Overridden from RefCountedMemory:
const unsigned char* front() const override;