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