OLD | NEW |
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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 workerGlobalScope()->dispatchExtendableEvent(event, observer); | 211 workerGlobalScope()->dispatchExtendableEvent(event, observer); |
212 } | 212 } |
213 | 213 |
214 void ServiceWorkerGlobalScopeProxy::reportException(const String& errorMessage,
PassOwnPtr<SourceLocation> location) | 214 void ServiceWorkerGlobalScopeProxy::reportException(const String& errorMessage,
PassOwnPtr<SourceLocation> location) |
215 { | 215 { |
216 client().reportException(errorMessage, location->lineNumber(), location->col
umnNumber(), location->url()); | 216 client().reportException(errorMessage, location->lineNumber(), location->col
umnNumber(), location->url()); |
217 } | 217 } |
218 | 218 |
219 void ServiceWorkerGlobalScopeProxy::reportConsoleMessage(ConsoleMessage* console
Message) | 219 void ServiceWorkerGlobalScopeProxy::reportConsoleMessage(ConsoleMessage* console
Message) |
220 { | 220 { |
221 client().reportConsoleMessage(consoleMessage->source(), consoleMessage->leve
l(), consoleMessage->message(), consoleMessage->lineNumber(), consoleMessage->ur
l()); | 221 client().reportConsoleMessage(consoleMessage->source(), consoleMessage->leve
l(), consoleMessage->message(), consoleMessage->location()->lineNumber(), consol
eMessage->location()->url()); |
222 } | 222 } |
223 | 223 |
224 void ServiceWorkerGlobalScopeProxy::postMessageToPageInspector(const String& mes
sage) | 224 void ServiceWorkerGlobalScopeProxy::postMessageToPageInspector(const String& mes
sage) |
225 { | 225 { |
226 DCHECK(m_embeddedWorker); | 226 DCHECK(m_embeddedWorker); |
227 document().postInspectorTask(BLINK_FROM_HERE, createCrossThreadTask(&WebEmbe
ddedWorkerImpl::postMessageToPageInspector, AllowCrossThreadAccess(m_embeddedWor
ker), message)); | 227 document().postInspectorTask(BLINK_FROM_HERE, createCrossThreadTask(&WebEmbe
ddedWorkerImpl::postMessageToPageInspector, AllowCrossThreadAccess(m_embeddedWor
ker), message)); |
228 } | 228 } |
229 | 229 |
230 void ServiceWorkerGlobalScopeProxy::didEvaluateWorkerScript(bool success) | 230 void ServiceWorkerGlobalScopeProxy::didEvaluateWorkerScript(bool success) |
231 { | 231 { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 return *m_document; | 292 return *m_document; |
293 } | 293 } |
294 | 294 |
295 ServiceWorkerGlobalScope* ServiceWorkerGlobalScopeProxy::workerGlobalScope() con
st | 295 ServiceWorkerGlobalScope* ServiceWorkerGlobalScopeProxy::workerGlobalScope() con
st |
296 { | 296 { |
297 DCHECK(m_workerGlobalScope); | 297 DCHECK(m_workerGlobalScope); |
298 return m_workerGlobalScope; | 298 return m_workerGlobalScope; |
299 } | 299 } |
300 | 300 |
301 } // namespace blink | 301 } // namespace blink |
OLD | NEW |