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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |