| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_WORKER_NATIVEWORKER_STUB_H_ | 5 #ifndef CHROME_WORKER_NATIVEWEBWORKER_STUB_H_ |
| 6 #define CHROME_WORKER_NATIVEWORKER_STUB_H_ | 6 #define CHROME_WORKER_NATIVEWEBWORKER_STUB_H_ |
| 7 // Native WebWorker support stub header. | 7 // Native WebWorker support stub header. |
| 8 | 8 |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 | 10 |
| 11 // As we are not including the native client header files, several types | 11 // As we are not including the native client header files, several types |
| 12 // from them need to be named outside of structure/method declarations to | 12 // from them need to be named outside of structure/method declarations to |
| 13 // avoid compiler warnings/errors. | 13 // avoid compiler warnings/errors. |
| 14 | 14 |
| 15 struct NaClApp; | 15 struct NaClApp; |
| 16 struct NaClDesc; | 16 struct NaClDesc; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // Runs an SRPC server loop on the specified channel. The post_message_func | 53 // Runs an SRPC server loop on the specified channel. The post_message_func |
| 54 // is invoked whenever the "postMessage" RPC is received. | 54 // is invoked whenever the "postMessage" RPC is received. |
| 55 int NaClSrpcListenerLoop(struct NaClDesc *chrome_desc, | 55 int NaClSrpcListenerLoop(struct NaClDesc *chrome_desc, |
| 56 NativeWorkerPostMessageFunc func, | 56 NativeWorkerPostMessageFunc func, |
| 57 WebKit::WebWorkerClient* client); | 57 WebKit::WebWorkerClient* client); |
| 58 | 58 |
| 59 // Destroys the upcall channel. | 59 // Destroys the upcall channel. |
| 60 void NaClDestroyUpcallChannel(struct NaClDesc* desc[2]); | 60 void NaClDestroyUpcallChannel(struct NaClDesc* desc[2]); |
| 61 } | 61 } |
| 62 | 62 |
| 63 #endif // CHROME_WORKER_NATIVEWORKER_STUB_H_ | 63 #endif // CHROME_WORKER_NATIVEWEBWORKER_STUB_H_ |
| OLD | NEW |