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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 "bindings/core/v8/ScriptFunction.h" 8 #include "bindings/core/v8/ScriptFunction.h"
8 #include "bindings/core/v8/ScriptPromise.h" 9 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptValue.h" 10 #include "bindings/core/v8/ScriptValue.h"
10 #include "bindings/core/v8/V8Binding.h" 11 #include "bindings/core/v8/V8Binding.h"
11 #include "bindings/modules/v8/V8Response.h" 12 #include "bindings/modules/v8/V8Response.h"
12 #include "core/dom/ExceptionCode.h" 13 #include "core/dom/ExceptionCode.h"
13 #include "core/dom/ExecutionContext.h" 14 #include "core/dom/ExecutionContext.h"
14 #include "core/inspector/ConsoleMessage.h" 15 #include "core/inspector/ConsoleMessage.h"
15 #include "core/streams/Stream.h" 16 #include "core/streams/Stream.h"
16 #include "modules/fetch/BodyStreamBuffer.h" 17 #include "modules/fetch/BodyStreamBuffer.h"
17 #include "modules/fetch/BytesConsumer.h" 18 #include "modules/fetch/BytesConsumer.h"
18 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" 19 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h"
19 #include "platform/RuntimeEnabledFeatures.h" 20 #include "platform/RuntimeEnabledFeatures.h"
20 #include "public/platform/modules/serviceworker/WebServiceWorkerResponse.h" 21 #include "public/platform/modules/serviceworker/WebServiceWorkerResponse.h"
21 #include "wtf/Assertions.h" 22 #include "wtf/Assertions.h"
22 #include "wtf/RefPtr.h" 23 #include "wtf/RefPtr.h"
23 #include <v8.h>
24 24
25 namespace blink { 25 namespace blink {
26 namespace { 26 namespace {
27 27
28 // Returns the error message to let the developer know about the reason of the 28 // Returns the error message to let the developer know about the reason of the
29 // unusual failures. 29 // unusual failures.
30 const String getMessageForResponseError(WebServiceWorkerResponseError error, 30 const String getMessageForResponseError(WebServiceWorkerResponseError error,
31 const KURL& requestURL) { 31 const KURL& requestURL) {
32 String errorMessage = "The FetchEvent for \"" + requestURL.getString() + 32 String errorMessage = "The FetchEvent for \"" + requestURL.getString() +
33 "\" resulted in a network error response: "; 33 "\" resulted in a network error response: ";
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 m_requestContext(requestContext), 376 m_requestContext(requestContext),
377 m_state(Initial), 377 m_state(Initial),
378 m_observer(observer) {} 378 m_observer(observer) {}
379 379
380 DEFINE_TRACE(RespondWithObserver) { 380 DEFINE_TRACE(RespondWithObserver) {
381 visitor->trace(m_observer); 381 visitor->trace(m_observer);
382 ContextLifecycleObserver::trace(visitor); 382 ContextLifecycleObserver::trace(visitor);
383 } 383 }
384 384
385 } // namespace blink 385 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698