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

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

Issue 23271005: Move DragDownload() out of download_util.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: drag_download_item Created 7 years, 4 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) 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/download/download_path_reservation_tracker.h" 5 #include "chrome/browser/download/download_path_reservation_tracker.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/path_service.h" 13 #include "base/path_service.h"
14 #include "base/stl_util.h" 14 #include "base/stl_util.h"
15 #include "base/strings/string_util.h" 15 #include "base/strings/string_util.h"
16 #include "base/strings/stringprintf.h" 16 #include "base/strings/stringprintf.h"
17 #include "base/third_party/icu/icu_utf.h" 17 #include "base/third_party/icu/icu_utf.h"
18 #include "chrome/browser/download/download_util.h"
19 #include "chrome/common/chrome_paths.h" 18 #include "chrome/common/chrome_paths.h"
20 #include "content/public/browser/browser_thread.h" 19 #include "content/public/browser/browser_thread.h"
21 #include "content/public/browser/download_item.h" 20 #include "content/public/browser/download_item.h"
22 21
23 using content::BrowserThread; 22 using content::BrowserThread;
24 using content::DownloadItem; 23 using content::DownloadItem;
25 24
26 namespace { 25 namespace {
27 26
28 typedef DownloadItem* ReservationKey; 27 typedef DownloadItem* ReservationKey;
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 create_directory, 357 create_directory,
359 conflict_action, 358 conflict_action,
360 callback)); 359 callback));
361 } 360 }
362 361
363 // static 362 // static
364 bool DownloadPathReservationTracker::IsPathInUseForTesting( 363 bool DownloadPathReservationTracker::IsPathInUseForTesting(
365 const base::FilePath& path) { 364 const base::FilePath& path) {
366 return IsPathInUse(path); 365 return IsPathInUse(path);
367 } 366 }
OLDNEW
« no previous file with comments | « chrome/browser/download/chrome_download_manager_delegate.cc ('k') | chrome/browser/download/download_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698