| 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_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 22 matching lines...) Expand all Loading... |
| 33 /// @param[in] instance The instance with which this resource will be | 33 /// @param[in] instance The instance with which this resource will be |
| 34 /// associated. | 34 /// associated. |
| 35 /// | 35 /// |
| 36 /// @param[in] type A file system type as defined by | 36 /// @param[in] type A file system type as defined by |
| 37 /// <code>PP_FileSystemType</code> enum. | 37 /// <code>PP_FileSystemType</code> enum. |
| 38 FileSystem(const InstanceHandle& instance, PP_FileSystemType type); | 38 FileSystem(const InstanceHandle& instance, PP_FileSystemType type); |
| 39 | 39 |
| 40 /// Open() opens the file system. A file system must be opened before running | 40 /// Open() opens the file system. A file system must be opened before running |
| 41 /// any other operation on it. | 41 /// any other operation on it. |
| 42 /// | 42 /// |
| 43 /// @param[in] expected_size The expected size of the file system. | 43 /// @param[in] expected_size The expected size of the file system. Note that |
| 44 /// this does not request quota; to do that, you must either invoke |
| 45 /// requestQuota from JavaScript: |
| 46 /// http://www.html5rocks.com/en/tutorials/file/filesystem/#toc-requesting-quo
ta |
| 47 /// or set the unlimitedStorage permission for Chrome Web Store apps: |
| 48 /// http://code.google.com/chrome/extensions/manifest.html#permissions |
| 49 /// |
| 44 /// @param[in] cc A <code>PP_CompletionCallback</code> to be called upon | 50 /// @param[in] cc A <code>PP_CompletionCallback</code> to be called upon |
| 45 /// completion of Open(). | 51 /// completion of Open(). |
| 46 /// | 52 /// |
| 47 /// @return An int32_t containing an error code from <code>pp_errors.h</code>. | 53 /// @return An int32_t containing an error code from <code>pp_errors.h</code>. |
| 48 int32_t Open(int64_t expected_size, const CompletionCallback& cc); | 54 int32_t Open(int64_t expected_size, const CompletionCallback& cc); |
| 49 }; | 55 }; |
| 50 | 56 |
| 51 } // namespace pp | 57 } // namespace pp |
| 52 | 58 |
| 53 #endif // PPAPI_CPP_FILE_SYSTEM_H_ | 59 #endif // PPAPI_CPP_FILE_SYSTEM_H_ |
| OLD | NEW |