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 "chrome/browser/download/download_resource_throttle.h" | 5 #include "chrome/browser/download/download_resource_throttle.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "build/build_config.h" |
8 #include "chrome/browser/download/download_stats.h" | 9 #include "chrome/browser/download/download_stats.h" |
9 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
10 #include "content/public/browser/resource_controller.h" | 11 #include "content/public/browser/resource_controller.h" |
11 | 12 |
12 #if defined(OS_ANDROID) | 13 #if defined(OS_ANDROID) |
13 #include "content/public/browser/android/download_controller_android.h" | 14 #include "content/public/browser/android/download_controller_android.h" |
14 #include "content/public/browser/render_view_host.h" | 15 #include "content/public/browser/render_view_host.h" |
15 | 16 |
16 using content::DownloadControllerAndroid; | 17 using content::DownloadControllerAndroid; |
17 #endif | 18 #endif |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 146 |
146 if (request_deferred_) { | 147 if (request_deferred_) { |
147 request_deferred_ = false; | 148 request_deferred_ = false; |
148 if (allow) { | 149 if (allow) { |
149 controller()->Resume(); | 150 controller()->Resume(); |
150 } else { | 151 } else { |
151 controller()->Cancel(); | 152 controller()->Cancel(); |
152 } | 153 } |
153 } | 154 } |
154 } | 155 } |
OLD | NEW |