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/download/download_file_impl.h" | 5 #include "content/browser/download/download_file_impl.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/message_loop_proxy.h" | 11 #include "base/message_loop/message_loop_proxy.h" |
12 #include "base/time.h" | 12 #include "base/time.h" |
13 #include "content/browser/byte_stream.h" | 13 #include "content/browser/byte_stream.h" |
14 #include "content/browser/download/download_create_info.h" | 14 #include "content/browser/download/download_create_info.h" |
15 #include "content/browser/download/download_interrupt_reasons_impl.h" | 15 #include "content/browser/download/download_interrupt_reasons_impl.h" |
16 #include "content/browser/download/download_net_log_parameters.h" | 16 #include "content/browser/download/download_net_log_parameters.h" |
17 #include "content/browser/download/download_stats.h" | 17 #include "content/browser/download/download_stats.h" |
18 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
19 #include "content/public/browser/download_destination_observer.h" | 19 #include "content/public/browser/download_destination_observer.h" |
20 #include "content/public/browser/power_save_blocker.h" | 20 #include "content/public/browser/power_save_blocker.h" |
21 #include "net/base/io_buffer.h" | 21 #include "net/base/io_buffer.h" |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 observer_, file_.bytes_so_far(), CurrentSpeed(), | 306 observer_, file_.bytes_so_far(), CurrentSpeed(), |
307 GetHashState())); | 307 GetHashState())); |
308 } | 308 } |
309 | 309 |
310 // static | 310 // static |
311 int DownloadFile::GetNumberOfDownloadFiles() { | 311 int DownloadFile::GetNumberOfDownloadFiles() { |
312 return number_active_objects_; | 312 return number_active_objects_; |
313 } | 313 } |
314 | 314 |
315 } // namespace content | 315 } // namespace content |
OLD | NEW |