OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 pulls the content and http headers from disk. | 5 // A net::URLRequestJob class that pulls the content and http headers from disk. |
6 | 6 |
7 #ifndef CONTENT_TEST_NET_URL_REQUEST_MOCK_HTTP_JOB_H_ | 7 #ifndef CONTENT_TEST_NET_URL_REQUEST_MOCK_HTTP_JOB_H_ |
8 #define CONTENT_TEST_NET_URL_REQUEST_MOCK_HTTP_JOB_H_ | 8 #define CONTENT_TEST_NET_URL_REQUEST_MOCK_HTTP_JOB_H_ |
9 #pragma once | |
10 | 9 |
11 #include <string> | 10 #include <string> |
12 | 11 |
13 #include "net/url_request/url_request_file_job.h" | 12 #include "net/url_request/url_request_file_job.h" |
14 | 13 |
15 class FilePath; | 14 class FilePath; |
16 | 15 |
17 class URLRequestMockHTTPJob : public net::URLRequestFileJob { | 16 class URLRequestMockHTTPJob : public net::URLRequestFileJob { |
18 public: | 17 public: |
19 URLRequestMockHTTPJob(net::URLRequest* request, const FilePath& file_path); | 18 URLRequestMockHTTPJob(net::URLRequest* request, const FilePath& file_path); |
(...skipping 23 matching lines...) Expand all Loading... |
43 | 42 |
44 static FilePath GetOnDiskPath(const FilePath& base_path, | 43 static FilePath GetOnDiskPath(const FilePath& base_path, |
45 net::URLRequest* request, | 44 net::URLRequest* request, |
46 const std::string& scheme); | 45 const std::string& scheme); |
47 | 46 |
48 private: | 47 private: |
49 void GetResponseInfoConst(net::HttpResponseInfo* info) const; | 48 void GetResponseInfoConst(net::HttpResponseInfo* info) const; |
50 }; | 49 }; |
51 | 50 |
52 #endif // CONTENT_TEST_NET_URL_REQUEST_MOCK_HTTP_JOB_H_ | 51 #endif // CONTENT_TEST_NET_URL_REQUEST_MOCK_HTTP_JOB_H_ |
OLD | NEW |