Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Side by Side Diff: chrome/browser/download/download_util.cc

Issue 8342048: Make NotificationService an interface in the content namespace, and switch callers to use it. Mov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 // 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 22 matching lines...) Expand all
33 #include "chrome/common/time_format.h" 33 #include "chrome/common/time_format.h"
34 #include "content/browser/browser_thread.h" 34 #include "content/browser/browser_thread.h"
35 #include "content/browser/download/download_create_info.h" 35 #include "content/browser/download/download_create_info.h"
36 #include "content/browser/download/download_file.h" 36 #include "content/browser/download/download_file.h"
37 #include "content/browser/download/download_item.h" 37 #include "content/browser/download/download_item.h"
38 #include "content/browser/download/download_manager.h" 38 #include "content/browser/download/download_manager.h"
39 #include "content/browser/download/download_types.h" 39 #include "content/browser/download/download_types.h"
40 #include "content/browser/renderer_host/render_view_host.h" 40 #include "content/browser/renderer_host/render_view_host.h"
41 #include "content/browser/renderer_host/resource_dispatcher_host.h" 41 #include "content/browser/renderer_host/resource_dispatcher_host.h"
42 #include "content/browser/tab_contents/tab_contents.h" 42 #include "content/browser/tab_contents/tab_contents.h"
43 #include "content/common/notification_service.h"
44 #include "grit/generated_resources.h" 43 #include "grit/generated_resources.h"
45 #include "grit/locale_settings.h" 44 #include "grit/locale_settings.h"
46 #include "grit/theme_resources.h" 45 #include "grit/theme_resources.h"
47 #include "net/base/mime_util.h" 46 #include "net/base/mime_util.h"
48 #include "net/base/net_util.h" 47 #include "net/base/net_util.h"
49 #include "skia/ext/image_operations.h" 48 #include "skia/ext/image_operations.h"
50 #include "third_party/skia/include/core/SkPath.h" 49 #include "third_party/skia/include/core/SkPath.h"
51 #include "third_party/skia/include/core/SkShader.h" 50 #include "third_party/skia/include/core/SkShader.h"
52 #include "ui/base/l10n/l10n_util.h" 51 #include "ui/base/l10n/l10n_util.h"
53 #include "ui/base/resource/resource_bundle.h" 52 #include "ui/base/resource/resource_bundle.h"
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 return DownloadFile::GetUniquePathNumberWithSuffix( 589 return DownloadFile::GetUniquePathNumberWithSuffix(
591 path, FILE_PATH_LITERAL(".crdownload")); 590 path, FILE_PATH_LITERAL(".crdownload"));
592 } 591 }
593 592
594 FilePath GetCrDownloadPath(const FilePath& suggested_path) { 593 FilePath GetCrDownloadPath(const FilePath& suggested_path) {
595 return DownloadFile::AppendSuffixToPath( 594 return DownloadFile::AppendSuffixToPath(
596 suggested_path, FILE_PATH_LITERAL(".crdownload")); 595 suggested_path, FILE_PATH_LITERAL(".crdownload"));
597 } 596 }
598 597
599 } // namespace download_util 598 } // namespace download_util
OLDNEW
« no previous file with comments | « chrome/browser/download/download_crx_util.cc ('k') | chrome/browser/download/save_page_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698