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 15 matching lines...) Expand all Loading... |
26 #include <vector> | 26 #include <vector> |
27 | 27 |
28 #include "base/basictypes.h" | 28 #include "base/basictypes.h" |
29 #include "base/bind.h" | 29 #include "base/bind.h" |
30 #include "base/command_line.h" | 30 #include "base/command_line.h" |
31 #include "base/file_util.h" | 31 #include "base/file_util.h" |
32 #include "base/format_macros.h" | 32 #include "base/format_macros.h" |
33 #include "base/logging.h" | 33 #include "base/logging.h" |
34 #include "base/metrics/histogram.h" | 34 #include "base/metrics/histogram.h" |
35 #include "base/stl_util.h" | 35 #include "base/stl_util.h" |
36 #include "base/stringprintf.h" | 36 #include "base/strings/stringprintf.h" |
37 #include "base/strings/utf_string_conversions.h" | 37 #include "base/strings/utf_string_conversions.h" |
38 #include "content/browser/download/download_create_info.h" | 38 #include "content/browser/download/download_create_info.h" |
39 #include "content/browser/download/download_file.h" | 39 #include "content/browser/download/download_file.h" |
40 #include "content/browser/download/download_interrupt_reasons_impl.h" | 40 #include "content/browser/download/download_interrupt_reasons_impl.h" |
41 #include "content/browser/download/download_item_impl_delegate.h" | 41 #include "content/browser/download/download_item_impl_delegate.h" |
42 #include "content/browser/download/download_request_handle.h" | 42 #include "content/browser/download/download_request_handle.h" |
43 #include "content/browser/download/download_stats.h" | 43 #include "content/browser/download/download_stats.h" |
44 #include "content/browser/renderer_host/render_view_host_impl.h" | 44 #include "content/browser/renderer_host/render_view_host_impl.h" |
45 #include "content/browser/web_contents/web_contents_impl.h" | 45 #include "content/browser/web_contents/web_contents_impl.h" |
46 #include "content/public/browser/browser_context.h" | 46 #include "content/public/browser/browser_context.h" |
(...skipping 1644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1691 case RESUME_MODE_USER_CONTINUE: | 1691 case RESUME_MODE_USER_CONTINUE: |
1692 return "USER_CONTINUE"; | 1692 return "USER_CONTINUE"; |
1693 case RESUME_MODE_USER_RESTART: | 1693 case RESUME_MODE_USER_RESTART: |
1694 return "USER_RESTART"; | 1694 return "USER_RESTART"; |
1695 } | 1695 } |
1696 NOTREACHED() << "Unknown resume mode " << mode; | 1696 NOTREACHED() << "Unknown resume mode " << mode; |
1697 return "unknown"; | 1697 return "unknown"; |
1698 } | 1698 } |
1699 | 1699 |
1700 } // namespace content | 1700 } // namespace content |
OLD | NEW |