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/allow_cancel_resource_handler.h" |
| 6 |
| 7 #include "base/bind.h" |
| 8 #include "chrome/browser/profiles/profile_io_data.h" |
| 9 #include "chrome/browser/extensions/extension_info_map.h" |
| 10 #include "chrome/common/extensions/extension_process_policy.h" |
| 11 #include "content/browser/renderer_host/render_view_host.h" |
| 12 #include "content/browser/renderer_host/render_view_host_delegate.h" |
| 13 #include "content/browser/renderer_host/resource_dispatcher_host.h" |
| 14 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" |
| 15 #include "content/public/common/referrer.h" |
| 16 |
| 17 AllowCancelResourceHandler::AllowCancelResourceHandler() { |
| 18 } |
| 19 |
| 20 AllowCancelResourceHandler::~AllowCancelResourceHandler() { |
| 21 } |
| 22 |
| 23 bool AllowCancelResourceHandler::OnUploadProgress(int request_id, |
| 24 uint64 position, |
| 25 uint64 size) { |
| 26 NOTREACHED(); |
| 27 return true; |
| 28 } |
| 29 |
| 30 bool AllowCancelResourceHandler::OnRequestRedirected( |
| 31 int request_id, |
| 32 const GURL& new_url, |
| 33 content::ResourceResponse* response, |
| 34 bool* defer) { |
| 35 NOTREACHED(); |
| 36 return true; |
| 37 } |
| 38 |
| 39 bool AllowCancelResourceHandler::OnResponseStarted( |
| 40 int request_id, content::ResourceResponse* response) { |
| 41 NOTREACHED(); |
| 42 return true; |
| 43 } |
| 44 |
| 45 bool AllowCancelResourceHandler::OnWillStart(int request_id, |
| 46 const GURL& url, |
| 47 bool* defer) { |
| 48 NOTREACHED(); |
| 49 return true; |
| 50 } |
| 51 |
| 52 bool AllowCancelResourceHandler::OnWillRead(int request_id, |
| 53 net::IOBuffer** buf, |
| 54 int* buf_size, |
| 55 int min_size) { |
| 56 NOTREACHED(); |
| 57 return true; |
| 58 } |
| 59 |
| 60 bool AllowCancelResourceHandler::OnReadCompleted(int request_id, |
| 61 int* bytes_read) { |
| 62 NOTREACHED(); |
| 63 return true; |
| 64 } |
| 65 |
| 66 bool AllowCancelResourceHandler::OnResponseCompleted( |
| 67 int request_id, |
| 68 const net::URLRequestStatus& status, |
| 69 const std::string& security_info) { |
| 70 DCHECK(status.status() == net::URLRequestStatus::CANCELED || |
| 71 status.status() == net::URLRequestStatus::FAILED); |
| 72 return true; |
| 73 } |
| 74 |
| 75 void AllowCancelResourceHandler::OnRequestClosed() { |
| 76 } |
| 77 |
| 78 void AllowCancelResourceHandler::OnDataDownloaded(int request_id, |
| 79 int bytes_downloaded) { |
| 80 NOTREACHED(); |
| 81 } |
OLD | NEW |