blob: 47b86dd2a177bb59a5c9a02cc02e5c3215eb53bb [file] [log] [blame]
[email protected]d18720a2012-01-06 09:53:551// 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/layered_resource_handler.h"
6
7namespace content {
8
9LayeredResourceHandler::LayeredResourceHandler(ResourceHandler* next_handler)
10 : next_handler_(next_handler) {
11 DCHECK(next_handler_);
12}
13
14bool LayeredResourceHandler::OnUploadProgress(int request_id, uint64 position,
15 uint64 size) {
16 return next_handler_->OnUploadProgress(request_id, position, size);
17}
18
19bool LayeredResourceHandler::OnRequestRedirected(int request_id,
20 const GURL& url,
21 ResourceResponse* response,
22 bool* defer) {
23 return next_handler_->OnRequestRedirected(request_id, url, response, defer);
24}
25
26bool LayeredResourceHandler::OnResponseStarted(int request_id,
27 ResourceResponse* response) {
28 return next_handler_->OnResponseStarted(request_id, response);
29}
30
31bool LayeredResourceHandler::OnWillStart(int request_id, const GURL& url,
32 bool* defer) {
33 return next_handler_->OnWillStart(request_id, url, defer);
34}
35
36bool LayeredResourceHandler::OnWillRead(int request_id, net::IOBuffer** buf,
37 int* buf_size, int min_size) {
38 return next_handler_->OnWillRead(request_id, buf, buf_size, min_size);
39}
40
41bool LayeredResourceHandler::OnReadCompleted(int request_id, int* bytes_read) {
42 return next_handler_->OnReadCompleted(request_id, bytes_read);
43}
44
45bool LayeredResourceHandler::OnResponseCompleted(
46 int request_id,
47 const net::URLRequestStatus& status,
48 const std::string& security_info) {
49 return next_handler_->OnResponseCompleted(request_id, status, security_info);
50}
51
52void LayeredResourceHandler::OnRequestClosed() {
53 next_handler_->OnRequestClosed();
54}
55
56void LayeredResourceHandler::OnDataDownloaded(int request_id,
57 int bytes_downloaded) {
58 next_handler_->OnDataDownloaded(request_id, bytes_downloaded);
59}
60
61LayeredResourceHandler::~LayeredResourceHandler() {
62}
63
64} // namespace content