| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 ScriptPromise fetch(ScriptState*, const RequestInfo&, const Dictionary&, Exc
eptionState&); | 73 ScriptPromise fetch(ScriptState*, const RequestInfo&, const Dictionary&, Exc
eptionState&); |
| 74 | 74 |
| 75 void close(ExceptionState&); | 75 void close(ExceptionState&); |
| 76 | 76 |
| 77 ScriptPromise skipWaiting(ScriptState*); | 77 ScriptPromise skipWaiting(ScriptState*); |
| 78 | 78 |
| 79 void setRegistration(WebServiceWorkerRegistration*); | 79 void setRegistration(WebServiceWorkerRegistration*); |
| 80 | 80 |
| 81 // EventTarget | 81 // EventTarget |
| 82 bool addEventListener(const AtomicString& eventType, PassRefPtr<EventListene
r>, bool useCapture = false) override; | 82 bool addEventListener(const AtomicString& eventType, PassRefPtrWillBeRawPtr<
EventListener>, bool useCapture = false) override; |
| 83 const AtomicString& interfaceName() const override; | 83 const AtomicString& interfaceName() const override; |
| 84 bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) override; | 84 bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) override; |
| 85 | 85 |
| 86 void dispatchExtendableEvent(PassRefPtrWillBeRawPtr<Event>, WaitUntilObserve
r*); | 86 void dispatchExtendableEvent(PassRefPtrWillBeRawPtr<Event>, WaitUntilObserve
r*); |
| 87 | 87 |
| 88 DEFINE_ATTRIBUTE_EVENT_LISTENER(install); | 88 DEFINE_ATTRIBUTE_EVENT_LISTENER(install); |
| 89 DEFINE_ATTRIBUTE_EVENT_LISTENER(activate); | 89 DEFINE_ATTRIBUTE_EVENT_LISTENER(activate); |
| 90 DEFINE_ATTRIBUTE_EVENT_LISTENER(fetch); | 90 DEFINE_ATTRIBUTE_EVENT_LISTENER(fetch); |
| 91 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); | 91 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); |
| 92 DEFINE_ATTRIBUTE_EVENT_LISTENER(sync); | 92 DEFINE_ATTRIBUTE_EVENT_LISTENER(sync); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 111 size_t m_scriptCount; | 111 size_t m_scriptCount; |
| 112 size_t m_scriptTotalSize; | 112 size_t m_scriptTotalSize; |
| 113 size_t m_scriptCachedMetadataTotalSize; | 113 size_t m_scriptCachedMetadataTotalSize; |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 DEFINE_TYPE_CASTS(ServiceWorkerGlobalScope, ExecutionContext, context, context->
isServiceWorkerGlobalScope(), context.isServiceWorkerGlobalScope()); | 116 DEFINE_TYPE_CASTS(ServiceWorkerGlobalScope, ExecutionContext, context, context->
isServiceWorkerGlobalScope(), context.isServiceWorkerGlobalScope()); |
| 117 | 117 |
| 118 } // namespace blink | 118 } // namespace blink |
| 119 | 119 |
| 120 #endif // ServiceWorkerGlobalScope_h | 120 #endif // ServiceWorkerGlobalScope_h |
| OLD | NEW |