Redirect back to signin page if we complete signin but don't have password.
[chromium-blink-merge.git] / net / url_request / url_request_about_job.h
blobea2b83fed6c4cf81711754977372b82e31f4fde9
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 NET_URL_REQUEST_URL_REQUEST_ABOUT_JOB_H_
6 #define NET_URL_REQUEST_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 net {
16 class NET_EXPORT URLRequestAboutJob : public URLRequestJob {
17 public:
18 URLRequestAboutJob(URLRequest* request, NetworkDelegate* network_delegate);
20 static URLRequest::ProtocolFactory Factory;
22 // URLRequestJob:
23 virtual void Start() OVERRIDE;
24 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE;
26 private:
27 virtual ~URLRequestAboutJob();
29 void StartAsync();
31 base::WeakPtrFactory<URLRequestAboutJob> weak_factory_;
34 } // namespace net
36 #endif // NET_URL_REQUEST_URL_REQUEST_ABOUT_JOB_H_