OLD | NEW |
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 #pragma once | 9 #pragma once |
10 | 10 |
11 #include "chrome/browser/net/url_request_mock_http_job.h" | 11 #include "chrome/browser/net/url_request_mock_http_job.h" |
12 | 12 |
13 class URLRequestMockLinkDoctorJob : public URLRequestMockHTTPJob { | 13 class URLRequestMockLinkDoctorJob : public URLRequestMockHTTPJob { |
14 public: | 14 public: |
15 explicit URLRequestMockLinkDoctorJob(net::URLRequest* request); | 15 explicit URLRequestMockLinkDoctorJob(net::URLRequest* request); |
16 | 16 |
17 static net::URLRequest::ProtocolFactory Factory; | 17 static net::URLRequest::ProtocolFactory Factory; |
18 | 18 |
19 // Adds the testing URLs to the URLRequestFilter. | 19 // Adds the testing URLs to the net::URLRequestFilter. |
20 static void AddUrlHandler(); | 20 static void AddUrlHandler(); |
21 | 21 |
22 private: | 22 private: |
23 ~URLRequestMockLinkDoctorJob() {} | 23 ~URLRequestMockLinkDoctorJob() {} |
24 }; | 24 }; |
25 | 25 |
26 #endif // CHROME_BROWSER_NET_URL_REQUEST_MOCK_LINK_DOCTOR_JOB_H_ | 26 #endif // CHROME_BROWSER_NET_URL_REQUEST_MOCK_LINK_DOCTOR_JOB_H_ |
OLD | NEW |