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

Side by Side Diff: chrome/browser/net/url_request_mock_link_doctor_job.h

Issue 10855209: Refactoring: ProtocolHandler::MaybeCreateJob takes NetworkDelegate as argument (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Latest merge Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // A net::URLRequestJob class that substitutes LinkDoctor requests. 5 // A net::URLRequestJob class that substitutes LinkDoctor requests.
6 6
7 #ifndef CHROME_BROWSER_NET_URL_REQUEST_MOCK_LINK_DOCTOR_JOB_H_ 7 #ifndef CHROME_BROWSER_NET_URL_REQUEST_MOCK_LINK_DOCTOR_JOB_H_
8 #define CHROME_BROWSER_NET_URL_REQUEST_MOCK_LINK_DOCTOR_JOB_H_ 8 #define CHROME_BROWSER_NET_URL_REQUEST_MOCK_LINK_DOCTOR_JOB_H_
9 9
10 #include "content/test/net/url_request_mock_http_job.h" 10 #include "content/test/net/url_request_mock_http_job.h"
11 11
12 class URLRequestMockLinkDoctorJob : public URLRequestMockHTTPJob { 12 class URLRequestMockLinkDoctorJob : public URLRequestMockHTTPJob {
13 public: 13 public:
14 explicit URLRequestMockLinkDoctorJob(net::URLRequest* request); 14 URLRequestMockLinkDoctorJob(net::URLRequest* request,
15 net::NetworkDelegate* network_delegate);
15 16
16 static net::URLRequest::ProtocolFactory Factory; 17 static net::URLRequest::ProtocolFactory Factory;
17 18
18 // Adds the testing URLs to the net::URLRequestFilter. 19 // Adds the testing URLs to the net::URLRequestFilter.
19 static void AddUrlHandler(); 20 static void AddUrlHandler();
20 21
21 private: 22 private:
22 virtual ~URLRequestMockLinkDoctorJob() {} 23 virtual ~URLRequestMockLinkDoctorJob() {}
23 }; 24 };
24 25
25 #endif // CHROME_BROWSER_NET_URL_REQUEST_MOCK_LINK_DOCTOR_JOB_H_ 26 #endif // CHROME_BROWSER_NET_URL_REQUEST_MOCK_LINK_DOCTOR_JOB_H_
OLDNEW
« no previous file with comments | « chrome/browser/net/connect_interceptor.cc ('k') | chrome/browser/net/url_request_mock_link_doctor_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698