diff options
author | sehr@google.com <sehr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-29 00:30:51 +0000 |
---|---|---|
committer | sehr@google.com <sehr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-29 00:30:51 +0000 |
commit | 07506b507533d46e7ef826819ec9c5cbca5035aa (patch) | |
tree | 6cfc1f745d2703904174adec70eb60fe1d089861 /chrome/worker/nativewebworker_stub.cc | |
parent | 241415acc358cbfb1054c2f4f8510ecbe6fe8c29 (diff) | |
download | chromium_src-07506b507533d46e7ef826819ec9c5cbca5035aa.zip chromium_src-07506b507533d46e7ef826819ec9c5cbca5035aa.tar.gz chromium_src-07506b507533d46e7ef826819ec9c5cbca5035aa.tar.bz2 |
Added stub native web worker support, including build support in preparation
for integrating the native client build.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19479 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/worker/nativewebworker_stub.cc')
-rw-r--r-- | chrome/worker/nativewebworker_stub.cc | 46 |
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]) { +} |