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

Unified Diff: ppapi/native_client/src/untrusted/nacl_ppapi_util/nacl_ppapi_util.cc

Issue 10914053: Relocating files in the nacl repo that belong in chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 3 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
Index: ppapi/native_client/src/untrusted/nacl_ppapi_util/nacl_ppapi_util.cc
diff --git a/ppapi/native_client/src/untrusted/nacl_ppapi_util/nacl_ppapi_util.cc b/ppapi/native_client/src/untrusted/nacl_ppapi_util/nacl_ppapi_util.cc
new file mode 100644
index 0000000000000000000000000000000000000000..38080649da9233e6006b536efcc06b2e8bcbdcbb
--- /dev/null
+++ b/ppapi/native_client/src/untrusted/nacl_ppapi_util/nacl_ppapi_util.cc
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) 2011 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 "native_client/src/untrusted/nacl_ppapi_util/nacl_ppapi_util.h"
+
+// TODO(bsy): move weak_ref module to the shared directory
+#include "native_client/src/trusted/weak_ref/weak_ref.h"
+#include "native_client/src/trusted/weak_ref/call_on_main_thread.h"
+
+
+namespace nacl_ppapi {
+
+static VoidResult kVoidResult;
+VoidResult *const g_void_result = &kVoidResult;
+
+NaClPpapiPluginInstance::NaClPpapiPluginInstance(PP_Instance instance)
+ : pp::Instance(instance) {
+ anchor_ = new nacl::WeakRefAnchor();
+}
+
+NaClPpapiPluginInstance::~NaClPpapiPluginInstance() {
+ anchor_->Abandon();
+ anchor_->Unref();
+}
+
+} // namespace nacl_ppapi

Powered by Google App Engine
This is Rietveld 408576698