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

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

Issue 2510333002: Send encoded_body_length to renderer when response completed (2/3) (Closed)
Patch Set: rebase Created 4 years 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 | « chrome/renderer/security_filter_peer.cc ('k') | content/child/resource_dispatcher.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 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>
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // add a link to the parent directory. 124 // add a link to the parent directory.
125 if (response_url.path().length() > 1) { 125 if (response_url.path().length() > 1) {
126 SendDataToClient(net::GetDirectoryListingEntry( 126 SendDataToClient(net::GetDirectoryListingEntry(
127 base::ASCIIToUTF16(".."), std::string(), false, 0, base::Time())); 127 base::ASCIIToUTF16(".."), std::string(), false, 0, base::Time()));
128 } 128 }
129 } 129 }
130 130
131 void FtpDirectoryListingResponseDelegate::SendDataToClient( 131 void FtpDirectoryListingResponseDelegate::SendDataToClient(
132 const std::string& data) { 132 const std::string& data) {
133 if (client_) { 133 if (client_) {
134 client_->didReceiveData(loader_, data.data(), data.length(), -1, 134 client_->didReceiveData(loader_, data.data(), data.length(), -1);
135 data.length());
136 } 135 }
137 } 136 }
138 137
139 } // namespace content 138 } // namespace content
OLDNEW
« no previous file with comments | « chrome/renderer/security_filter_peer.cc ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698