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

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

Issue 20003004: reland crrev.com/212927 Move webkitplatformsupport_impl and related from glue to child (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & allocator dep for components_unittests in shared_library2 Created 7 years, 5 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 | « webkit/child/DEPS ('k') | webkit/child/multipart_response_delegate.h » ('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 #include "webkit/glue/ftp_directory_listing_response_delegate.h" 5 #include "webkit/child/ftp_directory_listing_response_delegate.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/i18n/icu_encoding_detection.h" 9 #include "base/i18n/icu_encoding_detection.h"
10 #include "base/i18n/icu_string_conversions.h" 10 #include "base/i18n/icu_string_conversions.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
13 #include "base/strings/sys_string_conversions.h" 13 #include "base/strings/sys_string_conversions.h"
14 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "net/base/escape.h" 16 #include "net/base/escape.h"
17 #include "net/base/net_errors.h" 17 #include "net/base/net_errors.h"
18 #include "net/base/net_util.h" 18 #include "net/base/net_util.h"
19 #include "net/ftp/ftp_directory_listing_parser.h" 19 #include "net/ftp/ftp_directory_listing_parser.h"
20 #include "third_party/WebKit/public/platform/WebURL.h" 20 #include "third_party/WebKit/public/platform/WebURL.h"
21 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h" 21 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h"
22 #include "webkit/glue/weburlresponse_extradata_impl.h" 22 #include "webkit/child/weburlresponse_extradata_impl.h"
23 23
24 using net::FtpDirectoryListingEntry; 24 using net::FtpDirectoryListingEntry;
25 25
26 using WebKit::WebURLLoader; 26 using WebKit::WebURLLoader;
27 using WebKit::WebURLLoaderClient; 27 using WebKit::WebURLLoaderClient;
28 using WebKit::WebURLResponse; 28 using WebKit::WebURLResponse;
29 29
30 namespace { 30 namespace {
31 31
32 base::string16 ConvertPathToUTF16(const std::string& path) { 32 base::string16 ConvertPathToUTF16(const std::string& path) {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 ASCIIToUTF16(".."), std::string(), false, 0, base::Time())); 114 ASCIIToUTF16(".."), std::string(), false, 0, base::Time()));
115 } 115 }
116 } 116 }
117 117
118 void FtpDirectoryListingResponseDelegate::SendDataToClient( 118 void FtpDirectoryListingResponseDelegate::SendDataToClient(
119 const std::string& data) { 119 const std::string& data) {
120 client_->didReceiveData(loader_, data.data(), data.length(), -1); 120 client_->didReceiveData(loader_, data.data(), data.length(), -1);
121 } 121 }
122 122
123 } // namespace webkit_glue 123 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/child/DEPS ('k') | webkit/child/multipart_response_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698