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

Unified Diff: chrome/worker/nativewebworker_impl.cc

Issue 173193: Updating Worker.postMessage(), DOMWindow.postMessage(), and... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 4 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
« no previous file with comments | « chrome/worker/nativewebworker_impl.h ('k') | chrome/worker/webworkerclient_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/worker/nativewebworker_impl.cc
===================================================================
--- chrome/worker/nativewebworker_impl.cc (revision 23787)
+++ chrome/worker/nativewebworker_impl.cc (working copy)
@@ -35,7 +35,8 @@
}
~PostMessageTask() { }
void Run() {
- client_->postMessageToWorkerObject(message_string_, NULL);
+ WebKit::WebMessagePortChannelArray empty_array;
+ client_->postMessageToWorkerObject(message_string_, empty_array);
}
private:
@@ -147,7 +148,8 @@
}
void NativeWebWorkerImpl::postMessageToWorkerContext(
- const WebKit::WebString& message, WebKit::WebMessagePortChannel* channel) {
+ const WebKit::WebString& message,
+ const WebKit::WebMessagePortChannelArray& channel) {
size_t len;
char* bufp = WebStringToCharp(message, &len);
// Send a message to NaCl object
« no previous file with comments | « chrome/worker/nativewebworker_impl.h ('k') | chrome/worker/webworkerclient_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698