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

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

Issue 2105713002: Render process changes for ResourceTiming sizes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@resource_timing_sizes_browser_process
Patch Set: Initialise encoded_body_length for sync XHR to data: URLs Created 4 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
« no previous file with comments | « content/browser/loader/async_resource_handler.cc ('k') | content/child/resource_dispatcher.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 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // If this isn't top level directory (i.e. the path isn't "/",) 122 // If this isn't top level directory (i.e. the path isn't "/",)
123 // add a link to the parent directory. 123 // add a link to the parent directory.
124 if (response_url.path().length() > 1) { 124 if (response_url.path().length() > 1) {
125 SendDataToClient(net::GetDirectoryListingEntry( 125 SendDataToClient(net::GetDirectoryListingEntry(
126 base::ASCIIToUTF16(".."), std::string(), false, 0, base::Time())); 126 base::ASCIIToUTF16(".."), std::string(), false, 0, base::Time()));
127 } 127 }
128 } 128 }
129 129
130 void FtpDirectoryListingResponseDelegate::SendDataToClient( 130 void FtpDirectoryListingResponseDelegate::SendDataToClient(
131 const std::string& data) { 131 const std::string& data) {
132 if (client_) 132 if (client_) {
133 client_->didReceiveData(loader_, data.data(), data.length(), -1); 133 client_->didReceiveData(loader_, data.data(), data.length(), -1,
134 data.length());
135 }
134 } 136 }
135 137
136 } // namespace content 138 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/async_resource_handler.cc ('k') | content/child/resource_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698