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

Unified Diff: ppapi/thunk/enter.h

Issue 7006022: Revert 87415 - Convert more interfaces to the new thunk system. This goes up to and including (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/shared_impl/tracker_base.h ('k') | ppapi/thunk/ppb_directory_reader_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/enter.h
===================================================================
--- ppapi/thunk/enter.h (revision 87436)
+++ ppapi/thunk/enter.h (working copy)
@@ -52,11 +52,9 @@
bool succeeded() const { return !!functions_; }
bool failed() const { return !functions_; }
- PP_Instance instance() const { return instance_; }
FunctionsT* functions() { return functions_; }
private:
- PP_Instance instance_;
FunctionsT* functions_;
DISALLOW_COPY_AND_ASSIGN(EnterFunction);
@@ -73,20 +71,6 @@
}
};
-// Used when a caller has a resource, and wants to do EnterFunction for the
-// instance corresponding to that resource.
-template<typename FunctionsT>
-class EnterFunctionGivenResource : public EnterFunction<FunctionsT> {
- public:
- EnterFunctionGivenResource(PP_Resource resource, bool report_error)
- : EnterFunction<FunctionsT>(
- TrackerBase::Get()->GetInstanceForResource(resource),
- report_error) {
- }
-};
-
-// EnterResource ---------------------------------------------------------------
-
template<typename ResourceT>
class EnterResource {
public:
« no previous file with comments | « ppapi/shared_impl/tracker_base.h ('k') | ppapi/thunk/ppb_directory_reader_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698