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

Unified Diff: ppapi/shared_impl/host_resource.h

Issue 10828023: PPAPI/NaCl: Make NaClIPCAdapter transfer handles more generally (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re-add gyp files Created 8 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/serialized_var.cc ('k') | ppapi/shared_impl/host_resource.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/host_resource.h
diff --git a/ppapi/shared_impl/host_resource.h b/ppapi/shared_impl/host_resource.h
index b6145464786020b6d5a852aea26aa4a0cc2db6b0..c98d2d6a5f8a9f3394fa8ebb256204e9419e646a 100644
--- a/ppapi/shared_impl/host_resource.h
+++ b/ppapi/shared_impl/host_resource.h
@@ -20,8 +20,7 @@ namespace ppapi {
// All HostResources respresent IDs valid in the host.
class PPAPI_SHARED_EXPORT HostResource {
public:
- HostResource() : instance_(0), host_resource_(0) {
- }
+ HostResource();
bool is_null() const {
return !host_resource_;
@@ -31,21 +30,14 @@ class PPAPI_SHARED_EXPORT HostResource {
// resource in the host. Yet these resources still need an instance to be
// associated with. This function creates a HostResource with the given
// instances and a 0 host resource ID for these cases.
- static HostResource MakeInstanceOnly(PP_Instance instance) {
- HostResource resource;
- resource.SetHostResource(instance, 0);
- return resource;
- }
+ static HostResource MakeInstanceOnly(PP_Instance instance);
// Sets and retrieves the internal PP_Resource which is valid for the host
// (a.k.a. renderer, as opposed to the plugin) process.
//
// DO NOT CALL THESE FUNCTIONS IN THE PLUGIN SIDE OF THE PROXY. The values
// will be invalid. See the class comment above.
- void SetHostResource(PP_Instance instance, PP_Resource resource) {
- instance_ = instance;
- host_resource_ = resource;
- }
+ void SetHostResource(PP_Instance instance, PP_Resource resource);
PP_Resource host_resource() const {
return host_resource_;
}
« no previous file with comments | « ppapi/proxy/serialized_var.cc ('k') | ppapi/shared_impl/host_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698