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

Side by Side Diff: Source/web/ServiceWorkerGlobalScopeProxy.cpp

Issue 743153002: [DevTools] Show stack trace for exceptions in dedicated workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@worker-capture-stack
Patch Set: Created 6 years 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 } 140 }
141 141
142 void ServiceWorkerGlobalScopeProxy::dispatchSyncEvent(int eventID) 142 void ServiceWorkerGlobalScopeProxy::dispatchSyncEvent(int eventID)
143 { 143 {
144 ASSERT(m_workerGlobalScope); 144 ASSERT(m_workerGlobalScope);
145 if (RuntimeEnabledFeatures::backgroundSyncEnabled()) 145 if (RuntimeEnabledFeatures::backgroundSyncEnabled())
146 m_workerGlobalScope->dispatchEvent(Event::create(EventTypeNames::sync)); 146 m_workerGlobalScope->dispatchEvent(Event::create(EventTypeNames::sync));
147 ServiceWorkerGlobalScopeClient::from(m_workerGlobalScope)->didHandleSyncEven t(eventID); 147 ServiceWorkerGlobalScopeClient::from(m_workerGlobalScope)->didHandleSyncEven t(eventID);
148 } 148 }
149 149
150 void ServiceWorkerGlobalScopeProxy::reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL) 150 void ServiceWorkerGlobalScopeProxy::reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL, int)
151 { 151 {
152 m_client.reportException(errorMessage, lineNumber, columnNumber, sourceURL); 152 m_client.reportException(errorMessage, lineNumber, columnNumber, sourceURL);
153 } 153 }
154 154
155 void ServiceWorkerGlobalScopeProxy::reportConsoleMessage(PassRefPtrWillBeRawPtr< ConsoleMessage> consoleMessage) 155 void ServiceWorkerGlobalScopeProxy::reportConsoleMessage(PassRefPtrWillBeRawPtr< ConsoleMessage> consoleMessage)
156 { 156 {
157 m_client.reportConsoleMessage(consoleMessage->source(), consoleMessage->leve l(), consoleMessage->message(), consoleMessage->lineNumber(), consoleMessage->ur l()); 157 m_client.reportConsoleMessage(consoleMessage->source(), consoleMessage->leve l(), consoleMessage->message(), consoleMessage->lineNumber(), consoleMessage->ur l());
158 } 158 }
159 159
160 void ServiceWorkerGlobalScopeProxy::postMessageToPageInspector(const String& mes sage) 160 void ServiceWorkerGlobalScopeProxy::postMessageToPageInspector(const String& mes sage)
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 192
193 ServiceWorkerGlobalScopeProxy::ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerIm pl& embeddedWorker, Document& document, WebServiceWorkerContextClient& client) 193 ServiceWorkerGlobalScopeProxy::ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerIm pl& embeddedWorker, Document& document, WebServiceWorkerContextClient& client)
194 : m_embeddedWorker(embeddedWorker) 194 : m_embeddedWorker(embeddedWorker)
195 , m_document(document) 195 , m_document(document)
196 , m_client(client) 196 , m_client(client)
197 , m_workerGlobalScope(0) 197 , m_workerGlobalScope(0)
198 { 198 {
199 } 199 }
200 200
201 } // namespace blink 201 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698