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

Side by Side Diff: content/child/ftp_directory_listing_response_delegate.cc

Issue 1548503002: net: extract GetDirectoryListingXXX functions into directory_listing.* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 4 years, 11 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
« no previous file with comments | « no previous file | net/BUILD.gn » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "content/child/ftp_directory_listing_response_delegate.h" 5 #include "content/child/ftp_directory_listing_response_delegate.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/i18n/icu_encoding_detection.h" 12 #include "base/i18n/icu_encoding_detection.h"
13 #include "base/i18n/icu_string_conversions.h" 13 #include "base/i18n/icu_string_conversions.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/strings/string_util.h" 15 #include "base/strings/string_util.h"
16 #include "base/strings/sys_string_conversions.h" 16 #include "base/strings/sys_string_conversions.h"
17 #include "base/strings/utf_string_conversions.h" 17 #include "base/strings/utf_string_conversions.h"
18 #include "base/time/time.h" 18 #include "base/time/time.h"
19 #include "content/child/weburlresponse_extradata_impl.h" 19 #include "content/child/weburlresponse_extradata_impl.h"
20 #include "net/base/directory_listing.h"
20 #include "net/base/escape.h" 21 #include "net/base/escape.h"
21 #include "net/base/net_errors.h" 22 #include "net/base/net_errors.h"
22 #include "net/base/net_util.h"
23 #include "net/ftp/ftp_directory_listing_parser.h" 23 #include "net/ftp/ftp_directory_listing_parser.h"
24 #include "third_party/WebKit/public/platform/WebURL.h" 24 #include "third_party/WebKit/public/platform/WebURL.h"
25 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h" 25 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h"
26 26
27 using blink::WebURLLoader; 27 using blink::WebURLLoader;
28 using blink::WebURLLoaderClient; 28 using blink::WebURLLoaderClient;
29 using blink::WebURLResponse; 29 using blink::WebURLResponse;
30 using net::FtpDirectoryListingEntry; 30 using net::FtpDirectoryListingEntry;
31 31
32 namespace { 32 namespace {
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 } 126 }
127 } 127 }
128 128
129 void FtpDirectoryListingResponseDelegate::SendDataToClient( 129 void FtpDirectoryListingResponseDelegate::SendDataToClient(
130 const std::string& data) { 130 const std::string& data) {
131 if (client_) 131 if (client_)
132 client_->didReceiveData(loader_, data.data(), data.length(), -1); 132 client_->didReceiveData(loader_, data.data(), data.length(), -1);
133 } 133 }
134 134
135 } // namespace content 135 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | net/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698