summaryrefslogtreecommitdiffstats
path: root/chrome/worker/nativewebworker_stub.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/worker/nativewebworker_stub.cc')
-rw-r--r--chrome/worker/nativewebworker_stub.cc46
1 files changed, 46 insertions, 0 deletions
diff --git a/chrome/worker/nativewebworker_stub.cc b/chrome/worker/nativewebworker_stub.cc
new file mode 100644
index 0000000..1abdc87
--- /dev/null
+++ b/chrome/worker/nativewebworker_stub.cc
@@ -0,0 +1,46 @@
+// Copyright (c) 2009 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.
+
+// Native WebWorker stubs.
+// Please note that this implementation is used only until the native client
+// build is invokable from within Chromium.
+
+#include "chrome/worker/nativewebworker_stub.h"
+
+int NaClStartNativeWebWorker(char *buffer,
+ size_t buf_len,
+ NaClApp **nap,
+ NaClSrpcChannel **untrusted_channel) {
+ return 0;
+}
+
+int NaClPostMessageToNativeWebWorker(char *buffer,
+ size_t buf_len,
+ NaClApp **nap,
+ NaClSrpcChannel **untrusted_ch) {
+ return 0;
+}
+
+int NaClTerminateNativeWebWorker(NaClApp **nap,
+ NaClSrpcChannel **untrusted_channel) {
+ return 0;
+}
+
+int NaClCreateUpcallChannel(NaClDesc* desc[2]) {
+ return 0;
+}
+
+int NaClSrpcSendUpcallDesc(NaClSrpcChannel *channel,
+ NaClDesc *nacl_desc) {
+ return 0;
+}
+
+int NaClSrpcListenerLoop(NaClDesc *chrome_desc,
+ NativeWorkerPostMessageFunc func,
+ WebKit::WebWorkerClient* client) {
+ return 0;
+}
+
+void NaClDestroyUpcallChannel(NaClDesc* desc[2]) {
+}