| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 void ServiceWorkerGlobalScopeProxy::reportConsoleMessage(PassRefPtrWillBeRawPtr<
ConsoleMessage> consoleMessage) | 136 void ServiceWorkerGlobalScopeProxy::reportConsoleMessage(PassRefPtrWillBeRawPtr<
ConsoleMessage> consoleMessage) |
| 137 { | 137 { |
| 138 m_client.reportConsoleMessage(consoleMessage->source(), consoleMessage->leve
l(), consoleMessage->message(), consoleMessage->lineNumber(), consoleMessage->ur
l()); | 138 m_client.reportConsoleMessage(consoleMessage->source(), consoleMessage->leve
l(), consoleMessage->message(), consoleMessage->lineNumber(), consoleMessage->ur
l()); |
| 139 } | 139 } |
| 140 | 140 |
| 141 void ServiceWorkerGlobalScopeProxy::postMessageToPageInspector(const String& mes
sage) | 141 void ServiceWorkerGlobalScopeProxy::postMessageToPageInspector(const String& mes
sage) |
| 142 { | 142 { |
| 143 m_document.postInspectorTask(createCrossThreadTask(&WebEmbeddedWorkerImpl::p
ostMessageToPageInspector, &m_embeddedWorker, message)); | 143 m_document.postInspectorTask(createCrossThreadTask(&WebEmbeddedWorkerImpl::p
ostMessageToPageInspector, &m_embeddedWorker, message)); |
| 144 } | 144 } |
| 145 | 145 |
| 146 void ServiceWorkerGlobalScopeProxy::didEvaluateWorkerScript(bool success) |
| 147 { |
| 148 m_client.didEvaluateWorkerScript(success); |
| 149 } |
| 150 |
| 146 void ServiceWorkerGlobalScopeProxy::workerGlobalScopeStarted(WorkerGlobalScope*
workerGlobalScope) | 151 void ServiceWorkerGlobalScopeProxy::workerGlobalScopeStarted(WorkerGlobalScope*
workerGlobalScope) |
| 147 { | 152 { |
| 148 ASSERT(!m_workerGlobalScope); | 153 ASSERT(!m_workerGlobalScope); |
| 149 m_workerGlobalScope = static_cast<ServiceWorkerGlobalScope*>(workerGlobalSco
pe); | 154 m_workerGlobalScope = static_cast<ServiceWorkerGlobalScope*>(workerGlobalSco
pe); |
| 150 m_client.workerContextStarted(this); | 155 m_client.workerContextStarted(this); |
| 151 } | 156 } |
| 152 | 157 |
| 153 void ServiceWorkerGlobalScopeProxy::workerGlobalScopeClosed() | 158 void ServiceWorkerGlobalScopeProxy::workerGlobalScopeClosed() |
| 154 { | 159 { |
| 155 m_document.postTask(createCrossThreadTask(&WebEmbeddedWorkerImpl::terminateW
orkerContext, &m_embeddedWorker)); | 160 m_document.postTask(createCrossThreadTask(&WebEmbeddedWorkerImpl::terminateW
orkerContext, &m_embeddedWorker)); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 168 | 173 |
| 169 ServiceWorkerGlobalScopeProxy::ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerIm
pl& embeddedWorker, Document& document, WebServiceWorkerContextClient& client) | 174 ServiceWorkerGlobalScopeProxy::ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerIm
pl& embeddedWorker, Document& document, WebServiceWorkerContextClient& client) |
| 170 : m_embeddedWorker(embeddedWorker) | 175 : m_embeddedWorker(embeddedWorker) |
| 171 , m_document(document) | 176 , m_document(document) |
| 172 , m_client(client) | 177 , m_client(client) |
| 173 , m_workerGlobalScope(0) | 178 , m_workerGlobalScope(0) |
| 174 { | 179 { |
| 175 } | 180 } |
| 176 | 181 |
| 177 } // namespace blink | 182 } // namespace blink |
| OLD | NEW |