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

Unified Diff: content/test/net/url_request_prepackaged_interceptor.cc

Issue 12208057: Add explicit base to FilePath. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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/test/net/url_request_mock_http_job.cc ('k') | content/test/test_content_browser_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/net/url_request_prepackaged_interceptor.cc
diff --git a/content/test/net/url_request_prepackaged_interceptor.cc b/content/test/net/url_request_prepackaged_interceptor.cc
index 167f9c7b196c33547f2fd340bbf631fc570c082b..11ad22215278998a69c443a4a173e59026185b33 100644
--- a/content/test/net/url_request_prepackaged_interceptor.cc
+++ b/content/test/net/url_request_prepackaged_interceptor.cc
@@ -22,7 +22,7 @@ class URLRequestPrepackagedJob : public net::URLRequestFileJob {
public:
URLRequestPrepackagedJob(net::URLRequest* request,
net::NetworkDelegate* network_delegate,
- const FilePath& file_path)
+ const base::FilePath& file_path)
: net::URLRequestFileJob(request, network_delegate, file_path) {}
virtual int GetResponseCode() const { return 200; }
@@ -56,7 +56,7 @@ class URLRequestPrepackagedInterceptor::Delegate
// hostname of |url| must be "localhost" to avoid DNS lookups, and the scheme
// must be "http".
void SetResponse(const GURL& url,
- const FilePath& path,
+ const base::FilePath& path,
bool ignore_query) {
CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
// It's ok to do a blocking disk access on this thread; this class
@@ -77,7 +77,7 @@ class URLRequestPrepackagedInterceptor::Delegate
}
private:
- typedef std::map<GURL, FilePath> ResponseMap;
+ typedef std::map<GURL, base::FilePath> ResponseMap;
// When computing matches, this ignores the query parameters of the url.
virtual net::URLRequestJob* MaybeCreateJob(
@@ -135,7 +135,7 @@ URLRequestPrepackagedInterceptor::~URLRequestPrepackagedInterceptor() {
}
void URLRequestPrepackagedInterceptor::SetResponse(const GURL& url,
- const FilePath& path) {
+ const base::FilePath& path) {
CHECK_EQ("http", url.scheme());
CHECK_EQ("localhost", url.host());
BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
@@ -146,7 +146,7 @@ void URLRequestPrepackagedInterceptor::SetResponse(const GURL& url,
void URLRequestPrepackagedInterceptor::SetResponseIgnoreQuery(
const GURL& url,
- const FilePath& path) {
+ const base::FilePath& path) {
CHECK_EQ("http", url.scheme());
CHECK_EQ("localhost", url.host());
BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
« no previous file with comments | « content/test/net/url_request_mock_http_job.cc ('k') | content/test/test_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698