| 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 "modules/serviceworkers/RespondWithObserver.h" | 5 #include "modules/serviceworkers/RespondWithObserver.h" |
| 6 | 6 |
| 7 #include <v8.h> | 7 #include <v8.h> |
| 8 | 8 |
| 9 #include "bindings/core/v8/ScriptFunction.h" | 9 #include "bindings/core/v8/ScriptFunction.h" |
| 10 #include "bindings/core/v8/ScriptPromise.h" | 10 #include "bindings/core/v8/ScriptPromise.h" |
| 11 #include "bindings/core/v8/ScriptValue.h" | 11 #include "bindings/core/v8/ScriptValue.h" |
| 12 #include "bindings/core/v8/V8Binding.h" | 12 #include "bindings/core/v8/V8BindingForCore.h" |
| 13 #include "core/dom/ExecutionContext.h" | 13 #include "core/dom/ExecutionContext.h" |
| 14 #include "modules/serviceworkers/WaitUntilObserver.h" | 14 #include "modules/serviceworkers/WaitUntilObserver.h" |
| 15 #include "public/platform/modules/serviceworker/WebServiceWorkerResponse.h" | 15 #include "public/platform/modules/serviceworker/WebServiceWorkerResponse.h" |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 class RespondWithObserver::ThenFunction final : public ScriptFunction { | 19 class RespondWithObserver::ThenFunction final : public ScriptFunction { |
| 20 public: | 20 public: |
| 21 enum ResolveType { | 21 enum ResolveType { |
| 22 kFulfilled, | 22 kFulfilled, |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 event_id_(event_id), | 130 event_id_(event_id), |
| 131 state_(kInitial), | 131 state_(kInitial), |
| 132 observer_(observer) {} | 132 observer_(observer) {} |
| 133 | 133 |
| 134 DEFINE_TRACE(RespondWithObserver) { | 134 DEFINE_TRACE(RespondWithObserver) { |
| 135 visitor->Trace(observer_); | 135 visitor->Trace(observer_); |
| 136 ContextLifecycleObserver::Trace(visitor); | 136 ContextLifecycleObserver::Trace(visitor); |
| 137 } | 137 } |
| 138 | 138 |
| 139 } // namespace blink | 139 } // namespace blink |
| OLD | NEW |