| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/downloads_dom_handler.h" | 5 #include "chrome/browser/ui/webui/downloads_dom_handler.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <functional> | 8 #include <functional> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "chrome/browser/download/download_prefs.h" | 22 #include "chrome/browser/download/download_prefs.h" |
| 23 #include "chrome/browser/download/download_service.h" | 23 #include "chrome/browser/download/download_service.h" |
| 24 #include "chrome/browser/download/download_service_factory.h" | 24 #include "chrome/browser/download/download_service_factory.h" |
| 25 #include "chrome/browser/download/download_util.h" | 25 #include "chrome/browser/download/download_util.h" |
| 26 #include "chrome/browser/platform_util.h" | 26 #include "chrome/browser/platform_util.h" |
| 27 #include "chrome/browser/profiles/profile.h" | 27 #include "chrome/browser/profiles/profile.h" |
| 28 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" | 28 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
| 29 #include "chrome/browser/ui/webui/fileicon_source.h" | 29 #include "chrome/browser/ui/webui/fileicon_source.h" |
| 30 #include "chrome/browser/ui/webui/fileicon_source_chromeos.h" | 30 #include "chrome/browser/ui/webui/fileicon_source_chromeos.h" |
| 31 #include "chrome/common/url_constants.h" | 31 #include "chrome/common/url_constants.h" |
| 32 #include "content/browser/webui/web_ui.h" |
| 32 #include "content/public/browser/download_item.h" | 33 #include "content/public/browser/download_item.h" |
| 33 #include "content/public/browser/user_metrics.h" | 34 #include "content/public/browser/user_metrics.h" |
| 34 #include "content/public/browser/web_contents.h" | 35 #include "content/public/browser/web_contents.h" |
| 35 #include "grit/generated_resources.h" | 36 #include "grit/generated_resources.h" |
| 36 #include "ui/gfx/image/image.h" | 37 #include "ui/gfx/image/image.h" |
| 37 | 38 |
| 38 #if !defined(OS_MACOSX) | 39 #if !defined(OS_MACOSX) |
| 39 #include "content/public/browser/browser_thread.h" | 40 #include "content/public/browser/browser_thread.h" |
| 40 #endif | 41 #endif |
| 41 | 42 |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 return NULL; | 403 return NULL; |
| 403 } | 404 } |
| 404 | 405 |
| 405 DownloadItem* DownloadsDOMHandler::GetDownloadByValue(const ListValue* args) { | 406 DownloadItem* DownloadsDOMHandler::GetDownloadByValue(const ListValue* args) { |
| 406 int id; | 407 int id; |
| 407 if (ExtractIntegerValue(args, &id)) { | 408 if (ExtractIntegerValue(args, &id)) { |
| 408 return GetDownloadById(id); | 409 return GetDownloadById(id); |
| 409 } | 410 } |
| 410 return NULL; | 411 return NULL; |
| 411 } | 412 } |
| OLD | NEW |