Convert resources to take an instance key instead of an Instance*.

Review URL: https://chromiumcodereview.appspot.com/9381010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123795 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/ppapi/cpp/fullscreen.h b/ppapi/cpp/fullscreen.h
index 55922dd..3504424 100644
--- a/ppapi/cpp/fullscreen.h
+++ b/ppapi/cpp/fullscreen.h
@@ -5,13 +5,14 @@
 #ifndef PPAPI_CPP_FULLSCREEN_H_
 #define PPAPI_CPP_FULLSCREEN_H_
 
+#include "ppapi/cpp/instance_handle.h"
+
 /// @file
 /// This file defines the API for handling transitions of a module instance to
 /// and from fullscreen mode.
 
 namespace pp {
 
-class Instance;
 class Size;
 
 /// The Fullscreen class allowing you to check and toggle fullscreen mode.
@@ -19,9 +20,9 @@
  public:
   /// A constructor for creating a <code>Fullscreen</code>.
   ///
-  /// @param[in] instance The instance that will own the new
-  /// <code>Fullscreen</code>.
-  Fullscreen(Instance* instance);
+  /// @param[in] instance The instance with which this resource will be
+  /// associated.
+  explicit Fullscreen(const InstanceHandle& instance);
 
   /// Destructor.
   virtual ~Fullscreen();
@@ -63,7 +64,7 @@
   bool GetScreenSize(Size* size);
 
  private:
-  Instance* instance_;
+  InstanceHandle instance_;
 };
 
 }  // namespace pp