| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PROXY_PPB_FILE_REF_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_FILE_REF_PROXY_H_ |
| 6 #define PPAPI_PROXY_PPB_FILE_REF_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_FILE_REF_PROXY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "ppapi/c/pp_module.h" | 11 #include "ppapi/c/pp_module.h" |
| 12 #include "ppapi/c/pp_resource.h" | 12 #include "ppapi/c/pp_resource.h" |
| 13 #include "ppapi/c/pp_time.h" | 13 #include "ppapi/c/pp_time.h" |
| 14 #include "ppapi/cpp/completion_callback.h" | 14 #include "ppapi/cpp/completion_callback.h" |
| 15 #include "ppapi/proxy/interface_proxy.h" | 15 #include "ppapi/proxy/interface_proxy.h" |
| 16 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" | 16 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" |
| 17 | 17 |
| 18 struct PPB_FileRef_Dev; | |
| 19 | |
| 20 namespace ppapi { | 18 namespace ppapi { |
| 21 | 19 |
| 22 class HostResource; | 20 class HostResource; |
| 23 struct PPB_FileRef_CreateInfo; | 21 struct PPB_FileRef_CreateInfo; |
| 24 | 22 |
| 25 namespace proxy { | 23 namespace proxy { |
| 26 | 24 |
| 27 class PPB_FileRef_Proxy : public InterfaceProxy { | 25 class PPB_FileRef_Proxy : public InterfaceProxy { |
| 28 public: | 26 public: |
| 29 PPB_FileRef_Proxy(Dispatcher* dispatcher); | 27 explicit PPB_FileRef_Proxy(Dispatcher* dispatcher); |
| 30 virtual ~PPB_FileRef_Proxy(); | 28 virtual ~PPB_FileRef_Proxy(); |
| 31 | 29 |
| 32 static PP_Resource CreateProxyResource(PP_Resource file_system, | 30 static PP_Resource CreateProxyResource(PP_Resource file_system, |
| 33 const char* path); | 31 const char* path); |
| 34 | 32 |
| 35 // InterfaceProxy implementation. | 33 // InterfaceProxy implementation. |
| 36 virtual bool OnMessageReceived(const IPC::Message& msg); | 34 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 37 | 35 |
| 38 // Takes a resource in the host and converts it into a serialized file ref | 36 // Takes a resource in the host and converts it into a serialized file ref |
| 39 // "create info" for reconstitution in the plugin. This struct contains all | 37 // "create info" for reconstitution in the plugin. This struct contains all |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 pp::CompletionCallbackFactory<PPB_FileRef_Proxy, | 89 pp::CompletionCallbackFactory<PPB_FileRef_Proxy, |
| 92 ProxyNonThreadSafeRefCount> callback_factory_; | 90 ProxyNonThreadSafeRefCount> callback_factory_; |
| 93 | 91 |
| 94 DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Proxy); | 92 DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Proxy); |
| 95 }; | 93 }; |
| 96 | 94 |
| 97 } // namespace proxy | 95 } // namespace proxy |
| 98 } // namespace ppapi | 96 } // namespace ppapi |
| 99 | 97 |
| 100 #endif // PPAPI_PROXY_PPB_FILE_REF_PROXY_H_ | 98 #endif // PPAPI_PROXY_PPB_FILE_REF_PROXY_H_ |
| OLD | NEW |