OLD | NEW |
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 PPAPI_CPP_FILE_REF_H_ | 5 #ifndef PPAPI_CPP_FILE_REF_H_ |
6 #define PPAPI_CPP_FILE_REF_H_ | 6 #define PPAPI_CPP_FILE_REF_H_ |
7 | 7 |
8 #include "ppapi/c/pp_file_info.h" | 8 #include "ppapi/c/pp_file_info.h" |
9 #include "ppapi/c/pp_stdint.h" | 9 #include "ppapi/c/pp_stdint.h" |
10 #include "ppapi/c/ppb_file_ref.h" | 10 #include "ppapi/c/ppb_file_ref.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 /// A constructor used when you have received a PP_Resource as a return | 40 /// A constructor used when you have received a PP_Resource as a return |
41 /// value that has already been reference counted. | 41 /// value that has already been reference counted. |
42 /// | 42 /// |
43 /// @param[in] resource A PP_Resource corresponding to file reference. | 43 /// @param[in] resource A PP_Resource corresponding to file reference. |
44 FileRef(PassRef, PP_Resource resource); | 44 FileRef(PassRef, PP_Resource resource); |
45 | 45 |
46 /// A constructor that creates a weak pointer to a file in the given file | 46 /// A constructor that creates a weak pointer to a file in the given file |
47 /// system. File paths are POSIX style. | 47 /// system. File paths are POSIX style. |
48 /// | 48 /// |
49 /// @param[in] file_system A <code>FileSystem</code> corresponding to a file | 49 /// @param[in] file_system A <code>FileSystem</code> corresponding to a file |
50 /// system typ. | 50 /// system type. |
51 /// @param[in] path A path to the file. | 51 /// @param[in] path A path to the file. |
52 FileRef(const FileSystem& file_system, const char* path); | 52 FileRef(const FileSystem& file_system, const char* path); |
53 | 53 |
54 /// The copy constructor for <code>FileRef</code>. | 54 /// The copy constructor for <code>FileRef</code>. |
55 /// | 55 /// |
56 /// @param[in] other A pointer to a <code>FileRef</code>. | 56 /// @param[in] other A pointer to a <code>FileRef</code>. |
57 FileRef(const FileRef& other); | 57 FileRef(const FileRef& other); |
58 | 58 |
59 /// GetFileSystemType() returns the type of the file system. | 59 /// GetFileSystemType() returns the type of the file system. |
60 /// | 60 /// |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 /// | 177 /// |
178 /// @return An int32_t containing an error code from <code>pp_errors.h</code>. | 178 /// @return An int32_t containing an error code from <code>pp_errors.h</code>. |
179 int32_t ReadDirectoryEntries( | 179 int32_t ReadDirectoryEntries( |
180 const CompletionCallbackWithOutput< std::vector<DirectoryEntry> >& | 180 const CompletionCallbackWithOutput< std::vector<DirectoryEntry> >& |
181 callback); | 181 callback); |
182 }; | 182 }; |
183 | 183 |
184 } // namespace pp | 184 } // namespace pp |
185 | 185 |
186 #endif // PPAPI_CPP_FILE_REF_H_ | 186 #endif // PPAPI_CPP_FILE_REF_H_ |
OLD | NEW |