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

Unified Diff: content/browser/net/url_request_mock_http_job.h

Issue 6973052: When the download folder does not exist, change the download folder to a user's "Downloads" (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Redirect "http://mock.testfile.http/<random path>" to "chrome/test/data/a.htm" Created 9 years, 4 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 | « content/browser/download/save_package.cc ('k') | content/browser/tab_contents/tab_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/net/url_request_mock_http_job.h
diff --git a/content/browser/net/url_request_mock_http_job.h b/content/browser/net/url_request_mock_http_job.h
index 8c6b5fbfa13de4b53d789957ebbfa390f390c6cf..2b34df4d8799b763be08f38591ed26e493ff7cd2 100644
--- a/content/browser/net/url_request_mock_http_job.h
+++ b/content/browser/net/url_request_mock_http_job.h
@@ -23,7 +23,9 @@ class URLRequestMockHTTPJob : public net::URLRequestFileJob {
virtual void GetResponseInfo(net::HttpResponseInfo* info);
virtual bool IsRedirectResponse(GURL* location, int* http_status_code);
- static net::URLRequest::ProtocolFactory Factory;
+ // Generate a url request job on the DIR_TEST_DATA directory.
+ static net::URLRequestJob* Factory(
+ net::URLRequest* request, const std::string& scheme);
haraken1 2011/08/10 12:55:14 This is just a refactoring.
// Adds the testing URLs to the net::URLRequestFilter.
static void AddUrlHandler(const FilePath& base_path);
« no previous file with comments | « content/browser/download/save_package.cc ('k') | content/browser/tab_contents/tab_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698