| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 return m_fetchManager->fetch(scriptState, r->request()); | 154 return m_fetchManager->fetch(scriptState, r->request()); |
| 155 } | 155 } |
| 156 | 156 |
| 157 PassRefPtrWillBeRawPtr<ServiceWorkerClients> ServiceWorkerGlobalScope::clients() | 157 PassRefPtrWillBeRawPtr<ServiceWorkerClients> ServiceWorkerGlobalScope::clients() |
| 158 { | 158 { |
| 159 if (!m_clients) | 159 if (!m_clients) |
| 160 m_clients = ServiceWorkerClients::create(); | 160 m_clients = ServiceWorkerClients::create(); |
| 161 return m_clients; | 161 return m_clients; |
| 162 } | 162 } |
| 163 | 163 |
| 164 void ServiceWorkerGlobalScope::close(ExceptionState& exceptionState) | |
| 165 { | |
| 166 exceptionState.throwDOMException(InvalidAccessError, "Not supported."); | |
| 167 } | |
| 168 | |
| 169 const AtomicString& ServiceWorkerGlobalScope::interfaceName() const | 164 const AtomicString& ServiceWorkerGlobalScope::interfaceName() const |
| 170 { | 165 { |
| 171 return EventTargetNames::ServiceWorkerGlobalScope; | 166 return EventTargetNames::ServiceWorkerGlobalScope; |
| 172 } | 167 } |
| 173 | 168 |
| 174 void ServiceWorkerGlobalScope::trace(Visitor* visitor) | 169 void ServiceWorkerGlobalScope::trace(Visitor* visitor) |
| 175 { | 170 { |
| 176 visitor->trace(m_clients); | 171 visitor->trace(m_clients); |
| 177 visitor->trace(m_caches); | 172 visitor->trace(m_caches); |
| 178 WorkerGlobalScope::trace(visitor); | 173 WorkerGlobalScope::trace(visitor); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 190 | 185 |
| 191 void ServiceWorkerGlobalScope::logExceptionToConsole(const String& errorMessage,
const String& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawP
tr<ScriptCallStack> callStack) | 186 void ServiceWorkerGlobalScope::logExceptionToConsole(const String& errorMessage,
const String& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawP
tr<ScriptCallStack> callStack) |
| 192 { | 187 { |
| 193 WorkerGlobalScope::logExceptionToConsole(errorMessage, sourceURL, lineNumber
, columnNumber, callStack); | 188 WorkerGlobalScope::logExceptionToConsole(errorMessage, sourceURL, lineNumber
, columnNumber, callStack); |
| 194 RefPtrWillBeRawPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(J
SMessageSource, ErrorMessageLevel, errorMessage, sourceURL, lineNumber); | 189 RefPtrWillBeRawPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(J
SMessageSource, ErrorMessageLevel, errorMessage, sourceURL, lineNumber); |
| 195 consoleMessage->setCallStack(callStack); | 190 consoleMessage->setCallStack(callStack); |
| 196 addMessageToWorkerConsole(consoleMessage.release()); | 191 addMessageToWorkerConsole(consoleMessage.release()); |
| 197 } | 192 } |
| 198 | 193 |
| 199 } // namespace blink | 194 } // namespace blink |
| OLD | NEW |