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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerReportingProxy.h

Issue 2010603002: Use SourceLocation when reporting runtime exceptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2004243002
Patch Set: test fixes Created 4 years, 7 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: third_party/WebKit/Source/core/workers/WorkerReportingProxy.h
diff --git a/third_party/WebKit/Source/core/workers/WorkerReportingProxy.h b/third_party/WebKit/Source/core/workers/WorkerReportingProxy.h
index eba4ea3c83eadeabd4ab90c8a9566bc3e7090ac0..ea14f9233ef390a65e86aa706ad9e86c32849ae5 100644
--- a/third_party/WebKit/Source/core/workers/WorkerReportingProxy.h
+++ b/third_party/WebKit/Source/core/workers/WorkerReportingProxy.h
@@ -34,10 +34,12 @@
#include "core/CoreExport.h"
#include "platform/heap/Handle.h"
#include "wtf/Forward.h"
+#include "wtf/PassOwnPtr.h"
namespace blink {
class ConsoleMessage;
+class SourceLocation;
class WorkerGlobalScope;
// APIs used by workers to report console and worker activity.
@@ -45,7 +47,7 @@ class CORE_EXPORT WorkerReportingProxy {
public:
virtual ~WorkerReportingProxy() { }
- virtual void reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL, int exceptionId) = 0;
+ virtual void reportException(const String& errorMessage, PassOwnPtr<SourceLocation>) = 0;
virtual void reportConsoleMessage(ConsoleMessage*) = 0;
virtual void postMessageToPageInspector(const String&) = 0;
virtual void postWorkerConsoleAgentEnabled() = 0;

Powered by Google App Engine
This is Rietveld 408576698