| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "config.h" | 5 #include "config.h" |
| 6 #include "FetchEvent.h" | 6 #include "FetchEvent.h" |
| 7 | 7 |
| 8 #include "modules/serviceworkers/Request.h" | 8 #include "modules/serviceworkers/Request.h" |
| 9 #include "modules/serviceworkers/ServiceWorkerGlobalScope.h" | 9 #include "modules/serviceworkers/ServiceWorkerGlobalScope.h" |
| 10 #include "wtf/RefPtr.h" | 10 #include "wtf/RefPtr.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 return m_request; | 26 return m_request; |
| 27 } | 27 } |
| 28 | 28 |
| 29 bool FetchEvent::isReload() const | 29 bool FetchEvent::isReload() const |
| 30 { | 30 { |
| 31 return m_isReload; | 31 return m_isReload; |
| 32 } | 32 } |
| 33 | 33 |
| 34 void FetchEvent::respondWith(ScriptState* scriptState, const ScriptValue& value,
ExceptionState& exceptionState) | 34 void FetchEvent::respondWith(ScriptState* scriptState, const ScriptValue& value,
ExceptionState& exceptionState) |
| 35 { | 35 { |
| 36 stopImmediatePropagation(); |
| 36 m_observer->respondWith(scriptState, value, exceptionState); | 37 m_observer->respondWith(scriptState, value, exceptionState); |
| 37 } | 38 } |
| 38 | 39 |
| 39 const AtomicString& FetchEvent::interfaceName() const | 40 const AtomicString& FetchEvent::interfaceName() const |
| 40 { | 41 { |
| 41 return EventNames::FetchEvent; | 42 return EventNames::FetchEvent; |
| 42 } | 43 } |
| 43 | 44 |
| 44 void FetchEvent::setIsReload(bool isReload) | 45 void FetchEvent::setIsReload(bool isReload) |
| 45 { | 46 { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 60 } | 61 } |
| 61 | 62 |
| 62 void FetchEvent::trace(Visitor* visitor) | 63 void FetchEvent::trace(Visitor* visitor) |
| 63 { | 64 { |
| 64 visitor->trace(m_request); | 65 visitor->trace(m_request); |
| 65 visitor->trace(m_observer); | 66 visitor->trace(m_observer); |
| 66 Event::trace(visitor); | 67 Event::trace(visitor); |
| 67 } | 68 } |
| 68 | 69 |
| 69 } // namespace blink | 70 } // namespace blink |
| OLD | NEW |