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

Unified Diff: ppapi/cpp/dev/transport_dev.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/dev/transport_dev.h ('k') | ppapi/cpp/dev/url_util_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/transport_dev.cc
diff --git a/ppapi/cpp/dev/transport_dev.cc b/ppapi/cpp/dev/transport_dev.cc
index 6c163fdb60138862ee81405031dc77ac8b475135..c1153b8c621a5360999516957fed340f2d5c0610 100644
--- a/ppapi/cpp/dev/transport_dev.cc
+++ b/ppapi/cpp/dev/transport_dev.cc
@@ -5,7 +5,7 @@
#include "ppapi/cpp/dev/transport_dev.h"
#include "ppapi/c/pp_errors.h"
-#include "ppapi/cpp/instance.h"
+#include "ppapi/cpp/instance_handle.h"
#include "ppapi/cpp/resource.h"
#include "ppapi/cpp/module.h"
#include "ppapi/cpp/module_impl.h"
@@ -21,12 +21,12 @@ template <> const char* interface_name<PPB_Transport_Dev>() {
} // namespace
-Transport_Dev::Transport_Dev(Instance* instance,
+Transport_Dev::Transport_Dev(const InstanceHandle& instance,
const char* name,
PP_TransportType type) {
if (has_interface<PPB_Transport_Dev>())
PassRefFromConstructor(get_interface<PPB_Transport_Dev>()->CreateTransport(
- instance->pp_instance(), name, type));
+ instance.pp_instance(), name, type));
}
bool Transport_Dev::IsWritable() {
@@ -58,7 +58,7 @@ int32_t Transport_Dev::GetNextAddress(Var* address,
PP_Var temp_address = PP_MakeUndefined();
int32_t ret_val = get_interface<PPB_Transport_Dev>()->GetNextAddress(
pp_resource(), &temp_address, cc.pp_completion_callback());
- *address = Var(Var::PassRef(), temp_address);
+ *address = Var(PASS_REF, temp_address);
return ret_val;
}
« no previous file with comments | « ppapi/cpp/dev/transport_dev.h ('k') | ppapi/cpp/dev/url_util_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698