Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Side by Side Diff: ppapi/thunk/enter.h

Issue 9348092: Revert 121901 - PPAPI: Add unlocking for PPP calls and callbacks. Add more locking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/shared_impl/tracked_callback.cc ('k') | ppapi/thunk/enter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ppapi/shared_impl/tracked_callback.cc ('k') | ppapi/thunk/enter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698