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

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.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/ServiceWorkerWindowClient.h" 5 #include "modules/serviceworkers/ServiceWorkerWindowClient.h"
6 6
7 #include <memory>
7 #include "bindings/core/v8/CallbackPromiseAdapter.h" 8 #include "bindings/core/v8/CallbackPromiseAdapter.h"
8 #include "bindings/core/v8/ScriptPromiseResolver.h" 9 #include "bindings/core/v8/ScriptPromiseResolver.h"
9 #include "core/dom/DOMException.h" 10 #include "core/dom/DOMException.h"
10 #include "core/dom/ExceptionCode.h" 11 #include "core/dom/ExceptionCode.h"
11 #include "core/page/PageVisibilityState.h" 12 #include "core/page/PageVisibilityState.h"
12 #include "core/workers/WorkerGlobalScope.h" 13 #include "core/workers/WorkerGlobalScope.h"
13 #include "core/workers/WorkerLocation.h" 14 #include "core/workers/WorkerLocation.h"
14 #include "modules/serviceworkers/ServiceWorkerError.h" 15 #include "modules/serviceworkers/ServiceWorkerError.h"
15 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" 16 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h"
16 #include "modules/serviceworkers/ServiceWorkerWindowClientCallback.h" 17 #include "modules/serviceworkers/ServiceWorkerWindowClientCallback.h"
17 #include "public/platform/WebString.h" 18 #include "public/platform/WebString.h"
18 #include "wtf/RefPtr.h" 19 #include "wtf/RefPtr.h"
19 #include <memory>
20 20
21 namespace blink { 21 namespace blink {
22 22
23 ServiceWorkerWindowClient* ServiceWorkerWindowClient::take( 23 ServiceWorkerWindowClient* ServiceWorkerWindowClient::take(
24 ScriptPromiseResolver*, 24 ScriptPromiseResolver*,
25 std::unique_ptr<WebServiceWorkerClientInfo> webClient) { 25 std::unique_ptr<WebServiceWorkerClientInfo> webClient) {
26 return webClient ? ServiceWorkerWindowClient::create(*webClient) : nullptr; 26 return webClient ? ServiceWorkerWindowClient::create(*webClient) : nullptr;
27 } 27 }
28 28
29 ServiceWorkerWindowClient* ServiceWorkerWindowClient::create( 29 ServiceWorkerWindowClient* ServiceWorkerWindowClient::create(
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 ServiceWorkerGlobalScopeClient::from(context)->navigate( 85 ServiceWorkerGlobalScopeClient::from(context)->navigate(
86 uuid(), parsedUrl, WTF::makeUnique<NavigateClientCallback>(resolver)); 86 uuid(), parsedUrl, WTF::makeUnique<NavigateClientCallback>(resolver));
87 return promise; 87 return promise;
88 } 88 }
89 89
90 DEFINE_TRACE(ServiceWorkerWindowClient) { 90 DEFINE_TRACE(ServiceWorkerWindowClient) {
91 ServiceWorkerClient::trace(visitor); 91 ServiceWorkerClient::trace(visitor);
92 } 92 }
93 93
94 } // namespace blink 94 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698