| // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #ifndef NET_URL_REQUEST_URL_REQUEST_DATA_JOB_H_ |
| #define NET_URL_REQUEST_URL_REQUEST_DATA_JOB_H_ |
| #include "net/url_request/url_request.h" |
| #include "net/url_request/url_request_simple_job.h" |
| class URLRequestDataJob : public URLRequestSimpleJob { |
| URLRequestDataJob(URLRequest* request, NetworkDelegate* network_delegate); |
| static URLRequest::ProtocolFactory Factory; |
| virtual int GetData(std::string* mime_type, |
| const CompletionCallback& callback) const OVERRIDE; |
| virtual ~URLRequestDataJob(); |
| DISALLOW_COPY_AND_ASSIGN(URLRequestDataJob); |
| #endif // NET_URL_REQUEST_URL_REQUEST_DATA_JOB_H_ |