| 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 // Download utility implementation | 5 // Download utility implementation |
| 6 | 6 |
| 7 #include "chrome/browser/download/download_util.h" | 7 #include "chrome/browser/download/download_util.h" |
| 8 | 8 |
| 9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
| 10 #include <shobjidl.h> | 10 #include <shobjidl.h> |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #include "grit/locale_settings.h" | 43 #include "grit/locale_settings.h" |
| 44 #include "grit/theme_resources.h" | 44 #include "grit/theme_resources.h" |
| 45 #include "net/base/mime_util.h" | 45 #include "net/base/mime_util.h" |
| 46 #include "net/base/net_util.h" | 46 #include "net/base/net_util.h" |
| 47 #include "skia/ext/image_operations.h" | 47 #include "skia/ext/image_operations.h" |
| 48 #include "third_party/skia/include/core/SkPath.h" | 48 #include "third_party/skia/include/core/SkPath.h" |
| 49 #include "third_party/skia/include/core/SkShader.h" | 49 #include "third_party/skia/include/core/SkShader.h" |
| 50 #include "ui/base/l10n/l10n_util.h" | 50 #include "ui/base/l10n/l10n_util.h" |
| 51 #include "ui/base/resource/resource_bundle.h" | 51 #include "ui/base/resource/resource_bundle.h" |
| 52 #include "ui/base/text/bytes_formatting.h" | 52 #include "ui/base/text/bytes_formatting.h" |
| 53 #include "ui/gfx/canvas_skia.h" | 53 #include "ui/gfx/canvas.h" |
| 54 #include "ui/gfx/image/image.h" | 54 #include "ui/gfx/image/image.h" |
| 55 #include "ui/gfx/rect.h" | 55 #include "ui/gfx/rect.h" |
| 56 | 56 |
| 57 #if defined(TOOLKIT_VIEWS) | 57 #if defined(TOOLKIT_VIEWS) |
| 58 #include "ui/base/dragdrop/drag_utils.h" | 58 #include "ui/base/dragdrop/drag_utils.h" |
| 59 #include "ui/base/dragdrop/os_exchange_data.h" | 59 #include "ui/base/dragdrop/os_exchange_data.h" |
| 60 #endif | 60 #endif |
| 61 | 61 |
| 62 #if defined(TOOLKIT_USES_GTK) | 62 #if defined(TOOLKIT_USES_GTK) |
| 63 #if defined(TOOLKIT_VIEWS) | 63 #if defined(TOOLKIT_VIEWS) |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 UMA_HISTOGRAM_ENUMERATION( | 632 UMA_HISTOGRAM_ENUMERATION( |
| 633 "Download.CountsChrome", type, CHROME_DOWNLOAD_COUNT_TYPES_LAST_ENTRY); | 633 "Download.CountsChrome", type, CHROME_DOWNLOAD_COUNT_TYPES_LAST_ENTRY); |
| 634 } | 634 } |
| 635 | 635 |
| 636 void RecordDownloadSource(ChromeDownloadSource source) { | 636 void RecordDownloadSource(ChromeDownloadSource source) { |
| 637 UMA_HISTOGRAM_ENUMERATION( | 637 UMA_HISTOGRAM_ENUMERATION( |
| 638 "Download.SourcesChrome", source, CHROME_DOWNLOAD_SOURCE_LAST_ENTRY); | 638 "Download.SourcesChrome", source, CHROME_DOWNLOAD_SOURCE_LAST_ENTRY); |
| 639 } | 639 } |
| 640 | 640 |
| 641 } // namespace download_util | 641 } // namespace download_util |
| OLD | NEW |