Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / ppapi / proxy / proxy_object_var.cc
blobcc0054faa139c6371351cee09b064f85cd6999cc
1 // Copyright (c) 2011 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/proxy/proxy_object_var.h"
7 #include "base/logging.h"
8 #include "ppapi/c/pp_var.h"
10 using ppapi::proxy::PluginDispatcher;
12 namespace ppapi {
14 ProxyObjectVar::ProxyObjectVar(PluginDispatcher* dispatcher,
15 int32 host_var_id)
16 : dispatcher_(dispatcher),
17 host_var_id_(host_var_id),
18 user_data_(NULL) {
19 // Should be given valid objects or we'll crash later.
20 DCHECK(host_var_id_);
23 ProxyObjectVar::~ProxyObjectVar() {
26 ProxyObjectVar* ProxyObjectVar::AsProxyObjectVar() {
27 return this;
30 PP_VarType ProxyObjectVar::GetType() const {
31 return PP_VARTYPE_OBJECT;
34 void ProxyObjectVar::AssignVarID(int32 id) {
35 return Var::AssignVarID(id);
38 } // namespace ppapi