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

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

Issue 295041: DevTools: report correct content length for resources (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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/glue/devtools/js/tests.js ('k') | webkit/glue/multipart_response_delegate.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 (c) 2009 The Chromium Authors. All rights reserved. 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 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/glue/ftp_directory_listing_response_delegate.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/i18n/icu_string_conversions.h" 9 #include "base/i18n/icu_string_conversions.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 net::GetDirectoryListingEntry(ASCIIToUTF16(".."), 243 net::GetDirectoryListingEntry(ASCIIToUTF16(".."),
244 std::string(), 244 std::string(),
245 false, 0, 245 false, 0,
246 base::Time())); 246 base::Time()));
247 } 247 }
248 } 248 }
249 249
250 void FtpDirectoryListingResponseDelegate::SendResponseBufferToClient() { 250 void FtpDirectoryListingResponseDelegate::SendResponseBufferToClient() {
251 if (!response_buffer_.empty()) { 251 if (!response_buffer_.empty()) {
252 client_->didReceiveData(loader_, response_buffer_.data(), 252 client_->didReceiveData(loader_, response_buffer_.data(),
253 response_buffer_.length(), -1); 253 response_buffer_.length());
254 response_buffer_.clear(); 254 response_buffer_.clear();
255 } 255 }
256 } 256 }
257 257
258 } // namespace webkit_glue 258 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/devtools/js/tests.js ('k') | webkit/glue/multipart_response_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698