OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_URL_REQUEST_URL_REQUEST_ABOUT_JOB_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_ABOUT_JOB_H_ |
6 #define NET_URL_REQUEST_URL_REQUEST_ABOUT_JOB_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_ABOUT_JOB_H_ |
7 | 7 |
| 8 #include <string> |
| 9 |
8 #include "net/url_request/url_request.h" | 10 #include "net/url_request/url_request.h" |
9 #include "net/url_request/url_request_job.h" | 11 #include "net/url_request/url_request_job.h" |
10 | 12 |
11 class URLRequestAboutJob : public URLRequestJob { | 13 class URLRequestAboutJob : public URLRequestJob { |
12 public: | 14 public: |
13 URLRequestAboutJob(URLRequest* request); | 15 explicit URLRequestAboutJob(URLRequest* request); |
14 | 16 |
15 virtual void Start(); | 17 virtual void Start(); |
16 virtual bool GetMimeType(std::string* mime_type); | 18 virtual bool GetMimeType(std::string* mime_type) const; |
17 | 19 |
18 static URLRequest::ProtocolFactory Factory; | 20 static URLRequest::ProtocolFactory Factory; |
19 | 21 |
20 private: | 22 private: |
21 void StartAsync(); | 23 void StartAsync(); |
22 }; | 24 }; |
23 | 25 |
24 #endif // NET_URL_REQUEST_URL_REQUEST_ABOUT_JOB_H_ | 26 #endif // NET_URL_REQUEST_URL_REQUEST_ABOUT_JOB_H_ |
25 | 27 |
OLD | NEW |