Add ability to change display settings to chrome.systemInfo.display
[chromium-blink-merge.git] / ppapi / shared_impl / host_resource.cc
blob031a5f04aecd2701c9f7154067f7e7557560876f
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ppapi/shared_impl/host_resource.h"
7 namespace ppapi {
9 HostResource::HostResource() : instance_(0), host_resource_(0) {
12 // static
13 HostResource HostResource::MakeInstanceOnly(PP_Instance instance) {
14 HostResource resource;
15 resource.SetHostResource(instance, 0);
16 return resource;
19 void HostResource::SetHostResource(PP_Instance instance, PP_Resource resource) {
20 instance_ = instance;
21 host_resource_ = resource;
24 } // namespace ppapi