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

Side by Side Diff: base/platform_file.h

Issue 6623015: Add a path for a web page to request the enumeration of a directory. This, t... (Closed) Base URL: svn://svn.chromium.org/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/file_select_helper.h » ('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 24 matching lines...) Expand all
35 PLATFORM_FILE_CREATE_ALWAYS = 8, // May overwrite an old file. 35 PLATFORM_FILE_CREATE_ALWAYS = 8, // May overwrite an old file.
36 PLATFORM_FILE_READ = 16, 36 PLATFORM_FILE_READ = 16,
37 PLATFORM_FILE_WRITE = 32, 37 PLATFORM_FILE_WRITE = 32,
38 PLATFORM_FILE_EXCLUSIVE_READ = 64, // EXCLUSIVE is opposite of Windows SHARE 38 PLATFORM_FILE_EXCLUSIVE_READ = 64, // EXCLUSIVE is opposite of Windows SHARE
39 PLATFORM_FILE_EXCLUSIVE_WRITE = 128, 39 PLATFORM_FILE_EXCLUSIVE_WRITE = 128,
40 PLATFORM_FILE_ASYNC = 256, 40 PLATFORM_FILE_ASYNC = 256,
41 PLATFORM_FILE_TEMPORARY = 512, // Used on Windows only 41 PLATFORM_FILE_TEMPORARY = 512, // Used on Windows only
42 PLATFORM_FILE_HIDDEN = 1024, // Used on Windows only 42 PLATFORM_FILE_HIDDEN = 1024, // Used on Windows only
43 PLATFORM_FILE_DELETE_ON_CLOSE = 2048, 43 PLATFORM_FILE_DELETE_ON_CLOSE = 2048,
44 PLATFORM_FILE_TRUNCATE = 4096, 44 PLATFORM_FILE_TRUNCATE = 4096,
45 PLATFORM_FILE_WRITE_ATTRIBUTES = 8192 // Used on Windows only 45 PLATFORM_FILE_WRITE_ATTRIBUTES = 8192, // Used on Windows only
46 PLATFORM_FILE_ENUMERATE = 16384, // May enumerate directory
46 }; 47 };
47 48
48 // PLATFORM_FILE_ERROR_ACCESS_DENIED is returned when a call fails because of 49 // PLATFORM_FILE_ERROR_ACCESS_DENIED is returned when a call fails because of
49 // a filesystem restriction. PLATFORM_FILE_ERROR_SECURITY is returned when a 50 // a filesystem restriction. PLATFORM_FILE_ERROR_SECURITY is returned when a
50 // browser policy doesn't allow the operation to be executed. 51 // browser policy doesn't allow the operation to be executed.
51 enum PlatformFileError { 52 enum PlatformFileError {
52 PLATFORM_FILE_OK = 0, 53 PLATFORM_FILE_OK = 0,
53 PLATFORM_FILE_ERROR_FAILED = -1, 54 PLATFORM_FILE_ERROR_FAILED = -1,
54 PLATFORM_FILE_ERROR_IN_USE = -2, 55 PLATFORM_FILE_ERROR_IN_USE = -2,
55 PLATFORM_FILE_ERROR_EXISTS = -3, 56 PLATFORM_FILE_ERROR_EXISTS = -3,
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 return temp; 166 return temp;
166 } 167 }
167 168
168 private: 169 private:
169 PlatformFile* value_; 170 PlatformFile* value_;
170 }; 171 };
171 172
172 } // namespace base 173 } // namespace base
173 174
174 #endif // BASE_PLATFORM_FILE_H_ 175 #endif // BASE_PLATFORM_FILE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/file_select_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698