OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_item_model.h" | 5 #include "chrome/browser/download/download_item_model.h" |
6 | 6 |
| 7 #include "app/l10n_util.h" |
7 #include "base/string_util.h" | 8 #include "base/string_util.h" |
8 #include "chrome/browser/download/download_manager.h" | 9 #include "chrome/browser/download/download_manager.h" |
9 #include "chrome/browser/download/save_package.h" | 10 #include "chrome/browser/download/save_package.h" |
10 #include "chrome/common/l10n_util.h" | |
11 #include "chrome/common/time_format.h" | 11 #include "chrome/common/time_format.h" |
12 #include "grit/generated_resources.h" | 12 #include "grit/generated_resources.h" |
13 | 13 |
14 using base::TimeDelta; | 14 using base::TimeDelta; |
15 | 15 |
16 // ----------------------------------------------------------------------------- | 16 // ----------------------------------------------------------------------------- |
17 // DownloadItemModel | 17 // DownloadItemModel |
18 | 18 |
19 DownloadItemModel::DownloadItemModel(DownloadItem* download) | 19 DownloadItemModel::DownloadItemModel(DownloadItem* download) |
20 : BaseDownloadItemModel(download) { | 20 : BaseDownloadItemModel(download) { |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 status_text = l10n_util::GetString(IDS_SAVE_PAGE_STATUS_CANCELLED); | 122 status_text = l10n_util::GetString(IDS_SAVE_PAGE_STATUS_CANCELLED); |
123 break; | 123 break; |
124 case DownloadItem::REMOVING: | 124 case DownloadItem::REMOVING: |
125 break; | 125 break; |
126 default: | 126 default: |
127 NOTREACHED(); | 127 NOTREACHED(); |
128 } | 128 } |
129 | 129 |
130 return status_text; | 130 return status_text; |
131 } | 131 } |
OLD | NEW |