Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SYSTEM_H_ | 5 #ifndef PPAPI_CPP_FILE_SYSTEM_H_ |
| 6 #define PPAPI_CPP_FILE_SYSTEM_H_ | 6 #define PPAPI_CPP_FILE_SYSTEM_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_file_info.h" | 8 #include "ppapi/c/pp_file_info.h" |
| 9 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
| 10 #include "ppapi/c/pp_stdint.h" | 10 #include "ppapi/c/pp_stdint.h" |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 21 | 21 |
| 22 /// The <code>FileSystem</code> class identifies the file system type | 22 /// The <code>FileSystem</code> class identifies the file system type |
| 23 /// associated with a file. | 23 /// associated with a file. |
| 24 class FileSystem : public Resource { | 24 class FileSystem : public Resource { |
| 25 public: | 25 public: |
| 26 /// Constructs an is_null() filesystem resource. If you use this constructor, | 26 /// Constructs an is_null() filesystem resource. If you use this constructor, |
| 27 /// you will have to assign it to a "real" FileSystem object before you can | 27 /// you will have to assign it to a "real" FileSystem object before you can |
| 28 /// use it. | 28 /// use it. |
| 29 FileSystem(); | 29 FileSystem(); |
| 30 | 30 |
| 31 /// The copy constructor for <code>FileSystem</code>. | |
| 32 /// | |
| 33 /// @param[in] other A pointer to a <code>FileSystem</code>. | |
|
yzshen1
2013/05/08 23:25:42
nit: The parameter is not a pointer.
victorhsieh
2013/05/08 23:35:53
Done. Also fixed FileIO.
| |
| 34 FileSystem(const FileSystem& other); | |
| 35 | |
| 31 /// A constructor used when you have received a PP_Resource as a return | 36 /// A constructor used when you have received a PP_Resource as a return |
| 32 /// value that has already been reference counted. | 37 /// value that has already been reference counted. |
| 33 /// | 38 /// |
| 34 /// @param[in] resource A PP_Resource corresponding to a PPB_FileSystem. | 39 /// @param[in] resource A PP_Resource corresponding to a PPB_FileSystem. |
| 35 FileSystem(PassRef, PP_Resource resource); | 40 FileSystem(PassRef, PP_Resource resource); |
| 36 | 41 |
| 37 /// This constructor creates a file system object of the given type. | 42 /// This constructor creates a file system object of the given type. |
| 38 /// | 43 /// |
| 39 /// @param[in] instance The instance with which this resource will be | 44 /// @param[in] instance The instance with which this resource will be |
| 40 /// associated. | 45 /// associated. |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 56 /// @param[in] cc A <code>PP_CompletionCallback</code> to be called upon | 61 /// @param[in] cc A <code>PP_CompletionCallback</code> to be called upon |
| 57 /// completion of Open(). | 62 /// completion of Open(). |
| 58 /// | 63 /// |
| 59 /// @return An int32_t containing an error code from <code>pp_errors.h</code>. | 64 /// @return An int32_t containing an error code from <code>pp_errors.h</code>. |
| 60 int32_t Open(int64_t expected_size, const CompletionCallback& cc); | 65 int32_t Open(int64_t expected_size, const CompletionCallback& cc); |
| 61 }; | 66 }; |
| 62 | 67 |
| 63 } // namespace pp | 68 } // namespace pp |
| 64 | 69 |
| 65 #endif // PPAPI_CPP_FILE_SYSTEM_H_ | 70 #endif // PPAPI_CPP_FILE_SYSTEM_H_ |
| OLD | NEW |