| OLD | NEW |
| (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/dummy_resource_handler.h" | |
| 6 | |
| 7 namespace content { | |
| 8 | |
| 9 DummyResourceHandler::DummyResourceHandler() {} | |
| 10 | |
| 11 bool DummyResourceHandler::OnUploadProgress(int request_id, | |
| 12 uint64 position, | |
| 13 uint64 size) { | |
| 14 return true; | |
| 15 } | |
| 16 | |
| 17 bool DummyResourceHandler::OnRequestRedirected(int request_id, | |
| 18 const GURL& url, | |
| 19 ResourceResponse* response, | |
| 20 bool* defer) { | |
| 21 return true; | |
| 22 } | |
| 23 | |
| 24 bool DummyResourceHandler::OnResponseStarted(int request_id, | |
| 25 ResourceResponse* response) { | |
| 26 return true; | |
| 27 } | |
| 28 | |
| 29 bool DummyResourceHandler::OnWillStart(int request_id, | |
| 30 const GURL& url, | |
| 31 bool* defer) { | |
| 32 return true; | |
| 33 } | |
| 34 | |
| 35 bool DummyResourceHandler::OnWillRead(int request_id, | |
| 36 net::IOBuffer** buf, | |
| 37 int* buf_size, | |
| 38 int min_size) { | |
| 39 return true; | |
| 40 } | |
| 41 | |
| 42 bool DummyResourceHandler::OnReadCompleted(int request_id, int* bytes_read) { | |
| 43 return true; | |
| 44 } | |
| 45 | |
| 46 bool DummyResourceHandler::OnResponseCompleted( | |
| 47 int request_id, | |
| 48 const net::URLRequestStatus& status, | |
| 49 const std::string& info) { | |
| 50 return true; | |
| 51 } | |
| 52 | |
| 53 void DummyResourceHandler::OnRequestClosed() {} | |
| 54 | |
| 55 } // namespace content | |
| 56 | |
| OLD | NEW |