| Index: chrome/common/net/url_fetcher.h
|
| ===================================================================
|
| --- chrome/common/net/url_fetcher.h (revision 86344)
|
| +++ chrome/common/net/url_fetcher.h (working copy)
|
| @@ -263,12 +263,6 @@
|
| 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;
|
|
|
| @@ -281,13 +275,16 @@
|
| // 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();
|
| @@ -307,6 +304,9 @@
|
| // Maximum retries allowed.
|
| int max_retries_;
|
|
|
| + // Where should responses be saved?
|
| + ResponseDestinationType response_destination_;
|
| +
|
| static bool g_interception_enabled;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(URLFetcher);
|
|
|