2 * Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
7 #include "ppapi/native_client/src/untrusted/nacl_ppapi_util/nacl_ppapi_util.h"
9 // TODO(bsy): move weak_ref module to the shared directory
10 #include "native_client/src/trusted/weak_ref/weak_ref.h"
11 #include "ppapi/native_client/src/trusted/weak_ref/call_on_main_thread.h"
14 namespace nacl_ppapi
{
16 static VoidResult kVoidResult
;
17 VoidResult
*const g_void_result
= &kVoidResult
;
19 NaClPpapiPluginInstance::NaClPpapiPluginInstance(PP_Instance instance
)
20 : pp::Instance(instance
) {
21 anchor_
= new nacl::WeakRefAnchor();
24 NaClPpapiPluginInstance::~NaClPpapiPluginInstance() {
29 } // namespace nacl_ppapi