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

Side by Side Diff: net/url_request/url_request_new_ftp_job.cc

Issue 42197: Add command line switch "--new-ftp" for new portable... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Upload before checkin Created 11 years, 9 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_new_ftp_job.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2009 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.
4
5 #include "net/url_request/url_request_new_ftp_job.h"
6
7 #include "base/file_version_info.h"
8 #include "net/base/net_util.h"
9 #include "net/url_request/url_request.h"
10 #include "net/url_request/url_request_context.h"
11 #include "net/url_request/url_request_error_job.h"
12
13
14 URLRequestNewFtpJob::URLRequestNewFtpJob(URLRequest* request)
15 : URLRequestJob(request),
16 server_auth_state_(net::AUTH_STATE_DONT_NEED_AUTH),
17 ALLOW_THIS_IN_INITIALIZER_LIST(
18 start_callback_(this, &URLRequestNewFtpJob::OnStartCompleted)),
19 ALLOW_THIS_IN_INITIALIZER_LIST(
20 read_callback_(this, &URLRequestNewFtpJob::OnReadCompleted)),
21 read_in_progress_(false),
22 context_(request->context()) {
23 }
24
25 URLRequestNewFtpJob::~URLRequestNewFtpJob() {
26 }
27
28 // static
29 URLRequestJob* URLRequestNewFtpJob::Factory(URLRequest* request,
30 const std::string& scheme) {
31 DCHECK(scheme == "ftp");
32
33 if (request->url().has_port() &&
34 !net::IsPortAllowedByFtp(request->url().IntPort()))
35 return new URLRequestErrorJob(request, net::ERR_UNSAFE_PORT);
36
37 DCHECK(request->context());
38 DCHECK(request->context()->ftp_transaction_factory());
39 return new URLRequestNewFtpJob(request);
40 }
41
42 void URLRequestNewFtpJob::Start() {
43 NOTIMPLEMENTED();
44 }
45
46 void URLRequestNewFtpJob::Kill() {
47 NOTIMPLEMENTED();
48 }
49
50 uint64 URLRequestNewFtpJob::GetUploadProgress() const {
51 NOTIMPLEMENTED();
52 return 0;
53 }
54
55 void URLRequestNewFtpJob::GetResponseInfo() {
56 NOTIMPLEMENTED();
57 }
58
59 int URLRequestNewFtpJob::GetResponseCode() {
60 NOTIMPLEMENTED();
61 return -1;
62 }
63
64 bool URLRequestNewFtpJob::GetMoreData() {
65 NOTIMPLEMENTED();
66 return false;
67 }
68
69 bool URLRequestNewFtpJob::ReadRawData(net::IOBuffer* buf,
70 int buf_size,
71 int *bytes_read) {
72 NOTIMPLEMENTED();
73 return false;
74 }
75
76 void URLRequestNewFtpJob::OnStartCompleted(int result) {
77 NOTIMPLEMENTED();
78 }
79
80 void URLRequestNewFtpJob::OnReadCompleted(int result) {
81 NOTIMPLEMENTED();
82 }
83
84 void URLRequestNewFtpJob::DestroyTransaction() {
85 NOTIMPLEMENTED();
86 }
87
88 void URLRequestNewFtpJob::StartTransaction() {
89 NOTIMPLEMENTED();
90 }
OLDNEW
« no previous file with comments | « net/url_request/url_request_new_ftp_job.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698