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

Unified Diff: net/url_request/ftp_protocol_handler.cc

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/url_request/ftp_protocol_handler.h ('k') | net/url_request/http_user_agent_settings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/ftp_protocol_handler.cc
diff --git a/net/url_request/ftp_protocol_handler.cc b/net/url_request/ftp_protocol_handler.cc
deleted file mode 100644
index 56d15e6d31bf4db32426f7cbd0da4d222d8a3e85..0000000000000000000000000000000000000000
--- a/net/url_request/ftp_protocol_handler.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "net/url_request/ftp_protocol_handler.h"
-
-#include "base/logging.h"
-#include "net/base/net_errors.h"
-#include "net/base/net_util.h"
-#include "net/ftp/ftp_auth_cache.h"
-#include "net/url_request/url_request.h"
-#include "net/url_request/url_request_error_job.h"
-#include "net/url_request/url_request_ftp_job.h"
-#include "url/gurl.h"
-
-namespace net {
-
-FtpProtocolHandler::FtpProtocolHandler(
- FtpTransactionFactory* ftp_transaction_factory)
- : ftp_transaction_factory_(ftp_transaction_factory),
- ftp_auth_cache_(new FtpAuthCache) {
- DCHECK(ftp_transaction_factory_);
-}
-
-FtpProtocolHandler::~FtpProtocolHandler() {
-}
-
-URLRequestJob* FtpProtocolHandler::MaybeCreateJob(
- URLRequest* request, NetworkDelegate* network_delegate) const {
- int port = request->url().IntPort();
- if (request->url().has_port() &&
- !IsPortAllowedByFtp(port) && !IsPortAllowedByOverride(port)) {
- return new URLRequestErrorJob(request, network_delegate, ERR_UNSAFE_PORT);
- }
-
- return new URLRequestFtpJob(request,
- network_delegate,
- ftp_transaction_factory_,
- ftp_auth_cache_.get());
-}
-
-} // namespace net
« no previous file with comments | « net/url_request/ftp_protocol_handler.h ('k') | net/url_request/http_user_agent_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698