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

Unified Diff: ppapi/cpp/dev/find_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: USELESS PATCH TITLE 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
« no previous file with comments | « ppapi/cpp/dev/file_chooser_dev.cc ('k') | ppapi/cpp/dev/find_dev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/find_dev.h
diff --git a/ppapi/cpp/dev/find_dev.h b/ppapi/cpp/dev/find_dev.h
index b89160f5db56310a77b39eaf368bf2ed8dde6893..4e96f6889cddff47983b15bce3ec6cd771298dd5 100644
--- a/ppapi/cpp/dev/find_dev.h
+++ b/ppapi/cpp/dev/find_dev.h
@@ -8,11 +8,10 @@
#include <string>
#include "ppapi/c/dev/ppp_find_dev.h"
+#include "ppapi/cpp/instance_handle.h"
namespace pp {
-class Instance;
-
// This class allows you to associate the PPP_Find and PPB_Find C-based
// interfaces with an object. It associates itself with the given instance, and
// registers as the global handler for handling the PPP_Find interface that the
@@ -39,7 +38,7 @@ class Instance;
class Find_Dev {
public:
// The instance parameter must outlive this class.
- Find_Dev(Instance* instance);
+ Find_Dev(const InstanceHandle& instance);
virtual ~Find_Dev();
// PPP_Find_Dev functions exposed as virtual functions for you to
@@ -53,7 +52,7 @@ class Find_Dev {
void SelectedFindResultChanged(int32_t index);
private:
- Instance* associated_instance_;
+ InstanceHandle associated_instance_;
};
} // namespace pp
« no previous file with comments | « ppapi/cpp/dev/file_chooser_dev.cc ('k') | ppapi/cpp/dev/find_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698