• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2011 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_ABOUT_JOB_H_
6 #define NET_URL_REQUEST_URL_REQUEST_ABOUT_JOB_H_
7 #pragma once
8 
9 #include <string>
10 
11 #include "base/task.h"
12 #include "net/url_request/url_request.h"
13 #include "net/url_request/url_request_job.h"
14 
15 namespace net {
16 
17 class URLRequestAboutJob : public URLRequestJob {
18  public:
19   explicit URLRequestAboutJob(URLRequest* request);
20 
21   static URLRequest::ProtocolFactory Factory;
22 
23   // URLRequestJob:
24   virtual void Start();
25   virtual bool GetMimeType(std::string* mime_type) const;
26 
27  private:
28   virtual ~URLRequestAboutJob();
29 
30   void StartAsync();
31 
32   ScopedRunnableMethodFactory<URLRequestAboutJob> method_factory_;
33 };
34 
35 }  // namespace net
36 
37 #endif  // NET_URL_REQUEST_URL_REQUEST_ABOUT_JOB_H_
38