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

Unified Diff: ppapi/cpp/dev/zoom_dev.h

Issue 9381010: Convert resources to take an instance key instead of an Instance*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/cpp/dev/zoom_dev.h
diff --git a/ppapi/cpp/dev/zoom_dev.h b/ppapi/cpp/dev/zoom_dev.h
index 0a079f0ef3b94f00ab4af55c93339bb3185800af..951492b32b5cbfe74d1fa5efe518e2c7ab66d32a 100644
--- a/ppapi/cpp/dev/zoom_dev.h
+++ b/ppapi/cpp/dev/zoom_dev.h
@@ -8,11 +8,10 @@
#include <string>
#include "ppapi/c/dev/ppp_zoom_dev.h"
+#include "ppapi/cpp/instance_handle.h"
namespace pp {
-class Instance;
-
// This class allows you to associate the PPP_Zoom_Dev and PPB_Zoom_Dev C-based
// interfaces with an object. It associates itself with the given instance, and
// registers as the global handler for handling the PPP_Zoom_Dev interface that
@@ -38,7 +37,7 @@ class Instance;
// };
class Zoom_Dev {
public:
- Zoom_Dev(Instance* instance);
+ Zoom_Dev(const InstanceHandle& instance);
dmichael (off chromium) 2012/02/22 21:38:44 explicit
virtual ~Zoom_Dev();
// PPP_Zoom_Dev functions exposed as virtual functions for you to
@@ -50,7 +49,7 @@ class Zoom_Dev {
void ZoomLimitsChanged(double minimum_factor, double maximium_factor);
private:
- Instance* associated_instance_;
+ InstanceHandle associated_instance_;
};
} // namespace pp

Powered by Google App Engine
This is Rietveld 408576698