Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Side by Side Diff: Source/modules/serviceworkers/FetchEvent.cpp

Issue 731433002: Service Worker: respondWith() invokes stopImmediatePropagation() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fmt Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « LayoutTests/http/tests/serviceworker/resources/fetch-event-respond-with-stops-propagation-worker.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/serviceworker/resources/fetch-event-respond-with-stops-propagation-worker.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698