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 3 // found in the LICENSE file. 4 5 #ifndef NET_URL_REQUEST_URL_REQUEST_DATA_JOB_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_DATA_JOB_H_ 7 8 #include <string> 9 10 #include "net/url_request/url_request.h" 11 #include "net/url_request/url_request_simple_job.h" 12 13 namespace net { 14 15 class URLRequest; 16 17 class URLRequestDataJob : public URLRequestSimpleJob { 18 public: 19 URLRequestDataJob(URLRequest* request, NetworkDelegate* network_delegate); 20 21 // URLRequestSimpleJob 22 virtual int GetData(std::string* mime_type, 23 std::string* charset, 24 std::string* data, 25 const CompletionCallback& callback) const OVERRIDE; 26 27 private: 28 virtual ~URLRequestDataJob(); 29 30 DISALLOW_COPY_AND_ASSIGN(URLRequestDataJob); 31 }; 32 33 } // namespace net 34 35 #endif // NET_URL_REQUEST_URL_REQUEST_DATA_JOB_H_ 36