Chromium Code Reviews| 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 "chrome/browser/ui/webui/active_downloads_ui.h" | 5 #include "chrome/browser/ui/webui/active_downloads_ui.h" |
|
Evan Stade
2012/03/09 22:41:46
please move these files to ui/webui/chromeos/
| |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/file_util.h" | 14 #include "base/file_util.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 78 ChromeWebUIDataSource* CreateActiveDownloadsUIHTMLSource() { | 78 ChromeWebUIDataSource* CreateActiveDownloadsUIHTMLSource() { |
| 79 ChromeWebUIDataSource* source = | 79 ChromeWebUIDataSource* source = |
| 80 new ChromeWebUIDataSource(chrome::kChromeUIActiveDownloadsHost); | 80 new ChromeWebUIDataSource(chrome::kChromeUIActiveDownloadsHost); |
| 81 | 81 |
| 82 source->AddLocalizedString("dangerousfile", IDS_PROMPT_DANGEROUS_DOWNLOAD); | 82 source->AddLocalizedString("dangerousfile", IDS_PROMPT_DANGEROUS_DOWNLOAD); |
| 83 source->AddLocalizedString("dangerousextension", | 83 source->AddLocalizedString("dangerousextension", |
| 84 IDS_PROMPT_DANGEROUS_DOWNLOAD_EXTENSION); | 84 IDS_PROMPT_DANGEROUS_DOWNLOAD_EXTENSION); |
| 85 source->AddLocalizedString("dangerousurl", IDS_PROMPT_MALICIOUS_DOWNLOAD_URL); | 85 source->AddLocalizedString("dangerousurl", IDS_PROMPT_MALICIOUS_DOWNLOAD_URL); |
| 86 source->AddLocalizedString("dangerouscontent", | 86 source->AddLocalizedString("dangerouscontent", |
| 87 IDS_PROMPT_MALICIOUS_DOWNLOAD_CONTENT); | 87 IDS_PROMPT_MALICIOUS_DOWNLOAD_CONTENT); |
| 88 source->AddLocalizedString("uncommoncontent", | |
| 89 IDS_PROMPT_UNCOMMON_DOWNLOAD_CONTENT); | |
| 88 source->AddLocalizedString("cancel", IDS_DOWNLOAD_LINK_CANCEL); | 90 source->AddLocalizedString("cancel", IDS_DOWNLOAD_LINK_CANCEL); |
| 89 source->AddLocalizedString("discard", IDS_DISCARD_DOWNLOAD); | 91 source->AddLocalizedString("discard", IDS_DISCARD_DOWNLOAD); |
| 90 source->AddLocalizedString("continue", IDS_CONTINUE_EXTENSION_DOWNLOAD); | 92 source->AddLocalizedString("continue", IDS_CONTINUE_EXTENSION_DOWNLOAD); |
| 91 source->AddLocalizedString("pause", IDS_DOWNLOAD_LINK_PAUSE); | 93 source->AddLocalizedString("pause", IDS_DOWNLOAD_LINK_PAUSE); |
| 92 source->AddLocalizedString("resume", IDS_DOWNLOAD_LINK_RESUME); | 94 source->AddLocalizedString("resume", IDS_DOWNLOAD_LINK_RESUME); |
| 93 source->AddLocalizedString("showallfiles", | 95 source->AddLocalizedString("showallfiles", |
| 94 IDS_FILE_BROWSER_MORE_FILES); | 96 IDS_FILE_BROWSER_MORE_FILES); |
| 95 source->AddLocalizedString("error_unknown_file_type", | 97 source->AddLocalizedString("error_unknown_file_type", |
| 96 IDS_FILE_BROWSER_ERROR_UNKNOWN_FILE_TYPE); | 98 IDS_FILE_BROWSER_ERROR_UNKNOWN_FILE_TYPE); |
| 97 | 99 |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 391 return (*it); | 393 return (*it); |
| 392 } | 394 } |
| 393 } | 395 } |
| 394 } | 396 } |
| 395 return NULL; | 397 return NULL; |
| 396 } | 398 } |
| 397 | 399 |
| 398 const ActiveDownloadsUI::DownloadList& ActiveDownloadsUI::GetDownloads() const { | 400 const ActiveDownloadsUI::DownloadList& ActiveDownloadsUI::GetDownloads() const { |
| 399 return handler_->downloads(); | 401 return handler_->downloads(); |
| 400 } | 402 } |
| OLD | NEW |