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

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

Issue 403013002: Rename WebCore to blink in Modules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
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 "modules/serviceworkers/RespondWithObserver.h" 6 #include "modules/serviceworkers/RespondWithObserver.h"
7 7
8 #include "bindings/core/v8/ScriptFunction.h" 8 #include "bindings/core/v8/ScriptFunction.h"
9 #include "bindings/core/v8/ScriptPromise.h" 9 #include "bindings/core/v8/ScriptPromise.h"
10 #include "bindings/core/v8/ScriptValue.h" 10 #include "bindings/core/v8/ScriptValue.h"
11 #include "bindings/core/v8/V8Binding.h" 11 #include "bindings/core/v8/V8Binding.h"
12 #include "bindings/modules/v8/V8Response.h" 12 #include "bindings/modules/v8/V8Response.h"
13 #include "core/dom/ExecutionContext.h" 13 #include "core/dom/ExecutionContext.h"
14 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" 14 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h"
15 #include "wtf/Assertions.h" 15 #include "wtf/Assertions.h"
16 #include "wtf/RefPtr.h" 16 #include "wtf/RefPtr.h"
17 #include <v8.h> 17 #include <v8.h>
18 18
19 namespace WebCore { 19 namespace blink {
20 20
21 class RespondWithObserver::ThenFunction FINAL : public ScriptFunction { 21 class RespondWithObserver::ThenFunction FINAL : public ScriptFunction {
22 public: 22 public:
23 enum ResolveType { 23 enum ResolveType {
24 Fulfilled, 24 Fulfilled,
25 Rejected, 25 Rejected,
26 }; 26 };
27 27
28 static PassOwnPtr<ScriptFunction> create(PassRefPtr<RespondWithObserver> obs erver, ResolveType type) 28 static PassOwnPtr<ScriptFunction> create(PassRefPtr<RespondWithObserver> obs erver, ResolveType type)
29 { 29 {
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 sendResponse(V8Response::toNative(object)); 114 sendResponse(V8Response::toNative(object));
115 } 115 }
116 116
117 RespondWithObserver::RespondWithObserver(ExecutionContext* context, int eventID) 117 RespondWithObserver::RespondWithObserver(ExecutionContext* context, int eventID)
118 : ContextLifecycleObserver(context) 118 : ContextLifecycleObserver(context)
119 , m_eventID(eventID) 119 , m_eventID(eventID)
120 , m_state(Initial) 120 , m_state(Initial)
121 { 121 {
122 } 122 }
123 123
124 } // namespace WebCore 124 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/RespondWithObserver.h ('k') | Source/modules/serviceworkers/Response.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698