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

Side by Side Diff: content/browser/renderer_host/paused_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 Matt'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) 2011 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/paused_resource_handler.h"
6
7 #include "net/url_request/url_request.h"
8
9 PausedResourceHandler::PausedResourceHandler(ResourceHandler* old_handlers)
10 : old_handlers_(old_handlers) {
11 }
12
13 PausedResourceHandler::~PausedResourceHandler() {
14 }
15
16 bool PausedResourceHandler::OnUploadProgress(int request_id,
17 uint64 position,
18 uint64 size) {
19 NOTREACHED();
20 return true;
21 }
22
23 bool PausedResourceHandler::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 PausedResourceHandler::OnResponseStarted(
33 int request_id, content::ResourceResponse* response) {
34 NOTREACHED();
35 return true;
36 }
37
38 bool PausedResourceHandler::OnWillStart(int request_id,
39 const GURL& url,
40 bool* defer) {
41 NOTREACHED();
42 return true;
43 }
44
45 bool PausedResourceHandler::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 PausedResourceHandler::OnReadCompleted(int request_id, int* bytes_read) {
54 NOTREACHED();
55 return true;
56 }
57
58 bool PausedResourceHandler::OnResponseCompleted(
59 int request_id,
60 const net::URLRequestStatus& status,
61 const std::string& security_info) {
62 DCHECK(status.status() == net::URLRequestStatus::CANCELED ||
63 status.status() == net::URLRequestStatus::FAILED);
64 return true;
65 }
66
67 void PausedResourceHandler::OnRequestClosed() {
68 }
69
70 void PausedResourceHandler::OnDataDownloaded(int request_id,
71 int bytes_downloaded) {
72 NOTREACHED();
73 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698