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 #include "chrome/worker/nativewebworker_impl.h" | 5 #include "chrome/worker/nativewebworker_impl.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 | 8 |
9 #undef LOG | 9 #undef LOG |
10 | 10 |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "webkit/glue/glue_util.h" | 12 #include "webkit/glue/glue_util.h" |
13 #include "base/thread.h" | 13 #include "base/thread.h" |
14 #include "webkit/api/public/WebString.h" | 14 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" |
15 #include "webkit/api/public/WebURL.h" | 15 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h" |
16 #include "webkit/api/public/WebKitClient.h" | 16 #include "third_party/WebKit/WebKit/chromium/public/WebKitClient.h" |
17 #include "webkit/api/public/WebWorkerClient.h" | 17 #include "third_party/WebKit/WebKit/chromium/public/WebWorkerClient.h" |
18 | 18 |
19 // TODO(sehr): This will be changed to point to the real NaCl headers once | 19 // TODO(sehr): This will be changed to point to the real NaCl headers once |
20 // the builds are integrated. | 20 // the builds are integrated. |
21 #include "chrome/worker/nativewebworker_stub.h" | 21 #include "chrome/worker/nativewebworker_stub.h" |
22 | 22 |
23 namespace { | 23 namespace { |
24 // Remember the main thread's message loop, so that the listener thread | 24 // Remember the main thread's message loop, so that the listener thread |
25 // can post messages to it when the worker wants to post to the renderer. | 25 // can post messages to it when the worker wants to post to the renderer. |
26 static MessageLoop* g_main_thread_message_loop; | 26 static MessageLoop* g_main_thread_message_loop; |
27 | 27 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 // Send a message to NaCl object | 160 // Send a message to NaCl object |
161 retval = NaClPostMessageToNativeWebWorker(bufp, len, &nap_, &channel_); | 161 retval = NaClPostMessageToNativeWebWorker(bufp, len, &nap_, &channel_); |
162 delete[] bufp; | 162 delete[] bufp; |
163 } | 163 } |
164 | 164 |
165 void NativeWebWorkerImpl::workerObjectDestroyed() { | 165 void NativeWebWorkerImpl::workerObjectDestroyed() { |
166 } | 166 } |
167 | 167 |
168 void NativeWebWorkerImpl::clientDestroyed() { | 168 void NativeWebWorkerImpl::clientDestroyed() { |
169 } | 169 } |
OLD | NEW |