Probably broke Win7 Tests (dbg)(6). http://build.chromium.org/p/chromium.win/builders...
[chromium-blink-merge.git] / net / url_request / url_request_data_job.h
blobd9b26214b342d25de6d3ada145e39a73b11a02eb
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.
5 #ifndef NET_URL_REQUEST_URL_REQUEST_DATA_JOB_H_
6 #define NET_URL_REQUEST_URL_REQUEST_DATA_JOB_H_
8 #include <string>
10 #include "net/url_request/url_request.h"
11 #include "net/url_request/url_request_simple_job.h"
13 namespace net {
15 class URLRequest;
17 class URLRequestDataJob : public URLRequestSimpleJob {
18 public:
19 URLRequestDataJob(URLRequest* request, NetworkDelegate* network_delegate);
21 // URLRequestSimpleJob
22 virtual int GetData(std::string* mime_type,
23 std::string* charset,
24 std::string* data,
25 const CompletionCallback& callback) const OVERRIDE;
27 private:
28 virtual ~URLRequestDataJob();
30 DISALLOW_COPY_AND_ASSIGN(URLRequestDataJob);
33 } // namespace net
35 #endif // NET_URL_REQUEST_URL_REQUEST_DATA_JOB_H_