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

Side by Side Diff: base/platform_file.h

Issue 6864040: Fixed file/directory url resolution for external mount point provider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 PLATFORM_FILE_ERROR_ACCESS_DENIED = -5, 58 PLATFORM_FILE_ERROR_ACCESS_DENIED = -5,
59 PLATFORM_FILE_ERROR_TOO_MANY_OPENED = -6, 59 PLATFORM_FILE_ERROR_TOO_MANY_OPENED = -6,
60 PLATFORM_FILE_ERROR_NO_MEMORY = -7, 60 PLATFORM_FILE_ERROR_NO_MEMORY = -7,
61 PLATFORM_FILE_ERROR_NO_SPACE = -8, 61 PLATFORM_FILE_ERROR_NO_SPACE = -8,
62 PLATFORM_FILE_ERROR_NOT_A_DIRECTORY = -9, 62 PLATFORM_FILE_ERROR_NOT_A_DIRECTORY = -9,
63 PLATFORM_FILE_ERROR_INVALID_OPERATION = -10, 63 PLATFORM_FILE_ERROR_INVALID_OPERATION = -10,
64 PLATFORM_FILE_ERROR_SECURITY = -11, 64 PLATFORM_FILE_ERROR_SECURITY = -11,
65 PLATFORM_FILE_ERROR_ABORT = -12, 65 PLATFORM_FILE_ERROR_ABORT = -12,
66 PLATFORM_FILE_ERROR_NOT_A_FILE = -13, 66 PLATFORM_FILE_ERROR_NOT_A_FILE = -13,
67 PLATFORM_FILE_ERROR_NOT_EMPTY = -14, 67 PLATFORM_FILE_ERROR_NOT_EMPTY = -14,
68 PLATFORM_FILE_ERROR_INVALID_URL = -15,
68 }; 69 };
69 70
70 // Used to hold information about a given file. 71 // Used to hold information about a given file.
71 // If you add more fields to this structure (platform-specific fields are OK), 72 // If you add more fields to this structure (platform-specific fields are OK),
72 // make sure to update all functions that use it in file_util_{win|posix}.cc 73 // make sure to update all functions that use it in file_util_{win|posix}.cc
73 // too, and the ParamTraits<base::PlatformFileInfo> implementation in 74 // too, and the ParamTraits<base::PlatformFileInfo> implementation in
74 // chrome/common/common_param_traits.cc. 75 // chrome/common/common_param_traits.cc.
75 struct BASE_API PlatformFileInfo { 76 struct BASE_API PlatformFileInfo {
76 PlatformFileInfo(); 77 PlatformFileInfo();
77 ~PlatformFileInfo(); 78 ~PlatformFileInfo();
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 return temp; 167 return temp;
167 } 168 }
168 169
169 private: 170 private:
170 PlatformFile* value_; 171 PlatformFile* value_;
171 }; 172 };
172 173
173 } // namespace base 174 } // namespace base
174 175
175 #endif // BASE_PLATFORM_FILE_H_ 176 #endif // BASE_PLATFORM_FILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698