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

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

Issue 1542413002: Switch to standard integer types in chrome/browser/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
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 <stddef.h>
8
7 #include <map> 9 #include <map>
8 10
9 #include "base/bind.h" 11 #include "base/bind.h"
10 #include "base/callback.h" 12 #include "base/callback.h"
11 #include "base/files/file_util.h" 13 #include "base/files/file_util.h"
12 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/macros.h"
13 #include "base/path_service.h" 16 #include "base/path_service.h"
14 #include "base/stl_util.h" 17 #include "base/stl_util.h"
15 #include "base/strings/string_util.h" 18 #include "base/strings/string_util.h"
16 #include "base/strings/stringprintf.h" 19 #include "base/strings/stringprintf.h"
17 #include "base/third_party/icu/icu_utf.h" 20 #include "base/third_party/icu/icu_utf.h"
21 #include "build/build_config.h"
18 #include "chrome/common/chrome_paths.h" 22 #include "chrome/common/chrome_paths.h"
19 #include "content/public/browser/browser_thread.h" 23 #include "content/public/browser/browser_thread.h"
20 #include "content/public/browser/download_item.h" 24 #include "content/public/browser/download_item.h"
21 25
22 using content::BrowserThread; 26 using content::BrowserThread;
23 using content::DownloadItem; 27 using content::DownloadItem;
24 28
25 namespace { 29 namespace {
26 30
27 typedef DownloadItem* ReservationKey; 31 typedef DownloadItem* ReservationKey;
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 base::Bind(&RunGetReservedPathCallback, 389 base::Bind(&RunGetReservedPathCallback,
386 callback, 390 callback,
387 base::Owned(reserved_path))); 391 base::Owned(reserved_path)));
388 } 392 }
389 393
390 // static 394 // static
391 bool DownloadPathReservationTracker::IsPathInUseForTesting( 395 bool DownloadPathReservationTracker::IsPathInUseForTesting(
392 const base::FilePath& path) { 396 const base::FilePath& path) {
393 return IsPathInUse(path); 397 return IsPathInUse(path);
394 } 398 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698