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

Unified Diff: ppapi/cpp/private/udp_socket_private.cc

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/private/udp_socket_private.h ('k') | ppapi/cpp/private/var_private.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/private/udp_socket_private.cc
diff --git a/ppapi/cpp/private/udp_socket_private.cc b/ppapi/cpp/private/udp_socket_private.cc
index 68d372f6c14f3c18bab660a9a018a4e6f11e3061..34c3e54d2b6bb3b37def8f2c41f5f9fdef7da812 100644
--- a/ppapi/cpp/private/udp_socket_private.cc
+++ b/ppapi/cpp/private/udp_socket_private.cc
@@ -7,7 +7,7 @@
#include "ppapi/c/pp_bool.h"
#include "ppapi/c/pp_errors.h"
#include "ppapi/cpp/completion_callback.h"
-#include "ppapi/cpp/instance.h"
+#include "ppapi/cpp/instance_handle.h"
#include "ppapi/cpp/module.h"
#include "ppapi/cpp/module_impl.h"
@@ -21,10 +21,10 @@ template <> const char* interface_name<PPB_UDPSocket_Private>() {
} // namespace
-UDPSocketPrivate::UDPSocketPrivate(Instance* instance) {
- if (has_interface<PPB_UDPSocket_Private>() && instance) {
+UDPSocketPrivate::UDPSocketPrivate(const InstanceHandle& instance) {
+ if (has_interface<PPB_UDPSocket_Private>()) {
PassRefFromConstructor(get_interface<PPB_UDPSocket_Private>()->Create(
- instance->pp_instance()));
+ instance.pp_instance()));
}
}
« no previous file with comments | « ppapi/cpp/private/udp_socket_private.h ('k') | ppapi/cpp/private/var_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698