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

Unified Diff: chrome/common/net/url_fetcher.h

Issue 6974011: Don't send a reference to a string that goes out of scope. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add bug to comments. Created 9 years, 7 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/common/net/url_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/net/url_fetcher.h
diff --git a/chrome/common/net/url_fetcher.h b/chrome/common/net/url_fetcher.h
index c3cf868d78e4fae619969f2b11eaed0dd7d10c0a..3abc1ea1fa9b0da3496e2ed424e9505f47e8c65c 100644
--- a/chrome/common/net/url_fetcher.h
+++ b/chrome/common/net/url_fetcher.h
@@ -269,6 +269,12 @@ class URLFetcher {
// Used by tests.
const std::string& upload_data() const;
+ // Return a reference to the string data fetched. Response type must
+ // be STRING, or this will CHECK. This method exists to support the
+ // old signiture to OnURLFetchComplete(), and will be removed as part
+ // of crbug.com/83592 .
+ const std::string& GetResponseStringRef() const;
+
private:
friend class URLFetcherTest;
friend class TestURLFetcher;
« no previous file with comments | « no previous file | chrome/common/net/url_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698