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

Unified Diff: net/url_request/url_request_test_util.h

Issue 11293252: Change Interceptors into URLRequestJobFactory::ProtocolHandlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address erikwright's third round of comments Created 8 years 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: net/url_request/url_request_test_util.h
diff --git a/net/url_request/url_request_test_util.h b/net/url_request/url_request_test_util.h
index 323efb22266cbdb688285a2977fd26df1a99b2f5..378dbe880e1e7c71e393e3b13cc9084827abe035 100644
--- a/net/url_request/url_request_test_util.h
+++ b/net/url_request/url_request_test_util.h
@@ -301,18 +301,11 @@ class ScopedCustomUrlRequestTestHttpHost {
//-----------------------------------------------------------------------------
// A simple Interceptor that returns a pre-built URLRequestJob only once.
mmenke 2012/12/11 17:22:38 Interceptor -> ProtocolHandler.
-class TestJobInterceptor : public URLRequestJobFactory::Interceptor {
+class TestJobInterceptor : public URLRequestJobFactory::ProtocolHandler {
public:
TestJobInterceptor();
- virtual URLRequestJob* MaybeIntercept(
- URLRequest* request,
- NetworkDelegate* network_delegate) const OVERRIDE;
- virtual URLRequestJob* MaybeInterceptRedirect(
- const GURL& location,
- URLRequest* request,
- NetworkDelegate* network_delegate) const OVERRIDE;
- virtual URLRequestJob* MaybeInterceptResponse(
+ virtual URLRequestJob* MaybeCreateJob(
URLRequest* request,
NetworkDelegate* network_delegate) const OVERRIDE;
void set_main_intercept_job(URLRequestJob* job);

Powered by Google App Engine
This is Rietveld 408576698