• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2013 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_PRIVATE_ISOLATED_FILE_SYSTEM_PRIVATE_H_
6 #define PPAPI_CPP_PRIVATE_ISOLATED_FILE_SYSTEM_PRIVATE_H_
7 
8 #include "ppapi/c/pp_instance.h"
9 #include "ppapi/c/private/ppb_isolated_file_system_private.h"
10 #include "ppapi/cpp/completion_callback.h"
11 #include "ppapi/cpp/file_system.h"
12 #include "ppapi/cpp/instance_handle.h"
13 
14 namespace pp {
15 
16 class CompletionCallback;
17 
18 class IsolatedFileSystemPrivate {
19  public:
20   IsolatedFileSystemPrivate();
21   IsolatedFileSystemPrivate(const InstanceHandle& instance,
22                             PP_IsolatedFileSystemType_Private type);
23   virtual ~IsolatedFileSystemPrivate();
24 
25   int32_t Open(const CompletionCallbackWithOutput<pp::FileSystem>& cc);
26 
27  private:
28   PP_Instance instance_;
29   PP_IsolatedFileSystemType_Private type_;
30 };
31 
32 }  // namespace pp
33 
34 #endif  // PPAPI_CPP_PRIVATE_ISOLATED_FILE_SYSTEM_PRIVATE_H_
35