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

Unified Diff: ppapi/cpp/url_request_info.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/url_request_info.h ('k') | ppapi/cpp/url_response_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/url_request_info.cc
diff --git a/ppapi/cpp/url_request_info.cc b/ppapi/cpp/url_request_info.cc
index 1b31240ca7fe26138e4f6e0228c81678221850e9..c7cd22ef3a7f8205fde64757b09446bccbe11542 100644
--- a/ppapi/cpp/url_request_info.cc
+++ b/ppapi/cpp/url_request_info.cc
@@ -5,7 +5,7 @@
#include "ppapi/cpp/url_request_info.h"
#include "ppapi/cpp/file_ref.h"
-#include "ppapi/cpp/instance.h"
+#include "ppapi/cpp/instance_handle.h"
#include "ppapi/cpp/module.h"
#include "ppapi/cpp/module_impl.h"
@@ -19,11 +19,11 @@ template <> const char* interface_name<PPB_URLRequestInfo>() {
} // namespace
-URLRequestInfo::URLRequestInfo(Instance* instance) {
+URLRequestInfo::URLRequestInfo(const InstanceHandle& instance) {
if (!has_interface<PPB_URLRequestInfo>())
return;
PassRefFromConstructor(
- get_interface<PPB_URLRequestInfo>()->Create(instance->pp_instance()));
+ get_interface<PPB_URLRequestInfo>()->Create(instance.pp_instance()));
}
URLRequestInfo::URLRequestInfo(const URLRequestInfo& other)
« no previous file with comments | « ppapi/cpp/url_request_info.h ('k') | ppapi/cpp/url_response_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698