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

Unified Diff: webkit/glue/webworkerclient_impl.cc

Issue 224018: WebKit update 48700:48721.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Updated test expectations for realz. Created 11 years, 3 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 | « webkit/glue/webworker_impl.cc ('k') | webkit/tools/layout_tests/test_expectations.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webworkerclient_impl.cc
===================================================================
--- webkit/glue/webworkerclient_impl.cc (revision 27066)
+++ webkit/glue/webworkerclient_impl.cc (working copy)
@@ -9,16 +9,18 @@
#include "base/compiler_specific.h"
#include "DedicatedWorkerThread.h"
+#include "ErrorEvent.h"
#include "Frame.h"
#include "FrameLoaderClient.h"
#include "GenericWorkerTask.h"
+#include "MessageEvent.h"
#include "MessagePort.h"
#include "MessagePortChannel.h"
#include "ScriptExecutionContext.h"
+#include "Worker.h"
+#include "WorkerContext.h"
#include "WorkerContextExecutionProxy.h"
#include "WorkerMessagingProxy.h"
-#include "Worker.h"
-#include "WorkerContext.h"
#include <wtf/Threading.h>
#undef LOG
@@ -237,10 +239,10 @@
}
bool handled = false;
- handled = worker_->dispatchScriptErrorEvent(
- webkit_glue::WebStringToString(error_message),
- webkit_glue::WebStringToString(source_url),
- line_number);
+ handled = worker_->dispatchEvent(
+ WebCore::ErrorEvent::create(webkit_glue::WebStringToString(error_message),
+ webkit_glue::WebStringToString(source_url),
+ line_number));
if (!handled)
script_execution_context_->reportException(
webkit_glue::WebStringToString(error_message),
@@ -347,7 +349,8 @@
if (this_ptr->worker_) {
WTF::OwnPtr<WebCore::MessagePortArray> ports =
WebCore::MessagePort::entanglePorts(*context, channels.release());
- this_ptr->worker_->dispatchMessage(message, ports.release());
+ this_ptr->worker_->dispatchEvent(
+ WebCore::MessageEvent::create(ports.release(), message));
}
}
@@ -359,8 +362,8 @@
const WebCore::String& source_url) {
bool handled = false;
if (this_ptr->worker_)
- handled = this_ptr->worker_->dispatchScriptErrorEvent(
- error_message, source_url, line_number);
+ handled = this_ptr->worker_->dispatchEvent(
+ WebCore::ErrorEvent::create(error_message, source_url, line_number));
if (!handled)
this_ptr->script_execution_context_->reportException(
error_message, line_number, source_url);
« no previous file with comments | « webkit/glue/webworker_impl.cc ('k') | webkit/tools/layout_tests/test_expectations.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698