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

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

Issue 300693005: Make URLRequestFilter use URLRequestInterceptors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge Created 6 years, 6 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 | « chrome/browser/prerender/prerender_browsertest.cc ('k') | content/test/net/url_request_mock_http_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/net/url_request_mock_http_job.h
diff --git a/content/test/net/url_request_mock_http_job.h b/content/test/net/url_request_mock_http_job.h
index e85f4dc01b27cde219f80ebbcef7a26447d91b7e..b6d13d87e94126572dbf6f3c811bb6b6e2528868 100644
--- a/content/test/net/url_request_mock_http_job.h
+++ b/content/test/net/url_request_mock_http_job.h
@@ -10,12 +10,15 @@
#include <string>
#include "net/url_request/url_request_file_job.h"
-#include "net/url_request/url_request_job_factory.h"
namespace base {
class FilePath;
}
+namespace net {
+class URLRequestInterceptor;
+}
+
namespace content {
class URLRequestMockHTTPJob : public net::URLRequestFileJob {
@@ -51,14 +54,14 @@ class URLRequestMockHTTPJob : public net::URLRequestFileJob {
// URLRequestMockHTTPJob's responding like an HTTP server. |base_path| is the
// file path leading to the root of the directory to use as the root of the
// HTTP server.
- static scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
- CreateProtocolHandler(const base::FilePath& base_path);
+ static scoped_ptr<net::URLRequestInterceptor>
+ CreateInterceptor(const base::FilePath& base_path);
// Returns a net::URLRequestJobFactory::ProtocolHandler that serves
// URLRequestMockHTTPJob's responding like an HTTP server. It responds to all
// requests with the contents of |file|.
- static scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
- CreateProtocolHandlerForSingleFile(const base::FilePath& file);
+ static scoped_ptr<net::URLRequestInterceptor>
+ CreateInterceptorForSingleFile(const base::FilePath& file);
protected:
virtual ~URLRequestMockHTTPJob();
« no previous file with comments | « chrome/browser/prerender/prerender_browsertest.cc ('k') | content/test/net/url_request_mock_http_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698