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

Side by Side Diff: base/platform_file.h

Issue 6731033: Remove the path from PlatformFileInfo; it's cleaner just to pass it along as a (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | « no previous file | chrome/browser/extensions/extension_file_browser_private_api.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) 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 #ifndef BASE_PLATFORM_FILE_H_ 5 #ifndef BASE_PLATFORM_FILE_H_
6 #define BASE_PLATFORM_FILE_H_ 6 #define BASE_PLATFORM_FILE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 bool is_symbolic_link; 85 bool is_symbolic_link;
86 86
87 // The last modified time of a file. 87 // The last modified time of a file.
88 base::Time last_modified; 88 base::Time last_modified;
89 89
90 // The last accessed time of a file. 90 // The last accessed time of a file.
91 base::Time last_accessed; 91 base::Time last_accessed;
92 92
93 // The creation time of a file. 93 // The creation time of a file.
94 base::Time creation_time; 94 base::Time creation_time;
95
96 // The full path of a file. Currently only used by FileSystemFileUtil during
97 // a GetMetadata operation.
98 FilePath path;
99 }; 95 };
100 96
101 // Creates or opens the given file. If PLATFORM_FILE_OPEN_ALWAYS is used, and 97 // Creates or opens the given file. If PLATFORM_FILE_OPEN_ALWAYS is used, and
102 // |created| is provided, |created| will be set to true if the file was created 98 // |created| is provided, |created| will be set to true if the file was created
103 // or to false in case the file was just opened. |error_code| can be NULL. 99 // or to false in case the file was just opened. |error_code| can be NULL.
104 BASE_API PlatformFile CreatePlatformFile(const FilePath& name, 100 BASE_API PlatformFile CreatePlatformFile(const FilePath& name,
105 int flags, 101 int flags,
106 bool* created, 102 bool* created,
107 PlatformFileError* error_code); 103 PlatformFileError* error_code);
108 104
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 return temp; 165 return temp;
170 } 166 }
171 167
172 private: 168 private:
173 PlatformFile* value_; 169 PlatformFile* value_;
174 }; 170 };
175 171
176 } // namespace base 172 } // namespace base
177 173
178 #endif // BASE_PLATFORM_FILE_H_ 174 #endif // BASE_PLATFORM_FILE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_file_browser_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698