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