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 28 matching lines...) Expand all Loading... |
39 /// A constructor used when you have received a PP_Resource as a return | 39 /// A constructor used when you have received a PP_Resource as a return |
40 /// value that has already been reference counted. | 40 /// value that has already been reference counted. |
41 /// | 41 /// |
42 /// @param[in] resource A PP_Resource corresponding to file reference. | 42 /// @param[in] resource A PP_Resource corresponding to file reference. |
43 FileRef(PassRef, PP_Resource resource); | 43 FileRef(PassRef, PP_Resource resource); |
44 | 44 |
45 /// A constructor that creates a weak pointer to a file in the given file | 45 /// A constructor that creates a weak pointer to a file in the given file |
46 /// system. File paths are POSIX style. | 46 /// system. File paths are POSIX style. |
47 /// | 47 /// |
48 /// @param[in] file_system A <code>FileSystem</code> corresponding to a file | 48 /// @param[in] file_system A <code>FileSystem</code> corresponding to a file |
49 /// system typ. | 49 /// system type. |
50 /// @param[in] path A path to the file. | 50 /// @param[in] path A path to the file. |
51 FileRef(const FileSystem& file_system, const char* path); | 51 FileRef(const FileSystem& file_system, const char* path); |
52 | 52 |
53 /// The copy constructor for <code>FileRef</code>. | 53 /// The copy constructor for <code>FileRef</code>. |
54 /// | 54 /// |
55 /// @param[in] other A pointer to a <code>FileRef</code>. | 55 /// @param[in] other A pointer to a <code>FileRef</code>. |
56 FileRef(const FileRef& other); | 56 FileRef(const FileRef& other); |
57 | 57 |
58 /// GetFileSystemType() returns the type of the file system. | 58 /// GetFileSystemType() returns the type of the file system. |
59 /// | 59 /// |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 /// @param[in] callback A <code>CompletionCallbackWithOutput</code> | 153 /// @param[in] callback A <code>CompletionCallbackWithOutput</code> |
154 /// to be called upon completion of Query(). | 154 /// to be called upon completion of Query(). |
155 /// | 155 /// |
156 /// @return An int32_t containing an error code from <code>pp_errors.h</code>. | 156 /// @return An int32_t containing an error code from <code>pp_errors.h</code>. |
157 int32_t Query(const CompletionCallbackWithOutput<PP_FileInfo>& callback); | 157 int32_t Query(const CompletionCallbackWithOutput<PP_FileInfo>& callback); |
158 }; | 158 }; |
159 | 159 |
160 } // namespace pp | 160 } // namespace pp |
161 | 161 |
162 #endif // PPAPI_CPP_FILE_REF_H_ | 162 #endif // PPAPI_CPP_FILE_REF_H_ |
OLD | NEW |