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_file_info.h" |
11 #include "ppapi/c/pp_module.h" | 12 #include "ppapi/c/pp_module.h" |
12 #include "ppapi/c/pp_resource.h" | 13 #include "ppapi/c/pp_resource.h" |
13 #include "ppapi/c/pp_time.h" | 14 #include "ppapi/c/pp_time.h" |
14 #include "ppapi/proxy/interface_proxy.h" | 15 #include "ppapi/proxy/interface_proxy.h" |
15 #include "ppapi/proxy/ppapi_proxy_export.h" | 16 #include "ppapi/proxy/ppapi_proxy_export.h" |
16 #include "ppapi/proxy/proxy_completion_callback_factory.h" | 17 #include "ppapi/proxy/proxy_completion_callback_factory.h" |
17 #include "ppapi/utility/completion_callback_factory.h" | 18 #include "ppapi/utility/completion_callback_factory.h" |
18 | 19 |
19 namespace ppapi { | 20 namespace ppapi { |
20 | 21 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 int callback_id); | 73 int callback_id); |
73 void OnMsgTouch(const HostResource& host_resource, | 74 void OnMsgTouch(const HostResource& host_resource, |
74 PP_Time last_access, | 75 PP_Time last_access, |
75 PP_Time last_modified, | 76 PP_Time last_modified, |
76 int callback_id); | 77 int callback_id); |
77 void OnMsgDelete(const HostResource& host_resource, | 78 void OnMsgDelete(const HostResource& host_resource, |
78 int callback_id); | 79 int callback_id); |
79 void OnMsgRename(const HostResource& file_ref, | 80 void OnMsgRename(const HostResource& file_ref, |
80 const HostResource& new_file_ref, | 81 const HostResource& new_file_ref, |
81 int callback_id); | 82 int callback_id); |
| 83 void OnMsgQuery(const HostResource& file_ref, |
| 84 int callback_id); |
82 void OnMsgGetAbsolutePath(const HostResource& host_resource, | 85 void OnMsgGetAbsolutePath(const HostResource& host_resource, |
83 SerializedVarReturnValue result); | 86 SerializedVarReturnValue result); |
84 | 87 |
85 // Host -> Plugin message handlers. | 88 // Host -> Plugin message handlers. |
86 void OnMsgCallbackComplete(const HostResource& host_resource, | 89 void OnMsgCallbackComplete(const HostResource& host_resource, |
87 int callback_id, | 90 int callback_id, |
88 int32_t result); | 91 int32_t result); |
| 92 void OnMsgQueryCallbackComplete(const HostResource& host_resource, |
| 93 const PP_FileInfo& info, |
| 94 int callback_id, |
| 95 int32_t result); |
89 | 96 |
90 void OnCallbackCompleteInHost(int32_t result, | 97 void OnCallbackCompleteInHost(int32_t result, |
91 const HostResource& host_resource, | 98 const HostResource& host_resource, |
92 int callback_id); | 99 int callback_id); |
| 100 void OnQueryCallbackCompleteInHost(int32_t result, |
| 101 const HostResource& host_resource, |
| 102 PP_FileInfo* info, |
| 103 int callback_id); |
93 | 104 |
94 ProxyCompletionCallbackFactory<PPB_FileRef_Proxy> callback_factory_; | 105 ProxyCompletionCallbackFactory<PPB_FileRef_Proxy> callback_factory_; |
95 | 106 |
96 DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Proxy); | 107 DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Proxy); |
97 }; | 108 }; |
98 | 109 |
99 } // namespace proxy | 110 } // namespace proxy |
100 } // namespace ppapi | 111 } // namespace ppapi |
101 | 112 |
102 #endif // PPAPI_PROXY_PPB_FILE_REF_PROXY_H_ | 113 #endif // PPAPI_PROXY_PPB_FILE_REF_PROXY_H_ |
OLD | NEW |