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/proxy/interface_proxy.h" | 14 #include "ppapi/proxy/interface_proxy.h" |
15 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" | 15 #include "ppapi/proxy/proxy_completion_callback_factory.h" |
16 #include "ppapi/utility/completion_callback_factory.h" | 16 #include "ppapi/utility/completion_callback_factory.h" |
17 | 17 |
18 namespace ppapi { | 18 namespace ppapi { |
19 | 19 |
20 class HostResource; | 20 class HostResource; |
21 struct PPB_FileRef_CreateInfo; | 21 struct PPB_FileRef_CreateInfo; |
22 | 22 |
23 namespace proxy { | 23 namespace proxy { |
24 | 24 |
25 class SerializedVarReturnValue; | 25 class SerializedVarReturnValue; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 // Host -> Plugin message handlers. | 86 // Host -> Plugin message handlers. |
87 void OnMsgCallbackComplete(const HostResource& host_resource, | 87 void OnMsgCallbackComplete(const HostResource& host_resource, |
88 int callback_id, | 88 int callback_id, |
89 int32_t result); | 89 int32_t result); |
90 | 90 |
91 void OnCallbackCompleteInHost(int32_t result, | 91 void OnCallbackCompleteInHost(int32_t result, |
92 const HostResource& host_resource, | 92 const HostResource& host_resource, |
93 int callback_id); | 93 int callback_id); |
94 | 94 |
95 pp::CompletionCallbackFactory<PPB_FileRef_Proxy, | 95 ProxyCompletionCallbackFactory<PPB_FileRef_Proxy> callback_factory_; |
96 ProxyNonThreadSafeRefCount> callback_factory_; | |
97 | 96 |
98 DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Proxy); | 97 DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Proxy); |
99 }; | 98 }; |
100 | 99 |
101 } // namespace proxy | 100 } // namespace proxy |
102 } // namespace ppapi | 101 } // namespace ppapi |
103 | 102 |
104 #endif // PPAPI_PROXY_PPB_FILE_REF_PROXY_H_ | 103 #endif // PPAPI_PROXY_PPB_FILE_REF_PROXY_H_ |
OLD | NEW |