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