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); |