Pepper_56_C++_interfaces
Pepper_56_C++_interfaces
 All Classes Namespaces Files Functions Typedefs Enumerations Macros Groups
file_system.h
Go to the documentation of this file.
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
3 // found in the LICENSE file.
4 
5 #ifndef PPAPI_CPP_FILE_SYSTEM_H_
6 #define PPAPI_CPP_FILE_SYSTEM_H_
7 
8 #include "ppapi/c/pp_file_info.h"
9 #include "ppapi/c/pp_instance.h"
10 #include "ppapi/c/pp_stdint.h"
11 #include "ppapi/c/pp_time.h"
12 #include "ppapi/cpp/instance.h"
13 #include "ppapi/cpp/resource.h"
14 
17 
18 namespace pp {
19 
20 class CompletionCallback;
21 
24 class FileSystem : public Resource {
25  public:
29  FileSystem();
30 
34  FileSystem(const FileSystem& other);
35 
39  explicit FileSystem(const Resource& resource);
40 
45  FileSystem(PassRef, PP_Resource resource);
46 
54  FileSystem(const InstanceHandle& instance, PP_FileSystemType type);
55 
70  int32_t Open(int64_t expected_size, const CompletionCallback& cc);
71 
78  static bool IsFileSystem(const Resource& resource);
79 };
80 
81 } // namespace pp
82 
83 #endif // PPAPI_CPP_FILE_SYSTEM_H_
static bool IsFileSystem(const Resource &resource)
Definition: completion_callback.h:26
Definition: instance_handle.h:44
PassRef
Definition: pass_ref.h:17
Definition: file_system.h:24
A reference counted module resource.
Definition: resource.h:20
int32_t Open(int64_t expected_size, const CompletionCallback &cc)