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

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

Issue 7065008: Move response_container_ into the URLFetcher::Core. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 | « chrome/common/net/test_url_fetcher_factory.cc ('k') | 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 3abc1ea1fa9b0da3496e2ed424e9505f47e8c65c..c3e3170d3165491a4e900cb90bd524be9f192a1b 100644
--- a/chrome/common/net/url_fetcher.h
+++ b/chrome/common/net/url_fetcher.h
@@ -263,6 +263,12 @@ class URLFetcher {
static void CancelAll();
protected:
+ // How should the response be stored?
+ enum ResponseDestinationType {
+ STRING, // Default: In a std::string
+ TEMP_FILE // Write to a temp file
+ };
+
// Returns the delegate.
Delegate* delegate() const;
@@ -275,16 +281,13 @@ class URLFetcher {
// of crbug.com/83592 .
const std::string& GetResponseStringRef() const;
+ void SetResponseDestinationForTesting(ResponseDestinationType);
+ ResponseDestinationType GetResponseDestinationForTesting() const;
+
private:
friend class URLFetcherTest;
friend class TestURLFetcher;
- // How should the response be stored?
- enum ResponseDestinationType {
- STRING, // Default: In a std::string
- TEMP_FILE // Write to a temp file
- };
-
// Only used by URLFetcherTest, returns the number of URLFetcher::Core objects
// actively running.
static int GetNumFetcherCores();
@@ -304,9 +307,6 @@ class URLFetcher {
// Maximum retries allowed.
int max_retries_;
- // Where should responses be saved?
- ResponseDestinationType response_destination_;
-
static bool g_interception_enabled;
DISALLOW_COPY_AND_ASSIGN(URLFetcher);
« no previous file with comments | « chrome/common/net/test_url_fetcher_factory.cc ('k') | chrome/common/net/url_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698