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

Unified Diff: content/browser/service_worker/service_worker_dispatcher_host.h

Issue 223333002: SW: Propagate errors/exceptions from service worker to browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
Index: content/browser/service_worker/service_worker_dispatcher_host.h
diff --git a/content/browser/service_worker/service_worker_dispatcher_host.h b/content/browser/service_worker/service_worker_dispatcher_host.h
index 7b992555fa18bd249ce3b5da65b200afe8b1fca9..9ba6b54bee3424e828dfc4f4839353c2a7b2c949 100644
--- a/content/browser/service_worker/service_worker_dispatcher_host.h
+++ b/content/browser/service_worker/service_worker_dispatcher_host.h
@@ -6,6 +6,7 @@
#define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_
#include "base/memory/weak_ptr.h"
+#include "base/strings/string16.h"
#include "content/browser/service_worker/service_worker_registration_status.h"
#include "content/public/browser/browser_message_filter.h"
@@ -58,6 +59,11 @@ class CONTENT_EXPORT ServiceWorkerDispatcherHost : public BrowserMessageFilter {
void OnSendMessageToBrowser(int embedded_worker_id,
int request_id,
const IPC::Message& message);
+ void OnReportException(int embedded_worker_id,
+ const base::string16& error_message,
+ int line_number,
+ int column_number,
+ const base::string16& source_url);
void OnPostMessage(int64 registration_id,
const base::string16& message,
const std::vector<int>& sent_message_port_ids);

Powered by Google App Engine
This is Rietveld 408576698