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

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

Issue 11414299: Add content/browser/loader/ for resource loading related classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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_status.h"
8
9 namespace content {
10
11 DoomedResourceHandler::DoomedResourceHandler(
12 scoped_ptr<ResourceHandler> old_handler)
13 : old_handler_(old_handler.Pass()) {
14 }
15
16 DoomedResourceHandler::~DoomedResourceHandler() {
17 }
18
19 bool DoomedResourceHandler::OnUploadProgress(int request_id,
20 uint64 position,
21 uint64 size) {
22 NOTREACHED();
23 return true;
24 }
25
26 bool DoomedResourceHandler::OnRequestRedirected(int request_id,
27 const GURL& new_url,
28 ResourceResponse* response,
29 bool* defer) {
30 NOTREACHED();
31 return true;
32 }
33
34 bool DoomedResourceHandler::OnResponseStarted(int request_id,
35 ResourceResponse* response,
36 bool* defer) {
37 NOTREACHED();
38 return true;
39 }
40
41 bool DoomedResourceHandler::OnWillStart(int request_id,
42 const GURL& url,
43 bool* defer) {
44 NOTREACHED();
45 return true;
46 }
47
48 bool DoomedResourceHandler::OnWillRead(int request_id,
49 net::IOBuffer** buf,
50 int* buf_size,
51 int min_size) {
52 NOTREACHED();
53 return true;
54 }
55
56 bool DoomedResourceHandler::OnReadCompleted(int request_id,
57 int bytes_read,
58 bool* defer) {
59 NOTREACHED();
60 return true;
61 }
62
63 bool DoomedResourceHandler::OnResponseCompleted(
64 int request_id,
65 const net::URLRequestStatus& status,
66 const std::string& security_info) {
67 DCHECK(status.status() == net::URLRequestStatus::CANCELED ||
68 status.status() == net::URLRequestStatus::FAILED);
69 return true;
70 }
71
72 void DoomedResourceHandler::OnDataDownloaded(int request_id,
73 int bytes_downloaded) {
74 NOTREACHED();
75 }
76
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