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

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

Issue 9113028: Substitute ResourceHandlers with dummy ResourceHandler while request is transferred (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Darin's comments Created 8 years, 11 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "content/browser/renderer_host/doomed_resource_handler.h"
6
7 #include "net/url_request/url_request.h"
8
9 DoomedResourceHandler::DoomedResourceHandler(ResourceHandler* old_handler)
10 : old_handler_(old_handler) {
11 }
12
13 DoomedResourceHandler::~DoomedResourceHandler() {
14 }
15
16 bool DoomedResourceHandler::OnUploadProgress(int request_id,
17 uint64 position,
18 uint64 size) {
19 NOTREACHED();
20 return true;
21 }
22
23 bool DoomedResourceHandler::OnRequestRedirected(
24 int request_id,
25 const GURL& new_url,
26 content::ResourceResponse* response,
27 bool* defer) {
28 NOTREACHED();
29 return true;
30 }
31
32 bool DoomedResourceHandler::OnResponseStarted(
33 int request_id, content::ResourceResponse* response) {
34 NOTREACHED();
35 return true;
36 }
37
38 bool DoomedResourceHandler::OnWillStart(int request_id,
39 const GURL& url,
40 bool* defer) {
41 NOTREACHED();
42 return true;
43 }
44
45 bool DoomedResourceHandler::OnWillRead(int request_id,
46 net::IOBuffer** buf,
47 int* buf_size,
48 int min_size) {
49 NOTREACHED();
50 return true;
51 }
52
53 bool DoomedResourceHandler::OnReadCompleted(int request_id,
54 int* bytes_read) {
55 NOTREACHED();
56 return true;
57 }
58
59 bool DoomedResourceHandler::OnResponseCompleted(
60 int request_id,
61 const net::URLRequestStatus& status,
62 const std::string& security_info) {
63 DCHECK(status.status() == net::URLRequestStatus::CANCELED ||
64 status.status() == net::URLRequestStatus::FAILED);
65 return true;
66 }
67
68 void DoomedResourceHandler::OnRequestClosed() {
69 }
70
71 void DoomedResourceHandler::OnDataDownloaded(int request_id,
72 int bytes_downloaded) {
73 NOTREACHED();
74 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698