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

Side by Side Diff: content/browser/download/download_resource_handler.cc

Issue 2315443003: Stop sending serialized SSLStatus to the renderer. (Closed)
Patch Set: self review fix and merge fix Created 4 years, 3 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
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 "content/browser/download/download_resource_handler.h" 5 #include "content/browser/download/download_resource_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 return core_.OnWillRead(buf, buf_size, min_size); 166 return core_.OnWillRead(buf, buf_size, min_size);
167 } 167 }
168 168
169 // Pass the buffer to the download file writer. 169 // Pass the buffer to the download file writer.
170 bool DownloadResourceHandler::OnReadCompleted(int bytes_read, bool* defer) { 170 bool DownloadResourceHandler::OnReadCompleted(int bytes_read, bool* defer) {
171 return core_.OnReadCompleted(bytes_read, defer); 171 return core_.OnReadCompleted(bytes_read, defer);
172 } 172 }
173 173
174 void DownloadResourceHandler::OnResponseCompleted( 174 void DownloadResourceHandler::OnResponseCompleted(
175 const net::URLRequestStatus& status, 175 const net::URLRequestStatus& status,
176 const std::string& security_info,
177 bool* defer) { 176 bool* defer) {
178 core_.OnResponseCompleted(status); 177 core_.OnResponseCompleted(status);
179 } 178 }
180 179
181 void DownloadResourceHandler::OnDataDownloaded(int bytes_downloaded) { 180 void DownloadResourceHandler::OnDataDownloaded(int bytes_downloaded) {
182 NOTREACHED(); 181 NOTREACHED();
183 } 182 }
184 183
185 void DownloadResourceHandler::PauseRequest() { 184 void DownloadResourceHandler::PauseRequest() {
186 core_.PauseRequest(); 185 core_.PauseRequest();
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 " }", 250 " }",
252 request() ? 251 request() ?
253 request()->url().spec().c_str() : 252 request()->url().spec().c_str() :
254 "<NULL request>", 253 "<NULL request>",
255 info->GetChildID(), 254 info->GetChildID(),
256 info->GetRequestID(), 255 info->GetRequestID(),
257 info->GetRouteID()); 256 info->GetRouteID());
258 } 257 }
259 258
260 } // namespace content 259 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/download_resource_handler.h ('k') | content/browser/download/save_file_resource_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698