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

Unified Diff: ppapi/proxy/ppb_core_proxy.cc

Issue 7623018: Move host resource from the proxy to the shared_impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed Created 9 years, 4 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/proxy/ppb_core_proxy.h ('k') | ppapi/proxy/ppb_cursor_control_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_core_proxy.cc
diff --git a/ppapi/proxy/ppb_core_proxy.cc b/ppapi/proxy/ppb_core_proxy.cc
index 391a914540086d156c61dcdfef7b08f4cb494e9b..41b330132ab303a8de60dc0bc1cf8988ce76958f 100644
--- a/ppapi/proxy/ppb_core_proxy.cc
+++ b/ppapi/proxy/ppb_core_proxy.cc
@@ -19,6 +19,7 @@
#include "ppapi/proxy/ppapi_messages.h"
#include "ppapi/shared_impl/time_conversion.h"
+using ppapi::HostResource;
using ppapi::TimeToPPTime;
using ppapi::TimeTicksToPPTimeTicks;
@@ -118,11 +119,11 @@ bool PPB_Core_Proxy::OnMessageReceived(const IPC::Message& msg) {
return handled;
}
-void PPB_Core_Proxy::OnMsgAddRefResource(HostResource resource) {
+void PPB_Core_Proxy::OnMsgAddRefResource(const HostResource& resource) {
ppb_core_target()->AddRefResource(resource.host_resource());
}
-void PPB_Core_Proxy::OnMsgReleaseResource(HostResource resource) {
+void PPB_Core_Proxy::OnMsgReleaseResource(const HostResource& resource) {
ppb_core_target()->ReleaseResource(resource.host_resource());
}
« no previous file with comments | « ppapi/proxy/ppb_core_proxy.h ('k') | ppapi/proxy/ppb_cursor_control_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698