| 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" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 namespace proxy { | 23 namespace proxy { |
| 24 | 24 |
| 25 class SerializedVarReturnValue; | 25 class SerializedVarReturnValue; |
| 26 | 26 |
| 27 class PPB_FileRef_Proxy : public InterfaceProxy { | 27 class PPB_FileRef_Proxy : public InterfaceProxy { |
| 28 public: | 28 public: |
| 29 explicit PPB_FileRef_Proxy(Dispatcher* dispatcher); | 29 explicit PPB_FileRef_Proxy(Dispatcher* dispatcher); |
| 30 virtual ~PPB_FileRef_Proxy(); | 30 virtual ~PPB_FileRef_Proxy(); |
| 31 | 31 |
| 32 static const Info* GetPrivateInfo(); | |
| 33 | |
| 34 static PP_Resource CreateProxyResource(PP_Resource file_system, | 32 static PP_Resource CreateProxyResource(PP_Resource file_system, |
| 35 const char* path); | 33 const char* path); |
| 36 | 34 |
| 37 // InterfaceProxy implementation. | 35 // InterfaceProxy implementation. |
| 38 virtual bool OnMessageReceived(const IPC::Message& msg); | 36 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 39 | 37 |
| 40 // Takes a resource in the host and converts it into a serialized file ref | 38 // Takes a resource in the host and converts it into a serialized file ref |
| 41 // "create info" for reconstitution in the plugin. This struct contains all | 39 // "create info" for reconstitution in the plugin. This struct contains all |
| 42 // the necessary information about the file ref. | 40 // the necessary information about the file ref. |
| 43 // | 41 // |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 pp::CompletionCallbackFactory<PPB_FileRef_Proxy, | 93 pp::CompletionCallbackFactory<PPB_FileRef_Proxy, |
| 96 ProxyNonThreadSafeRefCount> callback_factory_; | 94 ProxyNonThreadSafeRefCount> callback_factory_; |
| 97 | 95 |
| 98 DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Proxy); | 96 DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Proxy); |
| 99 }; | 97 }; |
| 100 | 98 |
| 101 } // namespace proxy | 99 } // namespace proxy |
| 102 } // namespace ppapi | 100 } // namespace ppapi |
| 103 | 101 |
| 104 #endif // PPAPI_PROXY_PPB_FILE_REF_PROXY_H_ | 102 #endif // PPAPI_PROXY_PPB_FILE_REF_PROXY_H_ |
| OLD | NEW |