OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // 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 | 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/browser/renderer_host/throttling_resource_handler.h" | 5 #include "content/browser/loader/throttling_resource_handler.h" |
6 | 6 |
7 #include "content/public/browser/resource_throttle.h" | 7 #include "content/public/browser/resource_throttle.h" |
8 #include "content/public/common/resource_response.h" | 8 #include "content/public/common/resource_response.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 | 11 |
12 ThrottlingResourceHandler::ThrottlingResourceHandler( | 12 ThrottlingResourceHandler::ThrottlingResourceHandler( |
13 scoped_ptr<ResourceHandler> next_handler, | 13 scoped_ptr<ResourceHandler> next_handler, |
14 int child_id, | 14 int child_id, |
15 int request_id, | 15 int request_id, |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 | 175 |
176 bool defer = false; | 176 bool defer = false; |
177 if (!OnResponseStarted(request_id_, response, &defer)) { | 177 if (!OnResponseStarted(request_id_, response, &defer)) { |
178 controller()->Cancel(); | 178 controller()->Cancel(); |
179 } else if (!defer) { | 179 } else if (!defer) { |
180 controller()->Resume(); | 180 controller()->Resume(); |
181 } | 181 } |
182 } | 182 } |
183 | 183 |
184 } // namespace content | 184 } // namespace content |
OLD | NEW |