Roll src/third_party/WebKit 9f7fb92:f103b33 (svn 202621:202622)
[chromium-blink-merge.git] / components / about_handler / url_request_about_job.h
blobe37c568b8d0001c0cc80dfb1d1ce423f155dbbb3
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.
5 #ifndef COMPONENTS_ABOUT_HANDLER_URL_REQUEST_ABOUT_JOB_H_
6 #define COMPONENTS_ABOUT_HANDLER_URL_REQUEST_ABOUT_JOB_H_
8 #include <string>
10 #include "base/memory/weak_ptr.h"
11 #include "net/url_request/url_request.h"
12 #include "net/url_request/url_request_job.h"
14 namespace about_handler {
16 class URLRequestAboutJob : public net::URLRequestJob {
17 public:
18 URLRequestAboutJob(net::URLRequest* request,
19 net::NetworkDelegate* network_delegate);
21 // URLRequestJob:
22 void Start() override;
23 bool GetMimeType(std::string* mime_type) const override;
25 private:
26 ~URLRequestAboutJob() override;
28 void StartAsync();
30 base::WeakPtrFactory<URLRequestAboutJob> weak_factory_;
33 } // namespace about_handler
35 #endif // COMPONENTS_ABOUT_HANDLER_URL_REQUEST_ABOUT_JOB_H_