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/base_file.h" | 5 #include "content/browser/download/base_file.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/pickle.h" | 11 #include "base/pickle.h" |
12 #include "base/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "base/threading/thread_restrictions.h" | 13 #include "base/threading/thread_restrictions.h" |
14 #include "content/browser/download/download_interrupt_reasons_impl.h" | 14 #include "content/browser/download/download_interrupt_reasons_impl.h" |
15 #include "content/browser/download/download_net_log_parameters.h" | 15 #include "content/browser/download/download_net_log_parameters.h" |
16 #include "content/browser/download/download_stats.h" | 16 #include "content/browser/download/download_stats.h" |
17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
18 #include "content/public/browser/content_browser_client.h" | 18 #include "content/public/browser/content_browser_client.h" |
19 #include "crypto/secure_hash.h" | 19 #include "crypto/secure_hash.h" |
20 #include "net/base/file_stream.h" | 20 #include "net/base/file_stream.h" |
21 #include "net/base/net_errors.h" | 21 #include "net/base/net_errors.h" |
22 | 22 |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 const char* operation, | 358 const char* operation, |
359 int os_error, | 359 int os_error, |
360 DownloadInterruptReason reason) { | 360 DownloadInterruptReason reason) { |
361 bound_net_log_.AddEvent( | 361 bound_net_log_.AddEvent( |
362 net::NetLog::TYPE_DOWNLOAD_FILE_ERROR, | 362 net::NetLog::TYPE_DOWNLOAD_FILE_ERROR, |
363 base::Bind(&FileInterruptedNetLogCallback, operation, os_error, reason)); | 363 base::Bind(&FileInterruptedNetLogCallback, operation, os_error, reason)); |
364 return reason; | 364 return reason; |
365 } | 365 } |
366 | 366 |
367 } // namespace content | 367 } // namespace content |
OLD | NEW |