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

Side by Side Diff: base/file_util_win.cc

Issue 12294008: Fix more remaining FilePath -> base::FilePath. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
« no previous file with comments | « base/file_path.h ('k') | base/file_version_info_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/file_util.h" 5 #include "base/file_util.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <psapi.h> 8 #include <psapi.h>
9 #include <shellapi.h> 9 #include <shellapi.h>
10 #include <shlobj.h> 10 #include <shlobj.h>
11 #include <time.h> 11 #include <time.h>
12 12
13 #include <limits> 13 #include <limits>
14 #include <string> 14 #include <string>
15 15
16 #include "base/file_path.h" 16 #include "base/file_path.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/metrics/histogram.h" 18 #include "base/metrics/histogram.h"
19 #include "base/process_util.h" 19 #include "base/process_util.h"
20 #include "base/string_util.h" 20 #include "base/string_util.h"
21 #include "base/strings/string_number_conversions.h" 21 #include "base/strings/string_number_conversions.h"
22 #include "base/threading/thread_restrictions.h" 22 #include "base/threading/thread_restrictions.h"
23 #include "base/time.h" 23 #include "base/time.h"
24 #include "base/utf_string_conversions.h" 24 #include "base/utf_string_conversions.h"
25 #include "base/win/scoped_handle.h" 25 #include "base/win/scoped_handle.h"
26 #include "base/win/windows_version.h" 26 #include "base/win/windows_version.h"
27 27
28 using base::FilePath;
29
28 namespace file_util { 30 namespace file_util {
29 31
30 namespace { 32 namespace {
31 33
32 const DWORD kFileShareAll = 34 const DWORD kFileShareAll =
33 FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE; 35 FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE;
34 36
35 } // namespace 37 } // namespace
36 38
37 bool AbsolutePath(FilePath* path) { 39 bool AbsolutePath(FilePath* path) {
(...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 HANDLE cp = GetCurrentProcess(); 944 HANDLE cp = GetCurrentProcess();
943 if (::GetMappedFileNameW(cp, file_view, mapped_file_path, kMaxPathLength)) { 945 if (::GetMappedFileNameW(cp, file_view, mapped_file_path, kMaxPathLength)) {
944 *nt_path = FilePath(mapped_file_path); 946 *nt_path = FilePath(mapped_file_path);
945 success = true; 947 success = true;
946 } 948 }
947 ::UnmapViewOfFile(file_view); 949 ::UnmapViewOfFile(file_view);
948 return success; 950 return success;
949 } 951 }
950 952
951 } // namespace file_util 953 } // namespace file_util
OLDNEW
« no previous file with comments | « base/file_path.h ('k') | base/file_version_info_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698