| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 // WorkerGlobalScope | 63 // WorkerGlobalScope |
| 64 void didEvaluateWorkerScript() override; | 64 void didEvaluateWorkerScript() override; |
| 65 | 65 |
| 66 // ServiceWorkerGlobalScope.idl | 66 // ServiceWorkerGlobalScope.idl |
| 67 ServiceWorkerClients* clients(); | 67 ServiceWorkerClients* clients(); |
| 68 ServiceWorkerRegistration* registration(); | 68 ServiceWorkerRegistration* registration(); |
| 69 | 69 |
| 70 ScriptPromise fetch(ScriptState*, const RequestInfo&, const Dictionary&, Exc
eptionState&); | 70 ScriptPromise fetch(ScriptState*, const RequestInfo&, const Dictionary&, Exc
eptionState&); |
| 71 | 71 |
| 72 void close(ExceptionState&); | |
| 73 | |
| 74 ScriptPromise skipWaiting(ScriptState*); | 72 ScriptPromise skipWaiting(ScriptState*); |
| 75 | 73 |
| 76 void setRegistration(std::unique_ptr<WebServiceWorkerRegistration::Handle>); | 74 void setRegistration(std::unique_ptr<WebServiceWorkerRegistration::Handle>); |
| 77 | 75 |
| 78 // EventTarget | 76 // EventTarget |
| 79 const AtomicString& interfaceName() const override; | 77 const AtomicString& interfaceName() const override; |
| 80 | 78 |
| 81 void dispatchExtendableEvent(Event*, WaitUntilObserver*); | 79 void dispatchExtendableEvent(Event*, WaitUntilObserver*); |
| 82 | 80 |
| 83 DEFINE_ATTRIBUTE_EVENT_LISTENER(install); | 81 DEFINE_ATTRIBUTE_EVENT_LISTENER(install); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 108 size_t m_scriptCount; | 106 size_t m_scriptCount; |
| 109 size_t m_scriptTotalSize; | 107 size_t m_scriptTotalSize; |
| 110 size_t m_scriptCachedMetadataTotalSize; | 108 size_t m_scriptCachedMetadataTotalSize; |
| 111 }; | 109 }; |
| 112 | 110 |
| 113 DEFINE_TYPE_CASTS(ServiceWorkerGlobalScope, ExecutionContext, context, context->
isServiceWorkerGlobalScope(), context.isServiceWorkerGlobalScope()); | 111 DEFINE_TYPE_CASTS(ServiceWorkerGlobalScope, ExecutionContext, context, context->
isServiceWorkerGlobalScope(), context.isServiceWorkerGlobalScope()); |
| 114 | 112 |
| 115 } // namespace blink | 113 } // namespace blink |
| 116 | 114 |
| 117 #endif // ServiceWorkerGlobalScope_h | 115 #endif // ServiceWorkerGlobalScope_h |
| OLD | NEW |