OLD | NEW |
(Empty) | |
| 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_PROXY_PLUGIN_PRIVATE_FILE_SYSTEM_PRIVATE_RESOURCE_H_ |
| 6 #define PPAPI_PROXY_PLUGIN_PRIVATE_FILE_SYSTEM_PRIVATE_RESOURCE_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/memory/ref_counted.h" |
| 11 #include "ppapi/proxy/connection.h" |
| 12 #include "ppapi/proxy/plugin_resource.h" |
| 13 #include "ppapi/proxy/ppapi_proxy_export.h" |
| 14 #include "ppapi/thunk/ppb_plugin_private_file_system_private_api.h" |
| 15 |
| 16 namespace ppapi { |
| 17 |
| 18 class TrackedCallback; |
| 19 |
| 20 namespace proxy { |
| 21 |
| 22 class ResourceMessageReplyParams; |
| 23 |
| 24 class PPAPI_PROXY_EXPORT PluginPrivateFileSystemPrivateResource |
| 25 : public PluginResource, |
| 26 public thunk::PPB_PluginPrivateFileSystem_Private_API { |
| 27 public: |
| 28 PluginPrivateFileSystemPrivateResource(Connection connection, |
| 29 PP_Instance instance); |
| 30 virtual ~PluginPrivateFileSystemPrivateResource(); |
| 31 |
| 32 // Resource overrides. |
| 33 virtual thunk::PPB_PluginPrivateFileSystem_Private_API* |
| 34 AsPPB_PluginPrivateFileSystem_Private_API() OVERRIDE; |
| 35 |
| 36 // PPB_PluginPrivateFileSystem_Private_API implementation. |
| 37 virtual int32_t Open(PP_Instance instance, |
| 38 PP_Resource* file_system_resource, |
| 39 scoped_refptr<TrackedCallback> callback) OVERRIDE; |
| 40 |
| 41 private: |
| 42 DISALLOW_COPY_AND_ASSIGN(PluginPrivateFileSystemPrivateResource); |
| 43 }; |
| 44 |
| 45 } // namespace proxy |
| 46 } // namespace ppapi |
| 47 |
| 48 #endif // PPAPI_PROXY_PLUGIN_PRIVATE_FILE_SYSTEM_PRIVATE_RESOURCE_H_ |
OLD | NEW |