OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/public/browser/resource_throttle.h" | 5 #include "content/public/browser/resource_throttle.h" |
6 | 6 |
7 namespace content { | 7 namespace content { |
8 | 8 |
9 bool ResourceThrottle::MustProcessResponseBeforeReadingBody() { | 9 bool ResourceThrottle::MustProcessResponseBeforeReadingBody() { |
10 return false; | 10 return false; |
11 } | 11 } |
12 | 12 |
| 13 void ResourceThrottle::Cancel() { |
| 14 delegate_->Cancel(); |
| 15 } |
| 16 |
| 17 void ResourceThrottle::CancelAndIgnore() { |
| 18 delegate_->CancelAndIgnore(); |
| 19 } |
| 20 |
| 21 void ResourceThrottle::CancelWithError(int error_code) { |
| 22 delegate_->CancelWithError(error_code); |
| 23 } |
| 24 |
| 25 void ResourceThrottle::Resume() { |
| 26 delegate_->Resume(); |
| 27 } |
| 28 |
13 } // namespace content | 29 } // namespace content |
OLD | NEW |