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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 } | 149 } |
150 | 150 |
151 void ServiceWorkerGlobalScopeProxy::dispatchSyncEvent(int eventID) | 151 void ServiceWorkerGlobalScopeProxy::dispatchSyncEvent(int eventID) |
152 { | 152 { |
153 ASSERT(m_workerGlobalScope); | 153 ASSERT(m_workerGlobalScope); |
154 if (RuntimeEnabledFeatures::backgroundSyncEnabled()) | 154 if (RuntimeEnabledFeatures::backgroundSyncEnabled()) |
155 m_workerGlobalScope->dispatchEvent(Event::create(EventTypeNames::sync)); | 155 m_workerGlobalScope->dispatchEvent(Event::create(EventTypeNames::sync)); |
156 ServiceWorkerGlobalScopeClient::from(m_workerGlobalScope)->didHandleSyncEven
t(eventID); | 156 ServiceWorkerGlobalScopeClient::from(m_workerGlobalScope)->didHandleSyncEven
t(eventID); |
157 } | 157 } |
158 | 158 |
159 void ServiceWorkerGlobalScopeProxy::reportException(const String& errorMessage,
int lineNumber, int columnNumber, const String& sourceURL) | 159 void ServiceWorkerGlobalScopeProxy::reportException(const String& errorMessage,
int lineNumber, int columnNumber, const String& sourceURL, int) |
160 { | 160 { |
161 m_client.reportException(errorMessage, lineNumber, columnNumber, sourceURL); | 161 m_client.reportException(errorMessage, lineNumber, columnNumber, sourceURL); |
162 } | 162 } |
163 | 163 |
164 void ServiceWorkerGlobalScopeProxy::reportConsoleMessage(PassRefPtrWillBeRawPtr<
ConsoleMessage> consoleMessage) | 164 void ServiceWorkerGlobalScopeProxy::reportConsoleMessage(PassRefPtrWillBeRawPtr<
ConsoleMessage> consoleMessage) |
165 { | 165 { |
166 m_client.reportConsoleMessage(consoleMessage->source(), consoleMessage->leve
l(), consoleMessage->message(), consoleMessage->lineNumber(), consoleMessage->ur
l()); | 166 m_client.reportConsoleMessage(consoleMessage->source(), consoleMessage->leve
l(), consoleMessage->message(), consoleMessage->lineNumber(), consoleMessage->ur
l()); |
167 } | 167 } |
168 | 168 |
169 void ServiceWorkerGlobalScopeProxy::postMessageToPageInspector(const String& mes
sage) | 169 void ServiceWorkerGlobalScopeProxy::postMessageToPageInspector(const String& mes
sage) |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 | 201 |
202 ServiceWorkerGlobalScopeProxy::ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerIm
pl& embeddedWorker, Document& document, WebServiceWorkerContextClient& client) | 202 ServiceWorkerGlobalScopeProxy::ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerIm
pl& embeddedWorker, Document& document, WebServiceWorkerContextClient& client) |
203 : m_embeddedWorker(embeddedWorker) | 203 : m_embeddedWorker(embeddedWorker) |
204 , m_document(document) | 204 , m_document(document) |
205 , m_client(client) | 205 , m_client(client) |
206 , m_workerGlobalScope(0) | 206 , m_workerGlobalScope(0) |
207 { | 207 { |
208 } | 208 } |
209 | 209 |
210 } // namespace blink | 210 } // namespace blink |
OLD | NEW |