OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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_THUNK_PPB_ISOLATED_FILE_SYSTEM_PRIVATE_API_H_ | 5 #ifndef PPAPI_THUNK_PPB_ISOLATED_FILE_SYSTEM_PRIVATE_API_H_ |
6 #define PPAPI_THUNK_PPB_ISOLATED_FILE_SYSTEM_PRIVATE_API_H_ | 6 #define PPAPI_THUNK_PPB_ISOLATED_FILE_SYSTEM_PRIVATE_API_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
9 #include "ppapi/c/private/ppb_isolated_file_system_private.h" | 11 #include "ppapi/c/private/ppb_isolated_file_system_private.h" |
10 #include "ppapi/shared_impl/singleton_resource_id.h" | 12 #include "ppapi/shared_impl/singleton_resource_id.h" |
11 #include "ppapi/shared_impl/tracked_callback.h" | 13 #include "ppapi/shared_impl/tracked_callback.h" |
12 #include "ppapi/thunk/ppapi_thunk_export.h" | 14 #include "ppapi/thunk/ppapi_thunk_export.h" |
13 | 15 |
14 namespace ppapi { | 16 namespace ppapi { |
15 | 17 |
16 class TrackedCallback; | 18 class TrackedCallback; |
17 | 19 |
18 namespace thunk { | 20 namespace thunk { |
19 | 21 |
20 class PPAPI_THUNK_EXPORT PPB_IsolatedFileSystem_Private_API { | 22 class PPAPI_THUNK_EXPORT PPB_IsolatedFileSystem_Private_API { |
21 public: | 23 public: |
22 virtual ~PPB_IsolatedFileSystem_Private_API() {} | 24 virtual ~PPB_IsolatedFileSystem_Private_API() {} |
23 | 25 |
24 virtual int32_t Open(PP_Instance instance, | 26 virtual int32_t Open(PP_Instance instance, |
25 PP_IsolatedFileSystemType_Private type, | 27 PP_IsolatedFileSystemType_Private type, |
26 PP_Resource* file_system, | 28 PP_Resource* file_system, |
27 scoped_refptr<TrackedCallback> callback) = 0; | 29 scoped_refptr<TrackedCallback> callback) = 0; |
28 | 30 |
29 static const SingletonResourceID kSingletonResourceID = | 31 static const SingletonResourceID kSingletonResourceID = |
30 ISOLATED_FILESYSTEM_SINGLETON_ID; | 32 ISOLATED_FILESYSTEM_SINGLETON_ID; |
31 }; | 33 }; |
32 | 34 |
33 } // namespace thunk | 35 } // namespace thunk |
34 } // namespace ppapi | 36 } // namespace ppapi |
35 | 37 |
36 #endif // PPAPI_THUNK_PPB_ISOLATED_FILE_SYSTEM_PRIVATE_API_H_ | 38 #endif // PPAPI_THUNK_PPB_ISOLATED_FILE_SYSTEM_PRIVATE_API_H_ |
OLD | NEW |