OLD | NEW |
1 // Copyright (c) 2009 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 #ifndef NET_URL_REQUEST_URL_REQUEST_DATA_JOB_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_DATA_JOB_H_ |
6 #define NET_URL_REQUEST_URL_REQUEST_DATA_JOB_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_DATA_JOB_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "net/url_request/url_request.h" | 11 #include "net/url_request/url_request.h" |
12 #include "net/url_request/url_request_simple_job.h" | 12 #include "net/url_request/url_request_simple_job.h" |
13 | 13 |
| 14 namespace net { |
14 class URLRequest; | 15 class URLRequest; |
| 16 } // namespace net |
15 | 17 |
16 class URLRequestDataJob : public URLRequestSimpleJob { | 18 class URLRequestDataJob : public URLRequestSimpleJob { |
17 public: | 19 public: |
18 explicit URLRequestDataJob(URLRequest* request); | 20 explicit URLRequestDataJob(net::URLRequest* request); |
19 | 21 |
20 virtual bool GetData(std::string* mime_type, | 22 virtual bool GetData(std::string* mime_type, |
21 std::string* charset, | 23 std::string* charset, |
22 std::string* data) const; | 24 std::string* data) const; |
23 | 25 |
24 static URLRequest::ProtocolFactory Factory; | 26 static net::URLRequest::ProtocolFactory Factory; |
25 | 27 |
26 private: | 28 private: |
27 ~URLRequestDataJob(); | 29 ~URLRequestDataJob(); |
28 | 30 |
29 DISALLOW_COPY_AND_ASSIGN(URLRequestDataJob); | 31 DISALLOW_COPY_AND_ASSIGN(URLRequestDataJob); |
30 }; | 32 }; |
31 | 33 |
32 #endif // NET_URL_REQUEST_URL_REQUEST_DATA_JOB_H_ | 34 #endif // NET_URL_REQUEST_URL_REQUEST_DATA_JOB_H_ |
33 | |
OLD | NEW |