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

Side by Side Diff: content/browser/renderer_host/doomed_resource_handler.cc

Issue 10578055: Rewrite guts of ResourceLoader and BufferedResourceHandler to suck less. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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
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/renderer_host/doomed_resource_handler.h" 5 #include "content/browser/renderer_host/doomed_resource_handler.h"
6 6
7 #include "net/url_request/url_request_status.h" 7 #include "net/url_request/url_request_status.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 bool DoomedResourceHandler::OnWillRead(int request_id, 48 bool DoomedResourceHandler::OnWillRead(int request_id,
49 net::IOBuffer** buf, 49 net::IOBuffer** buf,
50 int* buf_size, 50 int* buf_size,
51 int min_size) { 51 int min_size) {
52 NOTREACHED(); 52 NOTREACHED();
53 return true; 53 return true;
54 } 54 }
55 55
56 bool DoomedResourceHandler::OnReadCompleted(int request_id, 56 bool DoomedResourceHandler::OnReadCompleted(int request_id,
57 int* bytes_read, 57 int bytes_read,
58 bool* defer) { 58 bool* defer) {
59 NOTREACHED(); 59 NOTREACHED();
60 return true; 60 return true;
61 } 61 }
62 62
63 bool DoomedResourceHandler::OnResponseCompleted( 63 bool DoomedResourceHandler::OnResponseCompleted(
64 int request_id, 64 int request_id,
65 const net::URLRequestStatus& status, 65 const net::URLRequestStatus& status,
66 const std::string& security_info) { 66 const std::string& security_info) {
67 DCHECK(status.status() == net::URLRequestStatus::CANCELED || 67 DCHECK(status.status() == net::URLRequestStatus::CANCELED ||
68 status.status() == net::URLRequestStatus::FAILED); 68 status.status() == net::URLRequestStatus::FAILED);
69 return true; 69 return true;
70 } 70 }
71 71
72 void DoomedResourceHandler::OnDataDownloaded(int request_id, 72 void DoomedResourceHandler::OnDataDownloaded(int request_id,
73 int bytes_downloaded) { 73 int bytes_downloaded) {
74 NOTREACHED(); 74 NOTREACHED();
75 } 75 }
76 76
77 } // namespace content 77 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/doomed_resource_handler.h ('k') | content/browser/renderer_host/layered_resource_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698