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

Side by Side Diff: net/url_request/url_request_data_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
« no previous file with comments | « net/url_request/url_request_context_storage.cc ('k') | net/url_request/url_request_data_job.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_DATA_JOB_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_DATA_JOB_H_
6 #define NET_URL_REQUEST_URL_REQUEST_DATA_JOB_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_DATA_JOB_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "net/url_request/url_request.h" 10 #include "net/url_request/url_request.h"
11 #include "net/url_request/url_request_simple_job.h" 11 #include "net/url_request/url_request_simple_job.h"
12 12
13 namespace net { 13 namespace net {
14 14
15 class URLRequest; 15 class URLRequest;
16 16
17 class URLRequestDataJob : public URLRequestSimpleJob { 17 class URLRequestDataJob : public URLRequestSimpleJob {
18 public: 18 public:
19 URLRequestDataJob(URLRequest* request, NetworkDelegate* network_delegate); 19 URLRequestDataJob(URLRequest* request, NetworkDelegate* network_delegate);
20 20
21 static URLRequest::ProtocolFactory Factory;
22
23 // URLRequestSimpleJob 21 // URLRequestSimpleJob
24 virtual int GetData(std::string* mime_type, 22 virtual int GetData(std::string* mime_type,
25 std::string* charset, 23 std::string* charset,
26 std::string* data, 24 std::string* data,
27 const CompletionCallback& callback) const OVERRIDE; 25 const CompletionCallback& callback) const OVERRIDE;
28 26
29 private: 27 private:
30 virtual ~URLRequestDataJob(); 28 virtual ~URLRequestDataJob();
31 29
32 DISALLOW_COPY_AND_ASSIGN(URLRequestDataJob); 30 DISALLOW_COPY_AND_ASSIGN(URLRequestDataJob);
33 }; 31 };
34 32
35 } // namespace net 33 } // namespace net
36 34
37 #endif // NET_URL_REQUEST_URL_REQUEST_DATA_JOB_H_ 35 #endif // NET_URL_REQUEST_URL_REQUEST_DATA_JOB_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_context_storage.cc ('k') | net/url_request/url_request_data_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698