Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(505)

Side by Side Diff: net/url_request/url_request_about_job.h

Issue 11931024: Removed static factories for data, ftp, file, and about jobs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync (r198785) Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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> 8 #include <string>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "net/url_request/url_request.h" 11 #include "net/url_request/url_request.h"
12 #include "net/url_request/url_request_job.h" 12 #include "net/url_request/url_request_job.h"
13 13
14 namespace net { 14 namespace net {
15 15
16 class NET_EXPORT URLRequestAboutJob : public URLRequestJob { 16 class NET_EXPORT URLRequestAboutJob : public URLRequestJob {
17 public: 17 public:
18 URLRequestAboutJob(URLRequest* request, NetworkDelegate* network_delegate); 18 URLRequestAboutJob(URLRequest* request, NetworkDelegate* network_delegate);
19 19
20 static URLRequest::ProtocolFactory Factory;
21
22 // URLRequestJob: 20 // URLRequestJob:
23 virtual void Start() OVERRIDE; 21 virtual void Start() OVERRIDE;
24 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE; 22 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE;
25 23
26 private: 24 private:
27 virtual ~URLRequestAboutJob(); 25 virtual ~URLRequestAboutJob();
28 26
29 void StartAsync(); 27 void StartAsync();
30 28
31 base::WeakPtrFactory<URLRequestAboutJob> weak_factory_; 29 base::WeakPtrFactory<URLRequestAboutJob> weak_factory_;
32 }; 30 };
33 31
34 } // namespace net 32 } // namespace net
35 33
36 #endif // NET_URL_REQUEST_URL_REQUEST_ABOUT_JOB_H_ 34 #endif // NET_URL_REQUEST_URL_REQUEST_ABOUT_JOB_H_
OLDNEW
« no previous file with comments | « net/url_request/protocol_intercept_job_factory.cc ('k') | net/url_request/url_request_about_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698