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

Unified Diff: chrome/browser/net/url_request_slow_http_job.h

Issue 271066: Use FilePath in URLRequestMocks. (Closed)
Patch Set: Created 11 years, 2 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
Index: chrome/browser/net/url_request_slow_http_job.h
diff --git a/chrome/browser/net/url_request_slow_http_job.h b/chrome/browser/net/url_request_slow_http_job.h
index d51e2d21de5d0783520d7b037d209d50563f5322..5385ff8bc31284a81e506f244a03a069607b1e0b 100644
--- a/chrome/browser/net/url_request_slow_http_job.h
+++ b/chrome/browser/net/url_request_slow_http_job.h
@@ -21,10 +21,10 @@ class URLRequestSlowHTTPJob : public URLRequestMockHTTPJob {
static URLRequest::ProtocolFactory Factory;
// Adds the testing URLs to the URLRequestFilter.
- static void AddUrlHandler(const std::wstring& base_path);
+ static void AddUrlHandler(const FilePath& base_path);
// Given the path to a file relative to base_path_, construct a mock URL.
- static GURL GetMockUrl(const std::wstring& path);
+ static GURL GetMockUrl(const FilePath& path);
virtual void Start();
@@ -35,7 +35,7 @@ class URLRequestSlowHTTPJob : public URLRequestMockHTTPJob {
// This is the file path leading to the root of the directory to use as the
// root of the http server.
- static std::wstring base_path_;
+ static FilePath base_path_;
};
# endif // CHROME_BROWSER_NET_URL_REQUEST_SLOW_HTTP_JOB_H_

Powered by Google App Engine
This is Rietveld 408576698