summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/plugin_resource_var.cc
blob: be4eec5b674cfe691d5034547dcaa0a57e567395 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ppapi/proxy/plugin_resource_var.h"

PluginResourceVar::PluginResourceVar() {}

PluginResourceVar::PluginResourceVar(ppapi::Resource* resource)
    : resource_(resource) {}

PP_Resource PluginResourceVar::GetPPResource() const {
  return resource_ ? resource_->pp_resource() : 0;
}

bool PluginResourceVar::IsPending() const {
  return false;
}

PluginResourceVar::~PluginResourceVar() {}