Home | History | Annotate | Download | only in url_request
      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
      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 class URLRequest;
     14 
     15 class URLRequestDataJob : public URLRequestSimpleJob {
     16  public:
     17   explicit URLRequestDataJob(URLRequest* request);
     18 
     19   virtual bool GetData(std::string* mime_type,
     20                        std::string* charset,
     21                        std::string* data) const;
     22 
     23   static URLRequest::ProtocolFactory Factory;
     24 
     25  private:
     26   ~URLRequestDataJob() {}
     27 
     28   DISALLOW_COPY_AND_ASSIGN(URLRequestDataJob);
     29 };
     30 
     31 #endif  // NET_URL_REQUEST_URL_REQUEST_DATA_JOB_H_
     32 
     33