OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_THUNK_ENTER_H_ | 5 #ifndef PPAPI_THUNK_ENTER_H_ |
6 #define PPAPI_THUNK_ENTER_H_ | 6 #define PPAPI_THUNK_ENTER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "ppapi/c/pp_resource.h" | 9 #include "ppapi/c/pp_resource.h" |
10 #include "ppapi/shared_impl/api_id.h" | 10 #include "ppapi/shared_impl/api_id.h" |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 public: | 238 public: |
239 EnterResourceNoLock(PP_Resource resource, bool report_error) | 239 EnterResourceNoLock(PP_Resource resource, bool report_error) |
240 : EnterResource<ResourceT, false>(resource, report_error) { | 240 : EnterResource<ResourceT, false>(resource, report_error) { |
241 } | 241 } |
242 }; | 242 }; |
243 | 243 |
244 // Simpler wrapper to enter the resource creation API. This is used for every | 244 // Simpler wrapper to enter the resource creation API. This is used for every |
245 // class so we have this helper function to save template instantiations and | 245 // class so we have this helper function to save template instantiations and |
246 // typing. | 246 // typing. |
247 class PPAPI_THUNK_EXPORT EnterResourceCreation | 247 class PPAPI_THUNK_EXPORT EnterResourceCreation |
248 : public EnterFunction<ResourceCreationAPI> { | 248 : public EnterFunctionNoLock<ResourceCreationAPI> { |
249 public: | 249 public: |
250 EnterResourceCreation(PP_Instance instance); | 250 EnterResourceCreation(PP_Instance instance); |
251 ~EnterResourceCreation(); | 251 ~EnterResourceCreation(); |
252 }; | 252 }; |
253 | 253 |
254 // Simpler wrapper to enter the instance API from proxy code. This is used for | 254 // Simpler wrapper to enter the instance API from proxy code. This is used for |
255 // many interfaces so we have this helper function to save template | 255 // many interfaces so we have this helper function to save template |
256 // instantiations and typing. | 256 // instantiations and typing. |
257 class PPAPI_THUNK_EXPORT EnterInstance | 257 class PPAPI_THUNK_EXPORT EnterInstance |
258 : public EnterFunction<PPB_Instance_FunctionAPI> { | 258 : public EnterFunction<PPB_Instance_FunctionAPI> { |
259 public: | 259 public: |
260 EnterInstance(PP_Instance instance); | 260 EnterInstance(PP_Instance instance); |
261 EnterInstance(PP_Instance instance, const PP_CompletionCallback& callback); | 261 EnterInstance(PP_Instance instance, const PP_CompletionCallback& callback); |
262 ~EnterInstance(); | 262 ~EnterInstance(); |
263 }; | 263 }; |
264 | 264 |
265 } // namespace thunk | 265 } // namespace thunk |
266 } // namespace ppapi | 266 } // namespace ppapi |
267 | 267 |
268 #endif // PPAPI_THUNK_ENTER_H_ | 268 #endif // PPAPI_THUNK_ENTER_H_ |
OLD | NEW |