| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "modules/serviceworkers/InstallEvent.h" | 5 #include "modules/serviceworkers/InstallEvent.h" |
| 6 | 6 |
| 7 #include "core/dom/ExceptionCode.h" | 7 #include "core/dom/ExceptionCode.h" |
| 8 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" | 8 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" |
| 9 #include "public/platform/WebSecurityOrigin.h" | 9 #include "public/platform/WebSecurityOrigin.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 InstallEvent* InstallEvent::create() | |
| 14 { | |
| 15 return new InstallEvent(); | |
| 16 } | |
| 17 | |
| 18 InstallEvent* InstallEvent::create(const AtomicString& type, const ExtendableEve
ntInit& eventInit) | 13 InstallEvent* InstallEvent::create(const AtomicString& type, const ExtendableEve
ntInit& eventInit) |
| 19 { | 14 { |
| 20 return new InstallEvent(type, eventInit); | 15 return new InstallEvent(type, eventInit); |
| 21 } | 16 } |
| 22 | 17 |
| 23 InstallEvent* InstallEvent::create(const AtomicString& type, const ExtendableEve
ntInit& eventInit, WaitUntilObserver* observer) | 18 InstallEvent* InstallEvent::create(const AtomicString& type, const ExtendableEve
ntInit& eventInit, WaitUntilObserver* observer) |
| 24 { | 19 { |
| 25 return new InstallEvent(type, eventInit, observer); | 20 return new InstallEvent(type, eventInit, observer); |
| 26 } | 21 } |
| 27 | 22 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 } | 83 } |
| 89 } | 84 } |
| 90 client->registerForeignFetchScopes(subScopeURLs, parsedOrigins); | 85 client->registerForeignFetchScopes(subScopeURLs, parsedOrigins); |
| 91 } | 86 } |
| 92 | 87 |
| 93 const AtomicString& InstallEvent::interfaceName() const | 88 const AtomicString& InstallEvent::interfaceName() const |
| 94 { | 89 { |
| 95 return EventNames::InstallEvent; | 90 return EventNames::InstallEvent; |
| 96 } | 91 } |
| 97 | 92 |
| 98 InstallEvent::InstallEvent() | |
| 99 { | |
| 100 } | |
| 101 | |
| 102 InstallEvent::InstallEvent(const AtomicString& type, const ExtendableEventInit&
initializer) | 93 InstallEvent::InstallEvent(const AtomicString& type, const ExtendableEventInit&
initializer) |
| 103 : ExtendableEvent(type, initializer) | 94 : ExtendableEvent(type, initializer) |
| 104 { | 95 { |
| 105 } | 96 } |
| 106 | 97 |
| 107 InstallEvent::InstallEvent(const AtomicString& type, const ExtendableEventInit&
initializer, WaitUntilObserver* observer) | 98 InstallEvent::InstallEvent(const AtomicString& type, const ExtendableEventInit&
initializer, WaitUntilObserver* observer) |
| 108 : ExtendableEvent(type, initializer, observer) | 99 : ExtendableEvent(type, initializer, observer) |
| 109 { | 100 { |
| 110 } | 101 } |
| 111 | 102 |
| 112 } // namespace blink | 103 } // namespace blink |
| OLD | NEW |