| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 { | 237 { |
| 238 client().didEvaluateWorkerScript(success); | 238 client().didEvaluateWorkerScript(success); |
| 239 } | 239 } |
| 240 | 240 |
| 241 void ServiceWorkerGlobalScopeProxy::didInitializeWorkerContext() | 241 void ServiceWorkerGlobalScopeProxy::didInitializeWorkerContext() |
| 242 { | 242 { |
| 243 ScriptState::Scope scope(workerGlobalScope()->scriptController()->getScriptS
tate()); | 243 ScriptState::Scope scope(workerGlobalScope()->scriptController()->getScriptS
tate()); |
| 244 client().didInitializeWorkerContext(workerGlobalScope()->scriptController()-
>context()); | 244 client().didInitializeWorkerContext(workerGlobalScope()->scriptController()-
>context()); |
| 245 } | 245 } |
| 246 | 246 |
| 247 void ServiceWorkerGlobalScopeProxy::workerGlobalScopeStarted(WorkerGlobalScope*
workerGlobalScope) | 247 void ServiceWorkerGlobalScopeProxy::workerGlobalScopeStarted(WorkerOrWorkletGlob
alScope* workerGlobalScope) |
| 248 { | 248 { |
| 249 DCHECK(!m_workerGlobalScope); | 249 DCHECK(!m_workerGlobalScope); |
| 250 m_workerGlobalScope = static_cast<ServiceWorkerGlobalScope*>(workerGlobalSco
pe); | 250 m_workerGlobalScope = static_cast<ServiceWorkerGlobalScope*>(workerGlobalSco
pe); |
| 251 client().workerContextStarted(this); | 251 client().workerContextStarted(this); |
| 252 } | 252 } |
| 253 | 253 |
| 254 void ServiceWorkerGlobalScopeProxy::workerGlobalScopeClosed() | 254 void ServiceWorkerGlobalScopeProxy::workerGlobalScopeClosed() |
| 255 { | 255 { |
| 256 // This should never be called because close() is not defined in | 256 // This should never be called because close() is not defined in |
| 257 // ServiceWorkerGlobalScope. | 257 // ServiceWorkerGlobalScope. |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 return *m_document; | 298 return *m_document; |
| 299 } | 299 } |
| 300 | 300 |
| 301 ServiceWorkerGlobalScope* ServiceWorkerGlobalScopeProxy::workerGlobalScope() con
st | 301 ServiceWorkerGlobalScope* ServiceWorkerGlobalScopeProxy::workerGlobalScope() con
st |
| 302 { | 302 { |
| 303 DCHECK(m_workerGlobalScope); | 303 DCHECK(m_workerGlobalScope); |
| 304 return m_workerGlobalScope; | 304 return m_workerGlobalScope; |
| 305 } | 305 } |
| 306 | 306 |
| 307 } // namespace blink | 307 } // namespace blink |
| OLD | NEW |