Native Client

pp::FileSystem Class Reference

The FileSystem class identifies the file system type associated with a file. More...

Inheritance diagram for pp::FileSystem:

List of all members.

Public Functions

 FileSystem ()
 FileSystem (const FileSystem &other)
 FileSystem (PassRef, PP_Resource resource)
 FileSystem (const InstanceHandle &instance, PP_FileSystemType type)
int32_t Open (int64_t expected_size, const CompletionCallback &cc)

Detailed Description

The FileSystem class identifies the file system type associated with a file.


Constructor and Destructor Details

pp::FileSystem::FileSystem ( )

Constructs an is_null() filesystem resource.

If you use this constructor, you will have to assign it to a "real" FileSystem object before you can use it.

pp::FileSystem::FileSystem ( const FileSystem other)

The copy constructor for FileSystem.

Parameters:
[in]otherA reference to a FileSystem.
pp::FileSystem::FileSystem ( PassRef  ,
PP_Resource  resource 
)

A constructor used when you have received a PP_Resource as a return value that has already been reference counted.

Parameters:
[in]resourceA PP_Resource corresponding to a PPB_FileSystem.
pp::FileSystem::FileSystem ( const InstanceHandle instance,
PP_FileSystemType  type 
)

This constructor creates a file system object of the given type.

Parameters:
[in]instanceThe instance with which this resource will be associated.
[in]typeA file system type as defined by PP_FileSystemType enum.

Function Details

int32_t pp::FileSystem::Open ( int64_t  expected_size,
const CompletionCallback cc 
)

Open() opens the file system.

A file system must be opened before running any other operation on it.

Parameters:
[in]expected_sizeThe expected size of the file system. Note that this does not request quota; to do that, you must either invoke requestQuota from JavaScript: http://www.html5rocks.com/en/tutorials/file/filesystem/#toc-requesting-quota or set the unlimitedStorage permission for Chrome Web Store apps: http://code.google.com/chrome/extensions/manifest.html#permissions
[in]ccA PP_CompletionCallback to be called upon completion of Open().
Returns:
An int32_t containing an error code from pp_errors.h.

The documentation for this class was generated from the following file:

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.