| 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 // File method ordering: Methods in this file are in the same order as | 5 // File method ordering: Methods in this file are in the same order as |
| 6 // in download_item_impl.h, with the following exception: The public | 6 // in download_item_impl.h, with the following exception: The public |
| 7 // interface Start is placed in chronological order with the other | 7 // interface Start is placed in chronological order with the other |
| 8 // (private) routines that together define a DownloadItem's state | 8 // (private) routines that together define a DownloadItem's state |
| 9 // transitions as the download progresses. See "Download progression | 9 // transitions as the download progresses. See "Download progression |
| 10 // cascade" later in this file. | 10 // cascade" later in this file. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "content/browser/download/download_item_impl.h" | 24 #include "content/browser/download/download_item_impl.h" |
| 25 | 25 |
| 26 #include <utility> | 26 #include <utility> |
| 27 #include <vector> | 27 #include <vector> |
| 28 | 28 |
| 29 #include "base/bind.h" | 29 #include "base/bind.h" |
| 30 #include "base/files/file_util.h" | 30 #include "base/files/file_util.h" |
| 31 #include "base/format_macros.h" | 31 #include "base/format_macros.h" |
| 32 #include "base/guid.h" | 32 #include "base/guid.h" |
| 33 #include "base/logging.h" | 33 #include "base/logging.h" |
| 34 #include "base/metrics/histogram.h" | 34 #include "base/metrics/histogram_macros.h" |
| 35 #include "base/stl_util.h" | 35 #include "base/stl_util.h" |
| 36 #include "base/strings/string_util.h" | 36 #include "base/strings/string_util.h" |
| 37 #include "base/strings/stringprintf.h" | 37 #include "base/strings/stringprintf.h" |
| 38 #include "base/strings/utf_string_conversions.h" | 38 #include "base/strings/utf_string_conversions.h" |
| 39 #include "content/browser/download/download_create_info.h" | 39 #include "content/browser/download/download_create_info.h" |
| 40 #include "content/browser/download/download_file.h" | 40 #include "content/browser/download/download_file.h" |
| 41 #include "content/browser/download/download_interrupt_reasons_impl.h" | 41 #include "content/browser/download/download_interrupt_reasons_impl.h" |
| 42 #include "content/browser/download/download_item_impl_delegate.h" | 42 #include "content/browser/download/download_item_impl_delegate.h" |
| 43 #include "content/browser/download/download_net_log_parameters.h" | 43 #include "content/browser/download/download_net_log_parameters.h" |
| 44 #include "content/browser/download/download_request_handle.h" | 44 #include "content/browser/download/download_request_handle.h" |
| (...skipping 2044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2089 case RESUME_MODE_USER_CONTINUE: | 2089 case RESUME_MODE_USER_CONTINUE: |
| 2090 return "USER_CONTINUE"; | 2090 return "USER_CONTINUE"; |
| 2091 case RESUME_MODE_USER_RESTART: | 2091 case RESUME_MODE_USER_RESTART: |
| 2092 return "USER_RESTART"; | 2092 return "USER_RESTART"; |
| 2093 } | 2093 } |
| 2094 NOTREACHED() << "Unknown resume mode " << mode; | 2094 NOTREACHED() << "Unknown resume mode " << mode; |
| 2095 return "unknown"; | 2095 return "unknown"; |
| 2096 } | 2096 } |
| 2097 | 2097 |
| 2098 } // namespace content | 2098 } // namespace content |
| OLD | NEW |