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

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/RespondWithObserver.cpp

Issue 2834053003: Split V8Binding (Closed)
Patch Set: Rebase Created 3 years, 8 months 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
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 "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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698