| Index: content/browser/service_worker/service_worker_dispatcher_host.cc
|
| diff --git a/content/browser/service_worker/service_worker_dispatcher_host.cc b/content/browser/service_worker/service_worker_dispatcher_host.cc
|
| index 3970f70901e1fbe2e6142632b266ec2c033f1758..d497e8da8dc4b912ba7f21c33b6af1b568b0da87 100644
|
| --- a/content/browser/service_worker/service_worker_dispatcher_host.cc
|
| +++ b/content/browser/service_worker/service_worker_dispatcher_host.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "content/browser/service_worker/service_worker_dispatcher_host.h"
|
|
|
| +#include "base/logging.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| #include "content/browser/message_port_message_filter.h"
|
| #include "content/browser/message_port_service.h"
|
| @@ -95,6 +96,8 @@ bool ServiceWorkerDispatcherHost::OnMessageReceived(
|
| OnWorkerStopped)
|
| IPC_MESSAGE_HANDLER(EmbeddedWorkerHostMsg_SendMessageToBrowser,
|
| OnSendMessageToBrowser)
|
| + IPC_MESSAGE_HANDLER(EmbeddedWorkerHostMsg_ReportException,
|
| + OnReportException)
|
| IPC_MESSAGE_UNHANDLED(handled = false)
|
| IPC_END_MESSAGE_MAP()
|
|
|
| @@ -293,6 +296,18 @@ void ServiceWorkerDispatcherHost::OnSendMessageToBrowser(
|
| embedded_worker_id, request_id, message);
|
| }
|
|
|
| +void ServiceWorkerDispatcherHost::OnReportException(
|
| + int embedded_worker_id,
|
| + const base::string16& error_message,
|
| + int line_number,
|
| + int column_number,
|
| + const base::string16& source_url) {
|
| + // TODO(horo, nhiroki): Show the error on serviceworker-internals
|
| + // (http://crbug.com/359517).
|
| + DVLOG(2) << "[Error] " << error_message << " (" << source_url
|
| + << ":" << line_number << "," << column_number << ")";
|
| +}
|
| +
|
| void ServiceWorkerDispatcherHost::UnregistrationComplete(
|
| int32 thread_id,
|
| int32 request_id,
|
|
|