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

Side by Side Diff: base/platform_file_win.cc

Issue 6028009: Move base/thread.h to base/threading, fix up callers to use the new location.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 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/nss_util.cc ('k') | base/process_util_linux.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/platform_file.h" 5 #include "base/platform_file.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/thread_restrictions.h" 9 #include "base/threading/thread_restrictions.h"
10 10
11 namespace base { 11 namespace base {
12 12
13 PlatformFile CreatePlatformFile(const FilePath& name, 13 PlatformFile CreatePlatformFile(const FilePath& name,
14 int flags, 14 int flags,
15 bool* created, 15 bool* created,
16 PlatformFileError* error_code) { 16 PlatformFileError* error_code) {
17 base::ThreadRestrictions::AssertIOAllowed(); 17 base::ThreadRestrictions::AssertIOAllowed();
18 18
19 DWORD disposition = 0; 19 DWORD disposition = 0;
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 info->is_directory = 215 info->is_directory =
216 file_info.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY != 0; 216 file_info.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY != 0;
217 info->is_symbolic_link = false; // Windows doesn't have symbolic links. 217 info->is_symbolic_link = false; // Windows doesn't have symbolic links.
218 info->last_modified = base::Time::FromFileTime(file_info.ftLastWriteTime); 218 info->last_modified = base::Time::FromFileTime(file_info.ftLastWriteTime);
219 info->last_accessed = base::Time::FromFileTime(file_info.ftLastAccessTime); 219 info->last_accessed = base::Time::FromFileTime(file_info.ftLastAccessTime);
220 info->creation_time = base::Time::FromFileTime(file_info.ftCreationTime); 220 info->creation_time = base::Time::FromFileTime(file_info.ftCreationTime);
221 return true; 221 return true;
222 } 222 }
223 223
224 } // namespace disk_cache 224 } // namespace disk_cache
OLDNEW
« no previous file with comments | « base/nss_util.cc ('k') | base/process_util_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698